Skip to content

Commit

Permalink
Add knowledge graph API, regen APIs
Browse files Browse the repository at this point in the history
  • Loading branch information
sqrrrl committed Dec 16, 2015
1 parent 92fc3b0 commit e7c6ba8
Show file tree
Hide file tree
Showing 22 changed files with 1,189 additions and 57 deletions.
89 changes: 87 additions & 2 deletions api_names_out.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5832,6 +5832,8 @@
"/androidenterprise:v1/androidenterprise.enterprises.enroll/token": token
"/androidenterprise:v1/androidenterprise.enterprises.get": get_enterprise
"/androidenterprise:v1/androidenterprise.enterprises.get/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.enterprises.getStoreLayout": get_enterprise_store_layout
"/androidenterprise:v1/androidenterprise.enterprises.getStoreLayout/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.enterprises.insert": insert_enterprise
"/androidenterprise:v1/androidenterprise.enterprises.insert/token": token
"/androidenterprise:v1/androidenterprise.enterprises.list": list_enterprises
Expand All @@ -5840,6 +5842,8 @@
"/androidenterprise:v1/androidenterprise.enterprises.sendTestPushNotification/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.enterprises.setAccount": set_enterprise_account
"/androidenterprise:v1/androidenterprise.enterprises.setAccount/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.enterprises.setStoreLayout": set_enterprise_store_layout
"/androidenterprise:v1/androidenterprise.enterprises.setStoreLayout/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.enterprises.unenroll": unenroll_enterprise
"/androidenterprise:v1/androidenterprise.enterprises.unenroll/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.entitlements.delete": delete_entitlement
Expand Down Expand Up @@ -5912,6 +5916,44 @@
"/androidenterprise:v1/androidenterprise.products.getPermissions/productId": product_id
"/androidenterprise:v1/androidenterprise.products.updatePermissions/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.products.updatePermissions/productId": product_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.delete": delete_storelayoutcluster
"/androidenterprise:v1/androidenterprise.storelayoutclusters.delete/clusterId": cluster_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.delete/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.delete/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.get": get_storelayoutcluster
"/androidenterprise:v1/androidenterprise.storelayoutclusters.get/clusterId": cluster_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.get/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.get/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.insert": insert_storelayoutcluster
"/androidenterprise:v1/androidenterprise.storelayoutclusters.insert/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.insert/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.list": list_storelayoutclusters
"/androidenterprise:v1/androidenterprise.storelayoutclusters.list/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.list/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.patch": patch_storelayoutcluster
"/androidenterprise:v1/androidenterprise.storelayoutclusters.patch/clusterId": cluster_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.patch/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.patch/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.update": update_storelayoutcluster
"/androidenterprise:v1/androidenterprise.storelayoutclusters.update/clusterId": cluster_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.update/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutclusters.update/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.delete": delete_storelayoutpage
"/androidenterprise:v1/androidenterprise.storelayoutpages.delete/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.delete/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.get": get_storelayoutpage
"/androidenterprise:v1/androidenterprise.storelayoutpages.get/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.get/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.insert": insert_storelayoutpage
"/androidenterprise:v1/androidenterprise.storelayoutpages.insert/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.list": list_storelayoutpages
"/androidenterprise:v1/androidenterprise.storelayoutpages.list/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.patch": patch_storelayoutpage
"/androidenterprise:v1/androidenterprise.storelayoutpages.patch/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.patch/pageId": page_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.update": update_storelayoutpage
"/androidenterprise:v1/androidenterprise.storelayoutpages.update/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.storelayoutpages.update/pageId": page_id
"/androidenterprise:v1/androidenterprise.users.generateToken/enterpriseId": enterprise_id
"/androidenterprise:v1/androidenterprise.users.generateToken/userId": user_id
"/androidenterprise:v1/androidenterprise.users.get": get_user
Expand Down Expand Up @@ -6019,6 +6061,9 @@
"/androidenterprise:v1/InstallsListResponse/install": install
"/androidenterprise:v1/InstallsListResponse/install/install": install
"/androidenterprise:v1/InstallsListResponse/kind": kind
"/androidenterprise:v1/LocalizedText": localized_text
"/androidenterprise:v1/LocalizedText/locale": locale
"/androidenterprise:v1/LocalizedText/text": text
"/androidenterprise:v1/Permission": permission
"/androidenterprise:v1/Permission/description": description
"/androidenterprise:v1/Permission/kind": kind
Expand Down Expand Up @@ -6050,6 +6095,32 @@
"/androidenterprise:v1/ProductSet/productId/product_id": product_id
"/androidenterprise:v1/ProductsApproveRequest/approvalUrlInfo": approval_url_info
"/androidenterprise:v1/ProductsGenerateApprovalUrlResponse/url": url
"/androidenterprise:v1/StoreCluster": store_cluster
"/androidenterprise:v1/StoreCluster/id": id
"/androidenterprise:v1/StoreCluster/kind": kind
"/androidenterprise:v1/StoreCluster/name": name
"/androidenterprise:v1/StoreCluster/name/name": name
"/androidenterprise:v1/StoreCluster/orderInPage": order_in_page
"/androidenterprise:v1/StoreCluster/productId": product_id
"/androidenterprise:v1/StoreCluster/productId/product_id": product_id
"/androidenterprise:v1/StoreLayout": store_layout
"/androidenterprise:v1/StoreLayout/homepageId": homepage_id
"/androidenterprise:v1/StoreLayout/kind": kind
"/androidenterprise:v1/StoreLayoutClustersListResponse": store_layout_clusters_list_response
"/androidenterprise:v1/StoreLayoutClustersListResponse/cluster": cluster
"/androidenterprise:v1/StoreLayoutClustersListResponse/cluster/cluster": cluster
"/androidenterprise:v1/StoreLayoutClustersListResponse/kind": kind
"/androidenterprise:v1/StoreLayoutPagesListResponse": store_layout_pages_list_response
"/androidenterprise:v1/StoreLayoutPagesListResponse/kind": kind
"/androidenterprise:v1/StoreLayoutPagesListResponse/page": page
"/androidenterprise:v1/StoreLayoutPagesListResponse/page/page": page
"/androidenterprise:v1/StorePage": store_page
"/androidenterprise:v1/StorePage/id": id
"/androidenterprise:v1/StorePage/kind": kind
"/androidenterprise:v1/StorePage/link": link
"/androidenterprise:v1/StorePage/link/link": link
"/androidenterprise:v1/StorePage/name": name
"/androidenterprise:v1/StorePage/name/name": name
"/androidenterprise:v1/User": user
"/androidenterprise:v1/User/id": id
"/androidenterprise:v1/User/kind": kind
Expand Down Expand Up @@ -19006,8 +19077,6 @@
"/genomics:v1/genomics.operations.list/pageToken": page_token
"/genomics:v1/genomics.operations.cancel": cancel_operation
"/genomics:v1/genomics.operations.cancel/name": name
"/genomics:v1/genomics.operations.delete": delete_operation
"/genomics:v1/genomics.operations.delete/name": name
"/genomics:v1/genomics.readgroupsets.export/readGroupSetId": read_group_set_id
"/genomics:v1/genomics.readgroupsets.patch/readGroupSetId": read_group_set_id
"/genomics:v1/genomics.readgroupsets.patch/updateMask": update_mask
Expand Down Expand Up @@ -19412,6 +19481,22 @@
"/genomics:v1/OperationMetadata/events/event": event
"/genomics:v1/OperationEvent": operation_event
"/genomics:v1/OperationEvent/description": description
"/kgsearch:v1/fields": fields
"/kgsearch:v1/key": key
"/kgsearch:v1/quotaUser": quota_user
"/kgsearch:v1/kgsearch.entities.search": search_entities
"/kgsearch:v1/kgsearch.entities.search/query": query
"/kgsearch:v1/kgsearch.entities.search/ids": ids
"/kgsearch:v1/kgsearch.entities.search/languages": languages
"/kgsearch:v1/kgsearch.entities.search/types": types
"/kgsearch:v1/kgsearch.entities.search/indent": indent
"/kgsearch:v1/kgsearch.entities.search/prefix": prefix
"/kgsearch:v1/kgsearch.entities.search/limit": limit
"/kgsearch:v1/SearchResponse": search_response
"/kgsearch:v1/SearchResponse/context": context
"/kgsearch:v1/SearchResponse/type": type
"/kgsearch:v1/SearchResponse/itemListElement": item_list_element
"/kgsearch:v1/SearchResponse/itemListElement/item_list_element": item_list_element
"/partners:v2/fields": fields
"/partners:v2/key": key
"/partners:v2/quotaUser": quota_user
Expand Down
2 changes: 1 addition & 1 deletion generated/google/apis/androidenterprise_v1.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ module Apis
# @see https://developers.google.com/android/work/play/emm-api
module AndroidenterpriseV1
VERSION = 'V1'
REVISION = '20151127'
REVISION = '20151215'

