licensing

package
v0.0.0-...-ee91799 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 20, 2015 License: BSD-3-Clause Imports: 11 Imported by: 0

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

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LicenseAssignment

type LicenseAssignment struct {
	// Etags: ETag of the resource.
	Etags 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"`
}

type LicenseAssignmentInsert

type LicenseAssignmentInsert struct {
	// UserId: Email id of the user
	UserId string `json:"userId,omitempty"`
}

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"`
}

type LicenseAssignmentsDeleteCall

type LicenseAssignmentsDeleteCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsDeleteCall) Do

func (*LicenseAssignmentsDeleteCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LicenseAssignmentsGetCall

type LicenseAssignmentsGetCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsGetCall) Do

func (*LicenseAssignmentsGetCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LicenseAssignmentsInsertCall

type LicenseAssignmentsInsertCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsInsertCall) Do

func (*LicenseAssignmentsInsertCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type LicenseAssignmentsListForProductAndSkuCall

type LicenseAssignmentsListForProductAndSkuCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsListForProductAndSkuCall) Do

func (*LicenseAssignmentsListForProductAndSkuCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LicenseAssignmentsListForProductAndSkuCall) MaxResults

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

PageToken sets the optional parameter "pageToken": Token to fetch the next page. By default server will return first page

type LicenseAssignmentsListForProductCall

type LicenseAssignmentsListForProductCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsListForProductCall) Do

func (*LicenseAssignmentsListForProductCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

func (*LicenseAssignmentsListForProductCall) MaxResults

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

PageToken sets the optional parameter "pageToken": Token to fetch the next page. By default server will return first page

type LicenseAssignmentsPatchCall

type LicenseAssignmentsPatchCall struct {
	// contains filtered or unexported fields
}

func (*LicenseAssignmentsPatchCall) Do

func (*LicenseAssignmentsPatchCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

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) Do

func (*LicenseAssignmentsUpdateCall) Fields

Fields allows partial responses to be retrieved. See https://developers.google.com/gdata/docs/2.0/basics#PartialResponse for more information.

type Service

type Service struct {
	BasePath string // API endpoint base URL

	LicenseAssignments *LicenseAssignmentsService
	// contains filtered or unexported fields
}

func New

func New(client *http.Client) (*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL