Skip to content

Commit

Permalink
google-api-go-client: update all APIs.
Browse files Browse the repository at this point in the history
Change-Id: I2fa4367d9040d1fbc37f895fdc5cd9879db17825
Reviewed-on: https://code-review.googlesource.com/3160
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
  • Loading branch information
gmlewis committed Jul 16, 2015
1 parent 661ac69 commit 18450f4
Show file tree
Hide file tree
Showing 63 changed files with 27,027 additions and 47,559 deletions.
28 changes: 15 additions & 13 deletions androidenterprise/v1/androidenterprise-api.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
{
"kind": "discovery#restDescription",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/TAGoQX581k0pUlJRReLGRYb2z5U\"",
"etag": "\"ye6orv2F-1npMW3u9suM3a7C5Bo/T8xjS8-LAPJJ1wXBIGC7t3Ehz9c\"",
"discoveryVersion": "v1",
"id": "androidenterprise:v1",
"name": "androidenterprise",
"canonicalName": "Android Enterprise",
"version": "v1",
"revision": "20150303",
"revision": "20150715",
"title": "Google Play EMM API",
"description": "Allows MDMs/EMMs and enterprises to manage the deployment of apps to Android for Work users.",
"ownerDomain": "google.com",
Expand All @@ -15,6 +15,7 @@
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
},
"documentationLink": "https://developers.google.com/play/enterprise",
"protocol": "rest",
"baseUrl": "https://www.googleapis.com/androidenterprise/v1/",
"basePath": "/androidenterprise/v1/",
Expand Down Expand Up @@ -165,16 +166,16 @@
"AppVersion": {
"id": "AppVersion",
"type": "object",
"description": "App version represents a single APK version.",
"description": "This represents a single version of the app.",
"properties": {
"versionCode": {
"type": "integer",
"description": "Unique increasing identifier for the apk version.",
"description": "Unique increasing identifier for the app version.",
"format": "int32"
},
"versionString": {
"type": "string",
"description": "The string used in the Play Store by the app developer to identify a version of an app. The string is not necessarily unique or localized (e.g. \"1.4\")."
"description": "The string used in the Play Store by the app developer to identify the version. The string is not necessarily unique or localized (for example, the string could be \"1.4\")."
}
}
},
Expand Down Expand Up @@ -436,7 +437,7 @@
"GroupLicense": {
"id": "GroupLicense",
"type": "object",
"description": "A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play done by the enterprise admin.\n\nThe API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, i.e. the total number of user entitlements in existence for the product.\n\nGroup license objects are never deleted; if e.g. a free app is added to a collection and then removed, the group license will remain, allowing to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.",
"description": "A group license object indicates a product that an enterprise admin has approved for use in the enterprise. The product may be free or paid. For free products, a group license object is created in these cases: if the enterprise admin approves a product in Google Play, if the product is added to a collection, or if an entitlement for the product is created for a user via the API. For paid products, a group license object is only created as part of the first bulk purchase of that product in Google Play by the enterprise admin.\n\nThe API can be used to query group licenses; the available information includes the total number of licenses purchased (for paid products) and the total number of licenses that have been provisioned, that is, the total number of user entitlements in existence for the product.\n\nGroup license objects are never deleted. If, for example, a free app is added to a collection and then removed, the group license will remain, allowing the enterprise admin to keep track of any remaining entitlements. An enterprise admin may indicate they are no longer interested in the group license by marking it as unapproved in Google Play.",
"properties": {
"acquisitionKind": {
"type": "string",
Expand Down Expand Up @@ -580,7 +581,7 @@
"properties": {
"appVersion": {
"type": "array",
"description": "List of app versions available for this product. The returned list contains only public versions. E.g. alpha, beta or canary versions will not be included.",
"description": "App versions currently available for this product. The returned list contains only public versions. Alpha and beta versions are not included.",
"items": {
"$ref": "AppVersion"
}
Expand All @@ -595,7 +596,7 @@
},
"distributionChannel": {
"type": "string",
"description": "How and to whom the package is made available."
"description": "How and to whom the package is made available. The value publicGoogleHosted means that the package is available through the Play Store and not restricted to a specific enterprise. The value privateGoogleHosted means that the package is a private app (restricted to an enterprise) but hosted by Google. The value privateSelfHosted means that the package is a private app (restricted to an enterprise) and is privately hosted."
},
"iconUrl": {
"type": "string",
Expand All @@ -608,7 +609,7 @@
},
"productId": {
"type": "string",
"description": "A string of the form \"app:\n\" - e.g. \"app:com.google.android.gm\" represents the GMail app."
"description": "A string of the form app:\n. For example, app:com.google.android.gm represents the Gmail app."
},
"requiresContainerApp": {
"type": "boolean",
Expand Down Expand Up @@ -672,7 +673,8 @@
"type": "object",
"properties": {
"approvalUrlInfo": {
"$ref": "ApprovalUrlInfo"
"$ref": "ApprovalUrlInfo",
"description": "The approval URL that was shown to the user. Only the permissions shown to the user with that URL will be accepted, which may not be the product's entire set of permissions. For example, the URL may only display new permissions from an update after the product was approved, or not include new permissions if the product was updated since the URL was generated."
}
}
},
Expand All @@ -682,7 +684,7 @@
"properties": {
"url": {
"type": "string",
"description": "A iframe-able URL that displays a product's permissions (if any). This URL can be used to approve the product only once and for a limited time (1 hour), using the Products.approve call. If the product is not currently approved and has no permissions, this URL will point to an empty page. If the product is currently approved and all of its permissions (if any) are also approved, this field will not be populated."
"description": "A URL that can be rendered in an iframe to display the permissions (if any) of a product. This URL can be used to approve the product only once and only within 24 hours of being generated, using the Products.approve call. If the product is currently unapproved and has no permissions, this URL will point to an empty page. If the product is currently approved, a URL will only be generated if that product has added permissions since it was last approved, and the URL will only display those new permissions that have not yet been accepted."
}
}
},
Expand Down Expand Up @@ -1998,7 +2000,7 @@
"id": "androidenterprise.products.generateApprovalUrl",
"path": "enterprises/{enterpriseId}/products/{productId}/generateApprovalUrl",
"httpMethod": "POST",
"description": "Generates a URL that can be used to display an iframe to view the product's permissions (if any) and approve the product. This URL can be used to approve the product for a limited time (currently 1 hour) using the Products.approve call.",
"description": "Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.\n\nAdmins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.",
"parameters": {
"enterpriseId": {
"type": "string",
Expand All @@ -2008,7 +2010,7 @@
},
"languageCode": {
"type": "string",
"description": "The language code that will be used for permission names and descriptions in the returned iframe.",
"description": "The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\".",
"location": "query"
},
"productId": {
Expand Down
71 changes: 47 additions & 24 deletions androidenterprise/v1/androidenterprise-gen.go
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
// Package androidenterprise provides access to the Google Play EMM API.
//
// See https://developers.google.com/play/enterprise
//
// Usage example:
//
// import "google.golang.org/api/androidenterprise/v1"
Expand Down Expand Up @@ -252,12 +254,12 @@ type AppRestrictionsSchemaRestrictionRestrictionValue struct {
}

type AppVersion struct {
// VersionCode: Unique increasing identifier for the apk version.
// VersionCode: Unique increasing identifier for the app version.
VersionCode int64 `json:"versionCode,omitempty"`

// VersionString: The string used in the Play Store by the app developer
// to identify a version of an app. The string is not necessarily unique
// or localized (e.g. "1.4").
// to identify the version. The string is not necessarily unique or
// localized (for example, the string could be "1.4").
VersionString string `json:"versionString,omitempty"`
}

Expand Down Expand Up @@ -516,9 +518,9 @@ type Permission struct {
}

type Product struct {
// AppVersion: List of app versions available for this product. The
// returned list contains only public versions. E.g. alpha, beta or
// canary versions will not be included.
// AppVersion: App versions currently available for this product. The
// returned list contains only public versions. Alpha and beta versions
// are not included.
AppVersion []*AppVersion `json:"appVersion,omitempty"`

// AuthorName: The name of the author of the product (e.g. the app
Expand All @@ -530,6 +532,12 @@ type Product struct {
DetailsUrl string `json:"detailsUrl,omitempty"`

// DistributionChannel: How and to whom the package is made available.
// The value publicGoogleHosted means that the package is available
// through the Play Store and not restricted to a specific enterprise.
// The value privateGoogleHosted means that the package is a private app
// (restricted to an enterprise) but hosted by Google. The value
// privateSelfHosted means that the package is a private app (restricted
// to an enterprise) and is privately hosted.
DistributionChannel string `json:"distributionChannel,omitempty"`

// IconUrl: A link to an image that can be used as an icon for the
Expand All @@ -540,8 +548,8 @@ type Product struct {
// string "androidenterprise#product".
Kind string `json:"kind,omitempty"`

// ProductId: A string of the form "app:
// " - e.g. "app:com.google.android.gm" represents the GMail app.
// ProductId: A string of the form app:
// . For example, app:com.google.android.gm represents the Gmail app.
ProductId string `json:"productId,omitempty"`

// RequiresContainerApp: Whether this app can only be installed on
Expand Down Expand Up @@ -578,17 +586,25 @@ type ProductPermissions struct {
}

type ProductsApproveRequest struct {
// ApprovalUrlInfo: The approval URL that was shown to the user. Only
// the permissions shown to the user with that URL will be accepted,
// which may not be the product's entire set of permissions. For
// example, the URL may only display new permissions from an update
// after the product was approved, or not include new permissions if the
// product was updated since the URL was generated.
ApprovalUrlInfo *ApprovalUrlInfo `json:"approvalUrlInfo,omitempty"`
}

type ProductsGenerateApprovalUrlResponse struct {
// Url: A iframe-able URL that displays a product's permissions (if
// any). This URL can be used to approve the product only once and for a
// limited time (1 hour), using the Products.approve call. If the
// product is not currently approved and has no permissions, this URL
// will point to an empty page. If the product is currently approved and
// all of its permissions (if any) are also approved, this field will
// not be populated.
// Url: A URL that can be rendered in an iframe to display the
// permissions (if any) of a product. This URL can be used to approve
// the product only once and only within 24 hours of being generated,
// using the Products.approve call. If the product is currently
// unapproved and has no permissions, this URL will point to an empty
// page. If the product is currently approved, a URL will only be
// generated if that product has added permissions since it was last
// approved, and the URL will only display those new permissions that
// have not yet been accepted.
Url string `json:"url,omitempty"`
}

Expand Down Expand Up @@ -4100,20 +4116,27 @@ type ProductsGenerateApprovalUrlCall struct {
opt_ map[string]interface{}
}

// GenerateApprovalUrl: Generates a URL that can be used to display an
// iframe to view the product's permissions (if any) and approve the
// product. This URL can be used to approve the product for a limited
// time (currently 1 hour) using the Products.approve call.
// GenerateApprovalUrl: Generates a URL that can be rendered in an
// iframe to display the permissions (if any) of a product. An
// enterprise admin must view these permissions and accept them on
// behalf of their organization in order to approve that
// product.
//
// Admins should accept the displayed permissions by interacting with a
// separate UI element in the EMM console, which in turn should trigger
// the use of this URL as the approvalUrlInfo.approvalUrl property in a
// Products.approve call to approve the product. This URL can only be
// used to display permissions for up to 1 day.
func (r *ProductsService) GenerateApprovalUrl(enterpriseId string, productId string) *ProductsGenerateApprovalUrlCall {
c := &ProductsGenerateApprovalUrlCall{s: r.s, opt_: make(map[string]interface{})}
c.enterpriseId = enterpriseId
c.productId = productId
return c
}

// LanguageCode sets the optional parameter "languageCode": The language
// code that will be used for permission names and descriptions in the
// returned iframe.
// LanguageCode sets the optional parameter "languageCode": The BCP 47
// language code used for permission names and descriptions in the
// returned iframe, for instance "en-US".
func (c *ProductsGenerateApprovalUrlCall) LanguageCode(languageCode string) *ProductsGenerateApprovalUrlCall {
c.opt_["languageCode"] = languageCode
return c
Expand Down Expand Up @@ -4159,7 +4182,7 @@ func (c *ProductsGenerateApprovalUrlCall) Do() (*ProductsGenerateApprovalUrlResp
}
return ret, nil
// {
// "description": "Generates a URL that can be used to display an iframe to view the product's permissions (if any) and approve the product. This URL can be used to approve the product for a limited time (currently 1 hour) using the Products.approve call.",
// "description": "Generates a URL that can be rendered in an iframe to display the permissions (if any) of a product. An enterprise admin must view these permissions and accept them on behalf of their organization in order to approve that product.\n\nAdmins should accept the displayed permissions by interacting with a separate UI element in the EMM console, which in turn should trigger the use of this URL as the approvalUrlInfo.approvalUrl property in a Products.approve call to approve the product. This URL can only be used to display permissions for up to 1 day.",
// "httpMethod": "POST",
// "id": "androidenterprise.products.generateApprovalUrl",
// "parameterOrder": [
Expand All @@ -4174,7 +4197,7 @@ func (c *ProductsGenerateApprovalUrlCall) Do() (*ProductsGenerateApprovalUrlResp
// "type": "string"
// },
// "languageCode": {
// "description": "The language code that will be used for permission names and descriptions in the returned iframe.",
// "description": "The BCP 47 language code used for permission names and descriptions in the returned iframe, for instance \"en-US\".",
// "location": "query",
// "type": "string"
// },
Expand Down
35 changes: 34 additions & 1 deletion api-list.json
Original file line number Diff line number Diff line change
Expand Up @@ -242,6 +242,7 @@
"x16": "https://www.google.com/images/icons/product/android-16.png",
"x32": "https://www.google.com/images/icons/product/android-32.png"
},
"documentationLink": "https://developers.google.com/play/enterprise",
"preferred": true
},
{
Expand Down Expand Up @@ -1123,6 +1124,22 @@
"documentationLink": "https://developers.google.com/google-apps/groups-settings/get_started",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "appengine:v1beta4",
"name": "appengine",
"version": "v1beta4",
"title": "Google App Engine Admin API",
"description": "The App Engine Admin API enables developers to provision and manage their App Engine applications.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/appengine/v1beta4/rest",
"discoveryLink": "./apis/appengine/v1beta4/rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://developers.google.com/appengine/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "classroom:v1",
Expand Down Expand Up @@ -1161,7 +1178,7 @@
"name": "cloudresourcemanager",
"version": "v1beta1",
"title": "Google Cloud Resource Manager API",
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata, including IAM policies, and will shortly provide the same for other high-level entities (e.g. customers and resource groups). Longer term, we expect the cloudresourcemanager API to encompass other Cloud resources as well.",
"description": "The Google Cloud Resource Manager API provides methods for creating, reading, and updating of project metadata.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/cloudresourcemanager/v1beta1/rest",
"discoveryLink": "./apis/cloudresourcemanager/v1beta1/rest",
"icons": {
Expand Down Expand Up @@ -1219,6 +1236,22 @@
"documentationLink": "",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "partners:v2",
"name": "partners",
"version": "v2",
"title": "Google Partners API",
"description": "Lets advertisers search certified companies and create contact leads with them, and also audits the usage of clients.",
"discoveryRestUrl": "https://www.googleapis.com/discovery/v1/apis/partners/v2/rest",
"discoveryLink": "./apis/partners/v2/rest",
"icons": {
"x16": "http://www.google.com/images/icons/product/search-16.gif",
"x32": "http://www.google.com/images/icons/product/search-32.gif"
},
"documentationLink": "https://developers.google.com/partners/",
"preferred": true
},
{
"kind": "discovery#directoryItem",
"id": "playmoviespartner:v1",
Expand Down
Loading

0 comments on commit 18450f4

Please sign in to comment.