# Manage corporate Android devices
AUTH_ANDROIDENTERPRISE = 'https://www.googleapis.com/auth/androidenterprise'
Expand Down
210 changes: 209 additions & 1 deletion generated/google/apis/androidenterprise_v1/classes.rb
Original file line number Diff line number Diff line change
Expand Up @@ -857,6 +857,31 @@ def update!(**args)
end
end

# A localized string with its locale.
class LocalizedText
include Google::Apis::Core::Hashable

# The BCP47 tag for a locale. (e.g. "en-US", "de").
# Corresponds to the JSON property `locale`
# @return [String]
attr_accessor :locale

# The text localized in the associated locale.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@locale = args[:locale] unless args[:locale].nil?
@text = args[:text] unless args[:text].nil?
end
end

# A permission represents some extra capability, to be granted to an Android app,
# which requires explicit consent. An enterprise admin must consent to these
# permissions on behalf of their users before an entitlement for the app can be
Expand Down Expand Up @@ -1124,6 +1149,188 @@ def update!(**args)
end
end

# Definition of a Google Play for Work store cluster, a list of products
# displayed as part of a store page.
class StoreCluster
include Google::Apis::Core::Hashable

# Unique ID of this cluster. Assigned by the server. Immutable once assigned.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id

# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#storeCluster".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

