Documentation ¶
Overview ¶
Package licensing provides access to the Enterprise License Manager API.
See https://developers.google.com/google-apps/licensing/
Usage example:
import "google.golang.org/api/licensing/v1" ... licensingService, err := licensing.New(oauthHttpClient)
Index ¶
- Constants
- type LicenseAssignment
- type LicenseAssignmentInsert
- type LicenseAssignmentList
- type LicenseAssignmentsDeleteCall
- func (c *LicenseAssignmentsDeleteCall) Context(ctx context.Context) *LicenseAssignmentsDeleteCall
- func (c *LicenseAssignmentsDeleteCall) Do() error
- func (c *LicenseAssignmentsDeleteCall) Fields(s ...googleapi.Field) *LicenseAssignmentsDeleteCall
- func (c *LicenseAssignmentsDeleteCall) QuotaUser(quotaUser string) *LicenseAssignmentsDeleteCall
- func (c *LicenseAssignmentsDeleteCall) UserIP(userIP string) *LicenseAssignmentsDeleteCall
- type LicenseAssignmentsGetCall
- func (c *LicenseAssignmentsGetCall) Context(ctx context.Context) *LicenseAssignmentsGetCall
- func (c *LicenseAssignmentsGetCall) Do() (*LicenseAssignment, error)
- func (c *LicenseAssignmentsGetCall) Fields(s ...googleapi.Field) *LicenseAssignmentsGetCall
- func (c *LicenseAssignmentsGetCall) IfNoneMatch(entityTag string) *LicenseAssignmentsGetCall
- func (c *LicenseAssignmentsGetCall) QuotaUser(quotaUser string) *LicenseAssignmentsGetCall
- func (c *LicenseAssignmentsGetCall) UserIP(userIP string) *LicenseAssignmentsGetCall
- type LicenseAssignmentsInsertCall
- func (c *LicenseAssignmentsInsertCall) Context(ctx context.Context) *LicenseAssignmentsInsertCall
- func (c *LicenseAssignmentsInsertCall) Do() (*LicenseAssignment, error)
- func (c *LicenseAssignmentsInsertCall) Fields(s ...googleapi.Field) *LicenseAssignmentsInsertCall
- func (c *LicenseAssignmentsInsertCall) QuotaUser(quotaUser string) *LicenseAssignmentsInsertCall
- func (c *LicenseAssignmentsInsertCall) UserIP(userIP string) *LicenseAssignmentsInsertCall
- type LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) Context(ctx context.Context) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) Do() (*LicenseAssignmentList, error)
- func (c *LicenseAssignmentsListForProductAndSkuCall) Fields(s ...googleapi.Field) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) IfNoneMatch(entityTag string) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) MaxResults(maxResults int64) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) PageToken(pageToken string) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) QuotaUser(quotaUser string) *LicenseAssignmentsListForProductAndSkuCall
- func (c *LicenseAssignmentsListForProductAndSkuCall) UserIP(userIP string) *LicenseAssignmentsListForProductAndSkuCall
- type LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) Context(ctx context.Context) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) Do() (*LicenseAssignmentList, error)
- func (c *LicenseAssignmentsListForProductCall) Fields(s ...googleapi.Field) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) IfNoneMatch(entityTag string) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) MaxResults(maxResults int64) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) PageToken(pageToken string) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) QuotaUser(quotaUser string) *LicenseAssignmentsListForProductCall
- func (c *LicenseAssignmentsListForProductCall) UserIP(userIP string) *LicenseAssignmentsListForProductCall
- type LicenseAssignmentsPatchCall
- func (c *LicenseAssignmentsPatchCall) Context(ctx context.Context) *LicenseAssignmentsPatchCall
- func (c *LicenseAssignmentsPatchCall) Do() (*LicenseAssignment, error)
- func (c *LicenseAssignmentsPatchCall) Fields(s ...googleapi.Field) *LicenseAssignmentsPatchCall
- func (c *LicenseAssignmentsPatchCall) QuotaUser(quotaUser string) *LicenseAssignmentsPatchCall
- func (c *LicenseAssignmentsPatchCall) UserIP(userIP string) *LicenseAssignmentsPatchCall
- type LicenseAssignmentsService
- func (r *LicenseAssignmentsService) Delete(productId string, skuId string, userId string) *LicenseAssignmentsDeleteCall
- func (r *LicenseAssignmentsService) Get(productId string, skuId string, userId string) *LicenseAssignmentsGetCall
- func (r *LicenseAssignmentsService) Insert(productId string, skuId string, ...) *LicenseAssignmentsInsertCall
- func (r *LicenseAssignmentsService) ListForProduct(productId string, customerId string) *LicenseAssignmentsListForProductCall
- func (r *LicenseAssignmentsService) ListForProductAndSku(productId string, skuId string, customerId string) *LicenseAssignmentsListForProductAndSkuCall
- func (r *LicenseAssignmentsService) Patch(productId string, skuId string, userId string, ...) *LicenseAssignmentsPatchCall
- func (r *LicenseAssignmentsService) Update(productId string, skuId string, userId string, ...) *LicenseAssignmentsUpdateCall
- type LicenseAssignmentsUpdateCall
- func (c *LicenseAssignmentsUpdateCall) Context(ctx context.Context) *LicenseAssignmentsUpdateCall
- func (c *LicenseAssignmentsUpdateCall) Do() (*LicenseAssignment, error)
- func (c *LicenseAssignmentsUpdateCall) Fields(s ...googleapi.Field) *LicenseAssignmentsUpdateCall
- func (c *LicenseAssignmentsUpdateCall) QuotaUser(quotaUser string) *LicenseAssignmentsUpdateCall
- func (c *LicenseAssignmentsUpdateCall) UserIP(userIP string) *LicenseAssignmentsUpdateCall
- type Service
Constants ¶
const (
// View and manage Google Apps licenses for your domain
AppsLicensingScope = "https://www.googleapis.com/auth/apps.licensing"
)
OAuth2 scopes used by this API.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LicenseAssignment ¶
type LicenseAssignment struct { string `json:"etags,omitempty"` // Kind: Identifies the resource as a LicenseAssignment. Kind string `json:"kind,omitempty"` // ProductId: Name of the product. ProductId string `json:"productId,omitempty"` // SelfLink: Link to this page. SelfLink string `json:"selfLink,omitempty"` // SkuId: Name of the sku of the product. SkuId string `json:"skuId,omitempty"` // UserId: Email id of the user. UserId string `json:"userId,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etags") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }Etags
LicenseAssignment: Template for LiscenseAssignment Resource
func (*LicenseAssignment) MarshalJSON ¶
func (s *LicenseAssignment) MarshalJSON() ([]byte, error)
type LicenseAssignmentInsert ¶
type LicenseAssignmentInsert struct { // UserId: Email id of the user UserId string `json:"userId,omitempty"` // ForceSendFields is a list of field names (e.g. "UserId") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
LicenseAssignmentInsert: Template for LicenseAssignment Insert request
func (*LicenseAssignmentInsert) MarshalJSON ¶
func (s *LicenseAssignmentInsert) MarshalJSON() ([]byte, error)
type LicenseAssignmentList ¶
type LicenseAssignmentList struct { // Etag: ETag of the resource. Etag string `json:"etag,omitempty"` // Items: The LicenseAssignments in this page of results. Items []*LicenseAssignment `json:"items,omitempty"` // Kind: Identifies the resource as a collection of LicenseAssignments. Kind string `json:"kind,omitempty"` // NextPageToken: The continuation token, used to page through large // result sets. Provide this value in a subsequent request to return the // next page of results. NextPageToken string `json:"nextPageToken,omitempty"` // ServerResponse contains the HTTP response code and headers from the // server. googleapi.ServerResponse `json:"-"` // ForceSendFields is a list of field names (e.g. "Etag") to // unconditionally include in API requests. By default, fields with // empty values are omitted from API requests. However, any non-pointer, // non-interface field appearing in ForceSendFields will be sent to the // server regardless of whether the field is empty or not. This may be // used to include empty fields in Patch requests. ForceSendFields []string `json:"-"` }
LicenseAssignmentList: LicesnseAssignment List for a given product/sku for a customer.
func (*LicenseAssignmentList) MarshalJSON ¶
func (s *LicenseAssignmentList) MarshalJSON() ([]byte, error)
type LicenseAssignmentsDeleteCall ¶
type LicenseAssignmentsDeleteCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsDeleteCall) Context ¶
func (c *LicenseAssignmentsDeleteCall) Context(ctx context.Context) *LicenseAssignmentsDeleteCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsDeleteCall) Do ¶
func (c *LicenseAssignmentsDeleteCall) Do() error
Do executes the "licensing.licenseAssignments.delete" call.
func (*LicenseAssignmentsDeleteCall) Fields ¶
func (c *LicenseAssignmentsDeleteCall) Fields(s ...googleapi.Field) *LicenseAssignmentsDeleteCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsDeleteCall) QuotaUser ¶
func (c *LicenseAssignmentsDeleteCall) QuotaUser(quotaUser string) *LicenseAssignmentsDeleteCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsDeleteCall) UserIP ¶
func (c *LicenseAssignmentsDeleteCall) UserIP(userIP string) *LicenseAssignmentsDeleteCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsGetCall ¶
type LicenseAssignmentsGetCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsGetCall) Context ¶
func (c *LicenseAssignmentsGetCall) Context(ctx context.Context) *LicenseAssignmentsGetCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsGetCall) Do ¶
func (c *LicenseAssignmentsGetCall) Do() (*LicenseAssignment, error)
Do executes the "licensing.licenseAssignments.get" call. Exactly one of *LicenseAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsGetCall) Fields ¶
func (c *LicenseAssignmentsGetCall) Fields(s ...googleapi.Field) *LicenseAssignmentsGetCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsGetCall) IfNoneMatch ¶
func (c *LicenseAssignmentsGetCall) IfNoneMatch(entityTag string) *LicenseAssignmentsGetCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LicenseAssignmentsGetCall) QuotaUser ¶
func (c *LicenseAssignmentsGetCall) QuotaUser(quotaUser string) *LicenseAssignmentsGetCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsGetCall) UserIP ¶
func (c *LicenseAssignmentsGetCall) UserIP(userIP string) *LicenseAssignmentsGetCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsInsertCall ¶
type LicenseAssignmentsInsertCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsInsertCall) Context ¶
func (c *LicenseAssignmentsInsertCall) Context(ctx context.Context) *LicenseAssignmentsInsertCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsInsertCall) Do ¶
func (c *LicenseAssignmentsInsertCall) Do() (*LicenseAssignment, error)
Do executes the "licensing.licenseAssignments.insert" call. Exactly one of *LicenseAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsInsertCall) Fields ¶
func (c *LicenseAssignmentsInsertCall) Fields(s ...googleapi.Field) *LicenseAssignmentsInsertCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsInsertCall) QuotaUser ¶
func (c *LicenseAssignmentsInsertCall) QuotaUser(quotaUser string) *LicenseAssignmentsInsertCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsInsertCall) UserIP ¶
func (c *LicenseAssignmentsInsertCall) UserIP(userIP string) *LicenseAssignmentsInsertCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsListForProductAndSkuCall ¶
type LicenseAssignmentsListForProductAndSkuCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsListForProductAndSkuCall) Context ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) Context(ctx context.Context) *LicenseAssignmentsListForProductAndSkuCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsListForProductAndSkuCall) Do ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) Do() (*LicenseAssignmentList, error)
Do executes the "licensing.licenseAssignments.listForProductAndSku" call. Exactly one of *LicenseAssignmentList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsListForProductAndSkuCall) Fields ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) Fields(s ...googleapi.Field) *LicenseAssignmentsListForProductAndSkuCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsListForProductAndSkuCall) IfNoneMatch ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) IfNoneMatch(entityTag string) *LicenseAssignmentsListForProductAndSkuCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LicenseAssignmentsListForProductAndSkuCall) MaxResults ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) MaxResults(maxResults int64) *LicenseAssignmentsListForProductAndSkuCall
MaxResults sets the optional parameter "maxResults": Maximum number of campaigns to return at one time. Must be positive. Default value is 100.
func (*LicenseAssignmentsListForProductAndSkuCall) PageToken ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) PageToken(pageToken string) *LicenseAssignmentsListForProductAndSkuCall
PageToken sets the optional parameter "pageToken": Token to fetch the next page. By default server will return first page
func (*LicenseAssignmentsListForProductAndSkuCall) QuotaUser ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) QuotaUser(quotaUser string) *LicenseAssignmentsListForProductAndSkuCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsListForProductAndSkuCall) UserIP ¶
func (c *LicenseAssignmentsListForProductAndSkuCall) UserIP(userIP string) *LicenseAssignmentsListForProductAndSkuCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsListForProductCall ¶
type LicenseAssignmentsListForProductCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsListForProductCall) Context ¶
func (c *LicenseAssignmentsListForProductCall) Context(ctx context.Context) *LicenseAssignmentsListForProductCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsListForProductCall) Do ¶
func (c *LicenseAssignmentsListForProductCall) Do() (*LicenseAssignmentList, error)
Do executes the "licensing.licenseAssignments.listForProduct" call. Exactly one of *LicenseAssignmentList or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignmentList.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsListForProductCall) Fields ¶
func (c *LicenseAssignmentsListForProductCall) Fields(s ...googleapi.Field) *LicenseAssignmentsListForProductCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsListForProductCall) IfNoneMatch ¶
func (c *LicenseAssignmentsListForProductCall) IfNoneMatch(entityTag string) *LicenseAssignmentsListForProductCall
IfNoneMatch sets the optional parameter which makes the operation fail if the object's ETag matches the given value. This is useful for getting updates only after the object has changed since the last request. Use googleapi.IsNotModified to check whether the response error from Do is the result of In-None-Match.
func (*LicenseAssignmentsListForProductCall) MaxResults ¶
func (c *LicenseAssignmentsListForProductCall) MaxResults(maxResults int64) *LicenseAssignmentsListForProductCall
MaxResults sets the optional parameter "maxResults": Maximum number of campaigns to return at one time. Must be positive. Default value is 100.
func (*LicenseAssignmentsListForProductCall) PageToken ¶
func (c *LicenseAssignmentsListForProductCall) PageToken(pageToken string) *LicenseAssignmentsListForProductCall
PageToken sets the optional parameter "pageToken": Token to fetch the next page. By default server will return first page
func (*LicenseAssignmentsListForProductCall) QuotaUser ¶
func (c *LicenseAssignmentsListForProductCall) QuotaUser(quotaUser string) *LicenseAssignmentsListForProductCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsListForProductCall) UserIP ¶
func (c *LicenseAssignmentsListForProductCall) UserIP(userIP string) *LicenseAssignmentsListForProductCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsPatchCall ¶
type LicenseAssignmentsPatchCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsPatchCall) Context ¶
func (c *LicenseAssignmentsPatchCall) Context(ctx context.Context) *LicenseAssignmentsPatchCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsPatchCall) Do ¶
func (c *LicenseAssignmentsPatchCall) Do() (*LicenseAssignment, error)
Do executes the "licensing.licenseAssignments.patch" call. Exactly one of *LicenseAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsPatchCall) Fields ¶
func (c *LicenseAssignmentsPatchCall) Fields(s ...googleapi.Field) *LicenseAssignmentsPatchCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsPatchCall) QuotaUser ¶
func (c *LicenseAssignmentsPatchCall) QuotaUser(quotaUser string) *LicenseAssignmentsPatchCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsPatchCall) UserIP ¶
func (c *LicenseAssignmentsPatchCall) UserIP(userIP string) *LicenseAssignmentsPatchCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.
type LicenseAssignmentsService ¶
type LicenseAssignmentsService struct {
// contains filtered or unexported fields
}
func NewLicenseAssignmentsService ¶
func NewLicenseAssignmentsService(s *Service) *LicenseAssignmentsService
func (*LicenseAssignmentsService) Delete ¶
func (r *LicenseAssignmentsService) Delete(productId string, skuId string, userId string) *LicenseAssignmentsDeleteCall
Delete: Revoke License.
func (*LicenseAssignmentsService) Get ¶
func (r *LicenseAssignmentsService) Get(productId string, skuId string, userId string) *LicenseAssignmentsGetCall
Get: Get license assignment of a particular product and sku for a user
func (*LicenseAssignmentsService) Insert ¶
func (r *LicenseAssignmentsService) Insert(productId string, skuId string, licenseassignmentinsert *LicenseAssignmentInsert) *LicenseAssignmentsInsertCall
Insert: Assign License.
func (*LicenseAssignmentsService) ListForProduct ¶
func (r *LicenseAssignmentsService) ListForProduct(productId string, customerId string) *LicenseAssignmentsListForProductCall
ListForProduct: List license assignments for given product of the customer.
func (*LicenseAssignmentsService) ListForProductAndSku ¶
func (r *LicenseAssignmentsService) ListForProductAndSku(productId string, skuId string, customerId string) *LicenseAssignmentsListForProductAndSkuCall
ListForProductAndSku: List license assignments for given product and sku of the customer.
func (*LicenseAssignmentsService) Patch ¶
func (r *LicenseAssignmentsService) Patch(productId string, skuId string, userId string, licenseassignment *LicenseAssignment) *LicenseAssignmentsPatchCall
Patch: Assign License. This method supports patch semantics.
func (*LicenseAssignmentsService) Update ¶
func (r *LicenseAssignmentsService) Update(productId string, skuId string, userId string, licenseassignment *LicenseAssignment) *LicenseAssignmentsUpdateCall
Update: Assign License.
type LicenseAssignmentsUpdateCall ¶
type LicenseAssignmentsUpdateCall struct {
// contains filtered or unexported fields
}
func (*LicenseAssignmentsUpdateCall) Context ¶
func (c *LicenseAssignmentsUpdateCall) Context(ctx context.Context) *LicenseAssignmentsUpdateCall
Context sets the context to be used in this call's Do method. Any pending HTTP request will be aborted if the provided context is canceled.
func (*LicenseAssignmentsUpdateCall) Do ¶
func (c *LicenseAssignmentsUpdateCall) Do() (*LicenseAssignment, error)
Do executes the "licensing.licenseAssignments.update" call. Exactly one of *LicenseAssignment or error will be non-nil. Any non-2xx status code is an error. Response headers are in either *LicenseAssignment.ServerResponse.Header or (if a response was returned at all) in error.(*googleapi.Error).Header. Use googleapi.IsNotModified to check whether the returned error was because http.StatusNotModified was returned.
func (*LicenseAssignmentsUpdateCall) Fields ¶
func (c *LicenseAssignmentsUpdateCall) Fields(s ...googleapi.Field) *LicenseAssignmentsUpdateCall
Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.
func (*LicenseAssignmentsUpdateCall) QuotaUser ¶
func (c *LicenseAssignmentsUpdateCall) QuotaUser(quotaUser string) *LicenseAssignmentsUpdateCall
QuotaUser sets the optional parameter "quotaUser": Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters. Overrides userIp if both are provided.
func (*LicenseAssignmentsUpdateCall) UserIP ¶
func (c *LicenseAssignmentsUpdateCall) UserIP(userIP string) *LicenseAssignmentsUpdateCall
UserIP sets the optional parameter "userIp": IP address of the site where the request originates. Use this if you want to enforce per-user limits.