# Ordered list of localized strings giving the name of this page. The text
# displayed is the one that best matches the user locale, or the first entry if
# there is no good match. There needs to be at least one entry.
# Corresponds to the JSON property `name`
# @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
attr_accessor :name

# String (US-ASCII only) used to determine order of this cluster within the
# parent page's elements. Page elements are sorted in lexicographic order of
# this field. Duplicated values are allowed, but ordering between elements with
# duplicate order is undefined.
# The value of this field is never visible to a user, it is used solely for the
# purpose of defining an ordering. Maximum length is 20 characters.
# Corresponds to the JSON property `orderInPage`
# @return [String]
attr_accessor :order_in_page

# List of products in the order they are displayed in the cluster. There should
# not be duplicates within a cluster.
# Corresponds to the JSON property `productId`
# @return [Array<String>]
attr_accessor :product_id

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@name = args[:name] unless args[:name].nil?
@order_in_page = args[:order_in_page] unless args[:order_in_page].nil?
@product_id = args[:product_id] unless args[:product_id].nil?
end
end

# General setting for the Google Play for Work store layout, currently only
# specifying the page to display the first time the store is opened.
class StoreLayout
include Google::Apis::Core::Hashable

# The ID of the store page to be used as the homepage. The homepage will be used
# as the first page shown in the Google Play for Work store.
# If there is no homepage set, an empty store is shown. The homepage can be
# unset (by not specifying it) to empty the store.
# If there exists at least one page, this field must be set to the ID of a valid
# page.
# Corresponds to the JSON property `homepageId`
# @return [String]
attr_accessor :homepage_id

# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#storeLayout".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@homepage_id = args[:homepage_id] unless args[:homepage_id].nil?
@kind = args[:kind] unless args[:kind].nil?
end
end

# The store page resources for the enterprise.
class StoreLayoutClustersListResponse
include Google::Apis::Core::Hashable

# A store cluster of an enterprise.
# Corresponds to the JSON property `cluster`
# @return [Array<Google::Apis::AndroidenterpriseV1::StoreCluster>]
attr_accessor :cluster

# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#storeLayoutClustersListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@cluster = args[:cluster] unless args[:cluster].nil?
@kind = args[:kind] unless args[:kind].nil?
end
end

# The store page resources for the enterprise.
class StoreLayoutPagesListResponse
include Google::Apis::Core::Hashable

# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#storeLayoutPagesListResponse".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

# A store page of an enterprise.
# Corresponds to the JSON property `page`
# @return [Array<Google::Apis::AndroidenterpriseV1::StorePage>]
attr_accessor :page

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@kind = args[:kind] unless args[:kind].nil?
@page = args[:page] unless args[:page].nil?
end
end

# Definition of a Google Play for Work store page, made of a localized name and
# links to other pages. A page also contains clusters defined as a subcollection.
class StorePage
include Google::Apis::Core::Hashable

# Unique ID of this page. Assigned by the server. Immutable once assigned.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id

# Identifies what kind of resource this is. Value: the fixed string "
# androidenterprise#storePage".
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind

# Ordered list of pages a user should be able to reach from this page. The pages
# must exist, must not be this page, and once a link is created the page linked
# to cannot be deleted until all links to it are removed. It is recommended that
# the basic pages are created first, before adding the links between pages.
# No attempt is made to verify that all pages are reachable from the homepage.
# Corresponds to the JSON property `link`
# @return [Array<String>]
attr_accessor :link

# Ordered list of localized strings giving the name of this page. The text
# displayed is the one that best matches the user locale, or the first entry if
# there is no good match. There needs to be at least one entry.
# Corresponds to the JSON property `name`
# @return [Array<Google::Apis::AndroidenterpriseV1::LocalizedText>]
attr_accessor :name

def initialize(**args)
update!(**args)
end

# Update properties of this object
def update!(**args)
@id = args[:id] unless args[:id].nil?
@kind = args[:kind] unless args[:kind].nil?
@link = args[:link] unless args[:link].nil?
@name = args[:name] unless args[:name].nil?
end
end

# A user resource represents an individual user within the enterprise's domain.
# Note that each user is associated with a Google account based on the user's
# corporate email address (which must be in one of the enterprise's domains). As
Expand All @@ -1146,7 +1353,8 @@ class User
# @return [String]
attr_accessor :kind

# The user's primary email, e.g. "jsmith@example.com".
# The user's primary email, e.g. "jsmith@example.com". Will always be set for
# Google managed users and not set for EMM managed users.
# Corresponds to the JSON property `primaryEmail`
# @return [String]
attr_accessor :primary_email
Expand Down
Loading

0 comments on commit e7c6ba8

Please sign in to comment.