diff --git a/FAQ b/FAQ
deleted file mode 100644
index dc736f2..0000000
--- a/FAQ
+++ /dev/null
@@ -1,8 +0,0 @@
-Frequently asked questions?
-
-
-Q: How do I work out the arguments and methods that are available for a particular API?
-A: http://api-python-client-doc.appspot.com/ has dynamically generated
- documentation for all the APIs supported by this library.
-
-
diff --git a/MANIFEST.in b/MANIFEST.in
index 1636df2..5c82446 100644
--- a/MANIFEST.in
+++ b/MANIFEST.in
@@ -1,7 +1 @@
-recursive-include uritemplate *.py
-recursive-include apiclient *.json *.py
-include CHANGELOG
-include LICENSE
include README
-include FAQ
-include setpath.sh
diff --git a/MANIFEST_oauth2client.in b/MANIFEST_oauth2client.in
deleted file mode 100644
index 5c82446..0000000
--- a/MANIFEST_oauth2client.in
+++ /dev/null
@@ -1 +0,0 @@
-include README
diff --git a/Makefile b/Makefile
index 7474bbf..17ca6b2 100644
--- a/Makefile
+++ b/Makefile
@@ -15,64 +15,23 @@ coverage:
.PHONY: docs
docs:
- cd docs; ./build.sh
- python describe.py
- python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki
-
-.PHONY: wiki
-wiki:
- python samples-index.py > ../google-api-python-client.wiki/SampleApps.wiki
+ cd docs; ./build
.PHONY: prerelease
-prerelease: test
- -rm -rf dist/
- -sudo rm -rf dist/
- -rm -rf snapshot/
- -sudo rm -rf snapshot/
- ./tools/gae-zip-creator.sh
- python expandsymlinks.py
- cd snapshot; python setup.py clean
- cd snapshot; python setup.py sdist --formats=gztar,zip
- cd snapshot; tar czf google-api-python-client-samples-$(shell python setup.py --version).tar.gz samples
- cd snapshot; zip -r google-api-python-client-samples-$(shell python setup.py --version).zip samples
-
-
-.PHONY: release
-release: prerelease
- @echo "This target will upload a new release to PyPi and code.google.com hosting."
- @echo "Are you sure you want to proceed? (yes/no)"
- @read yn; if [ yes -ne $(yn) ]; then exit 1; fi
- @echo "Here we go..."
- cd snapshot; python setup.py sdist --formats=gztar,zip register upload
- wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
- python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz
- python googlecode_upload.py --summary="google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip
- python googlecode_upload.py --summary="Full Dependecies Build for Google App Engine Projects Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/gae/*.zip
- python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.tar.gz
- python googlecode_upload.py --summary="Samples for google-api-python-client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/google-api-python-client-samples-*.zip
-
-.PHONY: oauth2_prerelease
oauth2_prerelease: test
-rm -rf dist/
-sudo rm -rf dist/
-rm -rf snapshot/
-sudo rm -rf snapshot/
mkdir snapshot
- python expandsymlinks.py --source=oauth2client --dest=snapshot/oauth2client
- python expandsymlinks.py --source=uritemplate --dest=snapshot/uritemplate
- cp setup_oauth2client.py snapshot/setup.py
- cp MANIFEST_oauth2client.in snapshot/MANIFEST.in
- cp README_oauth2client snapshot/README
+ python expandsymlinks.py
cd snapshot; python setup.py clean
cd snapshot; python setup.py sdist --formats=gztar,zip
-.PHONY: oauth2_release
+.PHONY: release
oauth2_release: oauth2_prerelease
- @echo "This target will upload a new release to PyPi and code.google.com hosting."
+ @echo "This target will upload a new release to PyPi."
@echo "Are you sure you want to proceed? (yes/no)"
@read yn; if [ yes -ne $(yn) ]; then exit 1; fi
@echo "Here we go..."
cd snapshot; python setup.py sdist --formats=gztar,zip register upload
- wget "http://support.googlecode.com/svn/trunk/scripts/googlecode_upload.py" -O googlecode_upload.py
- python googlecode_upload.py --summary="oauth2client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.tar.gz
- python googlecode_upload.py --summary="oauth2client Version $(shell python setup.py --version)" --project=google-api-python-client snapshot/dist/*.zip
diff --git a/README b/README
index 1c9ffcd..4b32ac0 100644
--- a/README
+++ b/README
@@ -1,18 +1,12 @@
-This is python client library for Google's discovery based APIs.
+This is a client library for accessing resources protected by OAuth 2.0.
Installation
============
-To install, simply use pip or easy_install:
+To install, simply say
- $ pip --upgrade google-api-python-client
-
- $ easy_install --upgrade google-api-python-client
-
-See the Developers Guide for more detailed instructions and documentation:
-
- https://developers.google.com/api-client-library/python/start/get_started
+ $ easy_install --upgrade oauth2client
Third Party Libraries
@@ -21,12 +15,8 @@ Third Party Libraries
These libraries will be installed when you install the client library:
http://code.google.com/p/httplib2
-http://code.google.com/p/uri-templates
Depending on your version of Python, these libraries may also be installed:
http://pypi.python.org/pypi/simplejson/
-For development you will also need:
-
-http://pythonpaste.org/webtest/
diff --git a/README_oauth2client b/README_oauth2client
deleted file mode 100644
index 4b32ac0..0000000
--- a/README_oauth2client
+++ /dev/null
@@ -1,22 +0,0 @@
-This is a client library for accessing resources protected by OAuth 2.0.
-
-
-Installation
-============
-
-To install, simply say
-
- $ easy_install --upgrade oauth2client
-
-
-Third Party Libraries
-=====================
-
-These libraries will be installed when you install the client library:
-
-http://code.google.com/p/httplib2
-
-Depending on your version of Python, these libraries may also be installed:
-
-http://pypi.python.org/pypi/simplejson/
-
diff --git a/TODO b/TODO
deleted file mode 100644
index aeca34a..0000000
--- a/TODO
+++ /dev/null
@@ -1,4 +0,0 @@
-TODO
-====
-
- - Maybe support Python 3.x?
diff --git a/describe.py b/describe.py
deleted file mode 100755
index 5cecf64..0000000
--- a/describe.py
+++ /dev/null
@@ -1,390 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2012 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Create documentation for generate API surfaces.
-
-Command-line tool that creates documentation for all APIs listed in discovery.
-The documentation is generated from a combination of the discovery document and
-the generated API surface itself.
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import argparse
-import os
-import re
-import string
-import sys
-
-from apiclient.discovery import DISCOVERY_URI
-from apiclient.discovery import build
-from apiclient.discovery import build_from_document
-from oauth2client.anyjson import simplejson
-import httplib2
-import uritemplate
-
-CSS = """
-"""
-
-METHOD_TEMPLATE = """
"""
-
-BASE = 'docs/dyn'
-
-DIRECTORY_URI = 'https://www.googleapis.com/discovery/v1/apis?preferred=true'
-
-parser = argparse.ArgumentParser(description=__doc__)
-
-parser.add_argument('--discovery_uri_template', default=DISCOVERY_URI,
- help='URI Template for discovery.')
-
-parser.add_argument('--discovery_uri', default='',
- help=('URI of discovery document. If supplied then only '
- 'this API will be documented.'))
-
-parser.add_argument('--directory_uri', default=DIRECTORY_URI,
- help=('URI of directory document. Unused if --discovery_uri'
- ' is supplied.'))
-
-parser.add_argument('--dest', default=BASE,
- help='Directory name to write documents into.')
-
-
-
-def safe_version(version):
- """Create a safe version of the verion string.
-
- Needed so that we can distinguish between versions
- and sub-collections in URIs. I.e. we don't want
- adsense_v1.1 to refer to the '1' collection in the v1
- version of the adsense api.
-
- Args:
- version: string, The version string.
- Returns:
- The string with '.' replaced with '_'.
- """
-
- return version.replace('.', '_')
-
-
-def unsafe_version(version):
- """Undoes what safe_version() does.
-
- See safe_version() for the details.
-
-
- Args:
- version: string, The safe version string.
- Returns:
- The string with '_' replaced with '.'.
- """
-
- return version.replace('_', '.')
-
-
-def method_params(doc):
- """Document the parameters of a method.
-
- Args:
- doc: string, The method's docstring.
-
- Returns:
- The method signature as a string.
- """
- doclines = doc.splitlines()
- if 'Args:' in doclines:
- begin = doclines.index('Args:')
- if 'Returns:' in doclines[begin+1:]:
- end = doclines.index('Returns:', begin)
- args = doclines[begin+1: end]
- else:
- args = doclines[begin+1:]
-
- parameters = []
- for line in args:
- m = re.search('^\s+([a-zA-Z0-9_]+): (.*)', line)
- if m is None:
- continue
- pname = m.group(1)
- desc = m.group(2)
- if '(required)' not in desc:
- pname = pname + '=None'
- parameters.append(pname)
- parameters = ', '.join(parameters)
- else:
- parameters = ''
- return parameters
-
-
-def method(name, doc):
- """Documents an individual method.
-
- Args:
- name: string, Name of the method.
- doc: string, The methods docstring.
- """
-
- params = method_params(doc)
- return string.Template(METHOD_TEMPLATE).substitute(
- name=name, params=params, doc=doc)
-
-
-def breadcrumbs(path, root_discovery):
- """Create the breadcrumb trail to this page of documentation.
-
- Args:
- path: string, Dot separated name of the resource.
- root_discovery: Deserialized discovery document.
-
- Returns:
- HTML with links to each of the parent resources of this resource.
- """
- parts = path.split('.')
-
- crumbs = []
- accumulated = []
-
- for i, p in enumerate(parts):
- prefix = '.'.join(accumulated)
- # The first time through prefix will be [], so we avoid adding in a
- # superfluous '.' to prefix.
- if prefix:
- prefix += '.'
- display = p
- if i == 0:
- display = root_discovery.get('title', display)
- crumbs.append('%s' % (prefix + p, display))
- accumulated.append(p)
-
- return ' . '.join(crumbs)
-
-
-def document_collection(resource, path, root_discovery, discovery, css=CSS):
- """Document a single collection in an API.
-
- Args:
- resource: Collection or service being documented.
- path: string, Dot separated name of the resource.
- root_discovery: Deserialized discovery document.
- discovery: Deserialized discovery document, but just the portion that
- describes the resource.
- css: string, The CSS to include in the generated file.
- """
- collections = []
- methods = []
- resource_name = path.split('.')[-2]
- html = [
- '',
- css,
- '
%s
' % breadcrumbs(path[:-1], root_discovery),
- '
Instance Methods
'
- ]
-
- # Which methods are for collections.
- for name in dir(resource):
- if not name.startswith('_') and callable(getattr(resource, name)):
- if hasattr(getattr(resource, name), '__is_resource__'):
- collections.append(name)
- else:
- methods.append(name)
-
-
- # TOC
- if collections:
- for name in collections:
- if not name.startswith('_') and callable(getattr(resource, name)):
- href = path + name + '.html'
- html.append(string.Template(COLLECTION_LINK).substitute(
- href=href, name=name))
-
- if methods:
- for name in methods:
- if not name.startswith('_') and callable(getattr(resource, name)):
- doc = getattr(resource, name).__doc__
- params = method_params(doc)
- firstline = doc.splitlines()[0]
- html.append(string.Template(METHOD_LINK).substitute(
- name=name, params=params, firstline=firstline))
-
- if methods:
- html.append('
Method Details
')
- for name in methods:
- dname = name.rsplit('_')[0]
- html.append(method(name, getattr(resource, name).__doc__))
-
- html.append('')
-
- return '\n'.join(html)
-
-
-def document_collection_recursive(resource, path, root_discovery, discovery):
-
- html = document_collection(resource, path, root_discovery, discovery)
-
- f = open(os.path.join(FLAGS.dest, path + 'html'), 'w')
- f.write(html.encode('utf-8'))
- f.close()
-
- for name in dir(resource):
- if (not name.startswith('_')
- and callable(getattr(resource, name))
- and hasattr(getattr(resource, name), '__is_resource__')):
- dname = name.rsplit('_')[0]
- collection = getattr(resource, name)()
- document_collection_recursive(collection, path + name + '.', root_discovery,
- discovery['resources'].get(dname, {}))
-
-def document_api(name, version):
- """Document the given API.
-
- Args:
- name: string, Name of the API.
- version: string, Version of the API.
- """
- service = build(name, version)
- response, content = http.request(
- uritemplate.expand(
- FLAGS.discovery_uri_template, {
- 'api': name,
- 'apiVersion': version})
- )
- discovery = simplejson.loads(content)
-
- version = safe_version(version)
-
- document_collection_recursive(
- service, '%s_%s.' % (name, version), discovery, discovery)
-
-
-def document_api_from_discovery_document(uri):
- """Document the given API.
-
- Args:
- uri: string, URI of discovery document.
- """
- http = httplib2.Http()
- response, content = http.request(FLAGS.discovery_uri)
- discovery = simplejson.loads(content)
-
- service = build_from_document(discovery)
-
- name = discovery['version']
- version = safe_version(discovery['version'])
-
- document_collection_recursive(
- service, '%s_%s.' % (name, version), discovery, discovery)
-
-
-if __name__ == '__main__':
- FLAGS = parser.parse_args(sys.argv[1:])
- if FLAGS.discovery_uri:
- document_api_from_discovery_document(FLAGS.discovery_uri)
- else:
- http = httplib2.Http()
- resp, content = http.request(
- FLAGS.directory_uri,
- headers={'X-User-IP': '0.0.0.0'})
- if resp.status == 200:
- directory = simplejson.loads(content)['items']
- for api in directory:
- document_api(api['name'], api['version'])
- else:
- sys.exit("Failed to load the discovery document.")
diff --git a/docs/build.sh b/docs/build
similarity index 88%
rename from docs/build.sh
rename to docs/build
index d5cdeb6..d006fc6 100755
--- a/docs/build.sh
+++ b/docs/build
@@ -22,7 +22,6 @@
# Notes: You may have to update the location of the
# App Engine library for your local system.
-export GOOGLE_APPENGINE=$HOME/projects/google_appengine/
export DJANGO_SETTINGS_MODULE=fakesettings
-export PYTHONPATH=`pwd`/..:$GOOGLE_APPENGINE
-epydoc --output epy --graph all --parse-only --docformat plaintext apiclient oauth2client
+export PYTHONPATH=$(pwd)/..
+epydoc --output epy --graph all --parse-only --docformat plaintext oauth2client
diff --git a/docs/dyn/adexchangebuyer_v1_1.accounts.html b/docs/dyn/adexchangebuyer_v1_1.accounts.html
deleted file mode 100644
index 074dedb..0000000
--- a/docs/dyn/adexchangebuyer_v1_1.accounts.html
+++ /dev/null
@@ -1,258 +0,0 @@
-
-
-
-
Gets one account by ID.
-
-Args:
- id: integer, The account id (required)
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
- list()
-
Retrieves the authenticated user's list of accounts.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.
- "items": [ # A list of accounts.
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- },
- ],
- "kind": "adexchangebuyer#accountsList", # Resource type.
- }
-
-
-
- patch(id, body)
-
Updates an existing account. This method supports patch semantics.
-
-Args:
- id: integer, The account id (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
- update(id, body)
-
Updates an existing account.
-
-Args:
- id: integer, The account id (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_1.creatives.html b/docs/dyn/adexchangebuyer_v1_1.creatives.html
deleted file mode 100644
index 4eb0f64..0000000
--- a/docs/dyn/adexchangebuyer_v1_1.creatives.html
+++ /dev/null
@@ -1,284 +0,0 @@
-
-
-
-
Gets the status for a single creative.
-
-Args:
- accountId: integer, The id for the account that will serve this creative. (required)
- buyerCreativeId: string, The buyer-specific id for this creative. (required)
-
-Returns:
- An object of the form:
-
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- "A String",
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
-
-
-
- insert(body)
-
Submit a new creative.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- "A String",
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
-
-
-Returns:
- An object of the form:
-
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- "A String",
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
Retrieves a list of the authenticated user's active creatives.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
- maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
- statusFilter: string, When specified, only creatives having the given status are returned.
- Allowed values
- approved - Creatives which have been approved.
- disapproved - Creatives which have been disapproved.
- not_checked - Creatives whose status is not yet checked.
-
-Returns:
- An object of the form:
-
- { # The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.
- "nextPageToken": "A String", # Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # A list of creatives.
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reason for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- "A String",
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- },
- ],
- "kind": "adexchangebuyer#creativesList", # Resource type.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_1.directDeals.html b/docs/dyn/adexchangebuyer_v1_1.directDeals.html
deleted file mode 100644
index eb6a668..0000000
--- a/docs/dyn/adexchangebuyer_v1_1.directDeals.html
+++ /dev/null
@@ -1,134 +0,0 @@
-
-
-
-
Retrieves the authenticated user's list of direct deals.
-
Method Details
-
- get(id)
-
Gets one direct deal by ID.
-
-Args:
- id: string, The direct deal id (required)
-
-Returns:
- An object of the form:
-
- { # The configuration data for an Ad Exchange direct deal.
- "advertiser": "A String", # The name of the advertiser this deal is for.
- "kind": "adexchangebuyer#directDeal", # Resource type.
- "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
- "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code.
- "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.
- "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.
- "sellerNetwork": "A String", # The name of the publisher offering this direct deal.
- "id": "A String", # Deal id.
- "accountId": 42, # The account id of the buyer this deal is for.
- }
-
-
-
- list()
-
Retrieves the authenticated user's list of direct deals.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A direct deals feed lists Direct Deals the Ad Exchange buyer account has access to. This includes direct deals set up for the buyer account as well as its merged stream seats.
- "kind": "adexchangebuyer#directDealsList", # Resource type.
- "directDeals": [ # A list of direct deals relevant for your account.
- { # The configuration data for an Ad Exchange direct deal.
- "advertiser": "A String", # The name of the advertiser this deal is for.
- "kind": "adexchangebuyer#directDeal", # Resource type.
- "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
- "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code.
- "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.
- "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.
- "sellerNetwork": "A String", # The name of the publisher offering this direct deal.
- "id": "A String", # Deal id.
- "accountId": 42, # The account id of the buyer this deal is for.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_1.html b/docs/dyn/adexchangebuyer_v1_1.html
deleted file mode 100644
index d4f1ed0..0000000
--- a/docs/dyn/adexchangebuyer_v1_1.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
Gets one account by ID.
-
-Args:
- id: integer, The account id (required)
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
- list()
-
Retrieves the authenticated user's list of accounts.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # An account feed lists Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single buyer account.
- "items": [ # A list of accounts.
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- },
- ],
- "kind": "adexchangebuyer#accountsList", # Resource type.
- }
-
-
-
- patch(id, body)
-
Updates an existing account. This method supports patch semantics.
-
-Args:
- id: integer, The account id (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
- update(id, body)
-
Updates an existing account.
-
-Args:
- id: integer, The account id (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-Returns:
- An object of the form:
-
- { # Configuration data for an Ad Exchange buyer account.
- "kind": "adexchangebuyer#account", # Resource type.
- "maximumTotalQps": 42, # The sum of all bidderLocation.maximumQps values cannot exceed this. Please contact your technical account manager if you need to change this.
- "bidderLocation": [ # Your bidder locations that have distinct URLs.
- {
- "url": "A String", # The URL to which the Ad Exchange will send bid requests.
- "region": "A String", # The geographical region the Ad Exchange should send requests from. Only used by some quota systems, but always setting the value is recommended. Allowed values:
- # - ASIA
- # - EUROPE
- # - US_EAST
- # - US_WEST
- "maximumQps": 42, # The maximum queries per second the Ad Exchange will send.
- },
- ],
- "cookieMatchingNid": "A String", # The nid parameter value used in cookie match requests. Please contact your technical account manager if you need to change this.
- "id": 42, # Account id.
- "cookieMatchingUrl": "A String", # The base URL used in cookie match requests.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_2.creatives.html b/docs/dyn/adexchangebuyer_v1_2.creatives.html
deleted file mode 100644
index d2ef5ba..0000000
--- a/docs/dyn/adexchangebuyer_v1_2.creatives.html
+++ /dev/null
@@ -1,308 +0,0 @@
-
-
-
-
Gets the status for a single creative.
-
-Args:
- accountId: integer, The id for the account that will serve this creative. (required)
- buyerCreativeId: string, The buyer-specific id for this creative. (required)
-
-Returns:
- An object of the form:
-
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "agencyId": "A String", # The agency id for this creative.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- {
- "reason": "A String", # The categorized reason for disapproval.
- "details": [ # Additional details about the reason for disapproval.
- "A String",
- ],
- },
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
-
-
-
- insert(body)
-
Submit a new creative.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "agencyId": "A String", # The agency id for this creative.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- {
- "reason": "A String", # The categorized reason for disapproval.
- "details": [ # Additional details about the reason for disapproval.
- "A String",
- ],
- },
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
-
-
-Returns:
- An object of the form:
-
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "agencyId": "A String", # The agency id for this creative.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- {
- "reason": "A String", # The categorized reason for disapproval.
- "details": [ # Additional details about the reason for disapproval.
- "A String",
- ],
- },
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- }
Retrieves a list of the authenticated user's active creatives.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response. Optional.
- maxResults: integer, Maximum number of entries returned on one result page. If not set, the default is 100. Optional.
- statusFilter: string, When specified, only creatives having the given status are returned.
- Allowed values
- approved - Creatives which have been approved.
- disapproved - Creatives which have been disapproved.
- not_checked - Creatives whose status is not yet checked.
-
-Returns:
- An object of the form:
-
- { # The creatives feed lists the active creatives for the Ad Exchange buyer accounts that the user has access to. Each entry in the feed corresponds to a single creative.
- "nextPageToken": "A String", # Continuation token used to page through creatives. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # A list of creatives.
- { # A creative and its classification data.
- "productCategories": [ # Detected product categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "advertiserName": "A String", # The name of the company being advertised in the creative.
- "kind": "adexchangebuyer#creative", # Resource type.
- "videoURL": "A String", # The url to fetch a video ad. If set, HTMLSnippet should not be set.
- "agencyId": "A String", # The agency id for this creative.
- "width": 42, # Ad width.
- "attribute": [ # All attributes for the ads that may be shown from this snippet.
- 42,
- ],
- "height": 42, # Ad height.
- "advertiserId": [ # Detected advertiser id, if any. Read-only. This field should not be set in requests.
- "A String",
- ],
- "HTMLSnippet": "A String", # The HTML snippet that displays the ad when inserted in the web page. If set, videoURL should not be set.
- "status": "A String", # Creative serving status. Read-only. This field should not be set in requests.
- "buyerCreativeId": "A String", # A buyer-specific id identifying the creative in this ad.
- "clickThroughUrl": [ # The set of destination urls for the snippet.
- "A String",
- ],
- "vendorType": [ # All vendor types for the ads that may be shown from this snippet.
- 42,
- ],
- "disapprovalReasons": [ # The reasons for disapproval, if any. Note that not all disapproval reasons may be categorized, so it is possible for the creative to have a status of DISAPPROVED with an empty list for disapproval_reasons. In this case, please reach out to your TAM to help debug the issue. Read-only. This field should not be set in requests.
- {
- "reason": "A String", # The categorized reason for disapproval.
- "details": [ # Additional details about the reason for disapproval.
- "A String",
- ],
- },
- ],
- "sensitiveCategories": [ # Detected sensitive categories, if any. Read-only. This field should not be set in requests.
- 42,
- ],
- "accountId": 42, # Account id.
- },
- ],
- "kind": "adexchangebuyer#creativesList", # Resource type.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_2.directDeals.html b/docs/dyn/adexchangebuyer_v1_2.directDeals.html
deleted file mode 100644
index 851baf0..0000000
--- a/docs/dyn/adexchangebuyer_v1_2.directDeals.html
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
Retrieves the authenticated user's list of direct deals.
-
Method Details
-
- get(id)
-
Gets one direct deal by ID.
-
-Args:
- id: string, The direct deal id (required)
-
-Returns:
- An object of the form:
-
- { # The configuration data for an Ad Exchange direct deal.
- "advertiser": "A String", # The name of the advertiser this deal is for.
- "kind": "adexchangebuyer#directDeal", # Resource type.
- "privateExchangeMinCpm": "A String", # The minimum price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the private exchange tier of buying (below fixed price priority, run as a second price auction).
- "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
- "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
- "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.
- "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.
- "sellerNetwork": "A String", # The name of the publisher offering this direct deal.
- "id": "A String", # Deal id.
- "accountId": 42, # The account id of the buyer this deal is for.
- }
-
-
-
- list()
-
Retrieves the authenticated user's list of direct deals.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A direct deals feed lists Direct Deals the Ad Exchange buyer account has access to. This includes direct deals set up for the buyer account as well as its merged stream seats.
- "kind": "adexchangebuyer#directDealsList", # Resource type.
- "directDeals": [ # A list of direct deals relevant for your account.
- { # The configuration data for an Ad Exchange direct deal.
- "advertiser": "A String", # The name of the advertiser this deal is for.
- "kind": "adexchangebuyer#directDeal", # Resource type.
- "privateExchangeMinCpm": "A String", # The minimum price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the private exchange tier of buying (below fixed price priority, run as a second price auction).
- "currencyCode": "A String", # The currency code that applies to the fixed_cpm value. If not set then assumed to be USD.
- "fixedCpm": "A String", # The fixed price for this direct deal. In cpm micros of currency according to currency_code. If set, then this deal is eligible for the fixed price tier of buying (highest priority, pay exactly the configured fixed price).
- "startTime": "A String", # Start time for when this deal becomes active. If not set then this deal is active immediately upon creation. In seconds since the epoch.
- "endTime": "A String", # End time for when this deal stops being active. If not set then this deal is valid until manually disabled by the publisher. In seconds since the epoch.
- "sellerNetwork": "A String", # The name of the publisher offering this direct deal.
- "id": "A String", # Deal id.
- "accountId": 42, # The account id of the buyer this deal is for.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangebuyer_v1_2.html b/docs/dyn/adexchangebuyer_v1_2.html
deleted file mode 100644
index 461963b..0000000
--- a/docs/dyn/adexchangebuyer_v1_2.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Retrieves the authenticated user's list of performance metrics.
-
Method Details
-
- list(accountId, endDateTime, startDateTime)
-
Retrieves the authenticated user's list of performance metrics.
-
-Args:
- accountId: string, The account id to get the reports for. (required)
- endDateTime: string, The end time for the reports. (required)
- startDateTime: string, The start time for the reports. (required)
-
-Returns:
- An object of the form:
-
- { # The configuration data for an Ad Exchange performance report list. TODO(nathanbullock): need to add some release tests before releasing this. https://sites.google.com/a/google.com/adx-integration/Home/engineering/binary-releases/rtb-api-release https://cs.corp.google.com/#piper///depot/google3/contentads/adx/tools/rtb_api/adxrtb.py
- "kind": "adexchangebuyer#performanceReportList", # Resource type.
- "performance_report": [ # A list of performance reports relevant for the account.
- {
- "kind": "adexchangebuyer#performanceReport", # Resource type.
- "timestamp": "A String", # Timestamp of the starting time of this performance data.
- "region": "A String", # The trading location of this data.
- "latency50thPercentile": 3.14, # The Nth percentile round trip latency(ms) as perceived from Google servers for the duration period covered by the report.
- "latency85thPercentile": 3.14,
- "latency95thPercentile": 3.14,
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.adclients.html b/docs/dyn/adexchangeseller_v1.adclients.html
deleted file mode 100644
index 0fa196e..0000000
--- a/docs/dyn/adexchangeseller_v1.adclients.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
List all ad clients in this Ad Exchange account.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adexchangeseller#adClient", # Kind of resource this is, in this case adexchangeseller#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adexchangeseller#adClients", # Kind of list this is, in this case adexchangeseller#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.adunits.customchannels.html b/docs/dyn/adexchangeseller_v1.adunits.customchannels.html
deleted file mode 100644
index 23c42c7..0000000
--- a/docs/dyn/adexchangeseller_v1.adunits.customchannels.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
List all custom channels which the specified ad unit belongs to.
-
-Args:
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adexchangeseller#customChannel", # Kind of resource this is, in this case adexchangeseller#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adexchangeseller#customChannels", # Kind of list this is, in this case adexchangeseller#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.adunits.html b/docs/dyn/adexchangeseller_v1.adunits.html
deleted file mode 100644
index 103214d..0000000
--- a/docs/dyn/adexchangeseller_v1.adunits.html
+++ /dev/null
@@ -1,165 +0,0 @@
-
-
-
-
Gets the specified ad unit in the specified ad client.
-
-Args:
- adClientId: string, Ad client for which to get the ad unit. (required)
- adUnitId: string, Ad unit to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adexchangeseller#adUnit", # Kind of resource this is, in this case adexchangeseller#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this ad unit.
- }
List all ad units in the specified ad client for this Ad Exchange account.
-
-Args:
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adexchangeseller#adUnit", # Kind of resource this is, in this case adexchangeseller#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this ad unit.
- },
- ],
- "kind": "adexchangeseller#adUnits", # Kind of list this is, in this case adexchangeseller#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.customchannels.adunits.html b/docs/dyn/adexchangeseller_v1.customchannels.adunits.html
deleted file mode 100644
index 52f5a88..0000000
--- a/docs/dyn/adexchangeseller_v1.customchannels.adunits.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
List all ad units in the specified custom channel.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adexchangeseller#adUnit", # Kind of resource this is, in this case adexchangeseller#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this ad unit.
- },
- ],
- "kind": "adexchangeseller#adUnits", # Kind of list this is, in this case adexchangeseller#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.customchannels.html b/docs/dyn/adexchangeseller_v1.customchannels.html
deleted file mode 100644
index 0d324f8..0000000
--- a/docs/dyn/adexchangeseller_v1.customchannels.html
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
Get the specified custom channel from the specified ad client.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adexchangeseller#customChannel", # Kind of resource this is, in this case adexchangeseller#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all custom channels in the specified ad client for this Ad Exchange account.
-
-Args:
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adexchangeseller#customChannel", # Kind of resource this is, in this case adexchangeseller#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adexchangeseller#customChannels", # Kind of list this is, in this case adexchangeseller#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.html b/docs/dyn/adexchangeseller_v1.html
deleted file mode 100644
index 7d31449..0000000
--- a/docs/dyn/adexchangeseller_v1.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- dimension: string, Dimensions to base the report on. (repeated)
- startIndex: integer, Index of the first row of report data to return.
- filter: string, Filters to be run on the report. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adexchangeseller#report", # Kind this is, in this case adexchangeseller#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
Generate an Ad Exchange report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- dimension: string, Dimensions to base the report on. (repeated)
- startIndex: integer, Index of the first row of report data to return.
- filter: string, Filters to be run on the report. (repeated)
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.reports.saved.html b/docs/dyn/adexchangeseller_v1.reports.saved.html
deleted file mode 100644
index 33ec795..0000000
--- a/docs/dyn/adexchangeseller_v1.reports.saved.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Generate an Ad Exchange report based on the saved report ID sent in the query parameters.
-
-Args:
- savedReportId: string, The saved report to retrieve. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- maxResults: integer, The maximum number of rows of report data to return.
- startIndex: integer, Index of the first row of report data to return.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adexchangeseller#report", # Kind this is, in this case adexchangeseller#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all saved reports in this Ad Exchange account.
-
-Args:
- pageToken: string, A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved reports to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved reports returned in this list response.
- {
- "kind": "adexchangeseller#savedReport", # Kind of resource this is, in this case adexchangeseller#savedReport.
- "id": "A String", # Unique identifier of this saved report.
- "name": "A String", # This saved report's name.
- },
- ],
- "kind": "adexchangeseller#savedReports", # Kind of list this is, in this case adexchangeseller#savedReports.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adexchangeseller_v1.urlchannels.html b/docs/dyn/adexchangeseller_v1.urlchannels.html
deleted file mode 100644
index 0e8b9b4..0000000
--- a/docs/dyn/adexchangeseller_v1.urlchannels.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
List all URL channels in the specified ad client for this Ad Exchange account.
-
-Args:
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adexchangeseller#urlChannel", # Kind of resource this is, in this case adexchangeseller#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adexchangeseller#urlChannels", # Kind of list this is, in this case adexchangeseller#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/admin_reports_v1.activities.html b/docs/dyn/admin_reports_v1.activities.html
deleted file mode 100644
index eab3e8a..0000000
--- a/docs/dyn/admin_reports_v1.activities.html
+++ /dev/null
@@ -1,155 +0,0 @@
-
-
-
-
Retrieves a list of activities for a specific customer and application.
-
-Args:
- userKey: string, Represents the profile id or the user email for which the data should be filtered. When 'all' is specified as the userKey, it returns usageReports for all users. (required)
- applicationName: string, Application name for which the events are to be retrieved. (required)
- eventName: string, Name of the event being queried.
- actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
- filters: string, Event parameters in the form [parameter1 name][operator][parameter1 value],[parameter2 name][operator][parameter2 value],...
- maxResults: integer, Number of activity records to be shown in each page.
- pageToken: string, Token to specify next page.
- startTime: string, Return events which occured at or after this time.
- endTime: string, Return events which occured at or before this time.
-
-Returns:
- An object of the form:
-
- { # JSON template for a collection of activites.
- "nextPageToken": "A String", # Token for retrieving the next page
- "items": [ # Each record in read response.
- { # JSON template for the activity resource.
- "kind": "admin#reports#activity", # Kind of resource this is.
- "ownerDomain": "A String", # Domain of source customer.
- "actor": { # User doing the action.
- "profileId": "A String", # Obfuscated user id of the user.
- "email": "A String", # Email address of the user.
- "key": "A String", # For OAuth 2LO API requests, consumer_key of the requestor.
- "callerType": "A String", # User or OAuth 2LO request.
- },
- "id": { # Unique identifier for each activity record.
- "applicationName": "A String", # Application name to which the event belongs.
- "uniqueQualifier": "A String", # Unique qualifier if multiple events have the same time.
- "customerId": "A String", # Obfuscated customer ID of the source customer.
- "time": "A String", # Time of occurrence of the activity.
- },
- "ipAddress": "A String", # IP Address of the user doing the action.
- "events": [ # Activity events.
- {
- "type": "A String", # Type of event.
- "name": "A String", # Name of event.
- "parameters": [ # Parameter value pairs for various applications.
- {
- "boolValue": True or False, # Boolean value of the parameter.
- "intValue": "A String", # Integral value of the parameter.
- "value": "A String", # String value of the parameter.
- "name": "A String", # The name of the parameter.
- },
- ],
- },
- ],
- },
- ],
- "kind": "admin#reports#activities", # Kind of list response this is.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/admin_reports_v1.customerUsageReports.html b/docs/dyn/admin_reports_v1.customerUsageReports.html
deleted file mode 100644
index 2b76bba..0000000
--- a/docs/dyn/admin_reports_v1.customerUsageReports.html
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
-
-
Retrieves a report which is a collection of properties / statistics for a specific customer.
-
-Args:
- date: string, Represents the date in yyyy-mm-dd format for which the data is to be fetched. (required)
- pageToken: string, Token to specify next page.
- parameters: string, Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
-
-Returns:
- An object of the form:
-
- { # JSON template for a collection of usage reports.
- "nextPageToken": "A String", # Token for retrieving the next page
- "kind": "admin#reports#usageReports", # The kind of object.
- "usageReports": [ # Various application parameter records.
- { # JSON template for a usage report.
- "date": "A String", # The date to which the record belongs.
- "kind": "admin#reports#usageReport", # The kind of object.
- "parameters": [ # Parameter value pairs for various applications.
- {
- "stringValue": "A String", # String value of the parameter.
- "boolValue": True or False, # Boolean value of the parameter.
- "datetimeValue": "A String", # RFC 3339 formatted value of the parameter.
- "intValue": "A String", # Integral value of the parameter.
- "name": "A String", # The name of the parameter.
- },
- ],
- "entity": { # Information about the type of the item.
- "profileId": "A String", # Obfuscated user id for the record.
- "userEmail": "A String", # user's email.
- "type": "A String", # The type of item, can be a customer or user.
- "customerId": "A String", # Obfuscated customer id for the record.
- },
- },
- ],
- "warnings": [ # Warnings if any.
- {
- "message": "A String", # Human readable message for the warning.
- "code": "A String", # Machine readable code / warning type.
- "data": [ # Key-Value pairs to give detailed information on the warning.
- {
- "value": "A String", # Value associated with a key-value pair to give detailed information on the warning.
- "key": "A String", # Key associated with a key-value pair to give detailed information on the warning.
- },
- ],
- },
- ],
- }
-
-
-
- get_next(previous_request, previous_response)
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/admin_reports_v1.html b/docs/dyn/admin_reports_v1.html
deleted file mode 100644
index 0169d33..0000000
--- a/docs/dyn/admin_reports_v1.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
Retrieves a report which is a collection of properties / statistics for a set of users.
-
-Args:
- userKey: string, Represents the profile id or the user email for which the data should be filtered. (required)
- date: string, Represents the date in yyyy-mm-dd format for which the data is to be fetched. (required)
- parameters: string, Represents the application name, parameter name pairs to fetch in csv as app_name1:param_name1, app_name2:param_name2.
- pageToken: string, Token to specify next page.
- filters: string, Represents the set of filters including parameter operator value.
- maxResults: integer, Maximum number of results to return. Maximum allowed is 1000
-
-Returns:
- An object of the form:
-
- { # JSON template for a collection of usage reports.
- "nextPageToken": "A String", # Token for retrieving the next page
- "kind": "admin#reports#usageReports", # The kind of object.
- "usageReports": [ # Various application parameter records.
- { # JSON template for a usage report.
- "date": "A String", # The date to which the record belongs.
- "kind": "admin#reports#usageReport", # The kind of object.
- "parameters": [ # Parameter value pairs for various applications.
- {
- "stringValue": "A String", # String value of the parameter.
- "boolValue": True or False, # Boolean value of the parameter.
- "datetimeValue": "A String", # RFC 3339 formatted value of the parameter.
- "intValue": "A String", # Integral value of the parameter.
- "name": "A String", # The name of the parameter.
- },
- ],
- "entity": { # Information about the type of the item.
- "profileId": "A String", # Obfuscated user id for the record.
- "userEmail": "A String", # user's email.
- "type": "A String", # The type of item, can be a customer or user.
- "customerId": "A String", # Obfuscated customer id for the record.
- },
- },
- ],
- "warnings": [ # Warnings if any.
- {
- "message": "A String", # Human readable message for the warning.
- "code": "A String", # Machine readable code / warning type.
- "data": [ # Key-Value pairs to give detailed information on the warning.
- {
- "value": "A String", # Value associated with a key-value pair to give detailed information on the warning.
- "key": "A String", # Key associated with a key-value pair to give detailed information on the warning.
- },
- ],
- },
- ],
- }
-
-
-
- get_next(previous_request, previous_response)
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.adclients.html b/docs/dyn/adsense_v1_2.accounts.adclients.html
deleted file mode 100644
index 92ea18d..0000000
--- a/docs/dyn/adsense_v1_2.accounts.adclients.html
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
List all ad clients in the specified account.
-
-Args:
- accountId: string, Account for which to list ad clients. (required)
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsense#adClient", # Kind of resource this is, in this case adsense#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsense#adClients", # Kind of list this is, in this case adsense#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.adunits.customchannels.html b/docs/dyn/adsense_v1_2.accounts.adunits.customchannels.html
deleted file mode 100644
index ea80de0..0000000
--- a/docs/dyn/adsense_v1_2.accounts.adunits.customchannels.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
List all custom channels which the specified ad unit belongs to.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.adunits.html b/docs/dyn/adsense_v1_2.accounts.adunits.html
deleted file mode 100644
index 96e2499..0000000
--- a/docs/dyn/adsense_v1_2.accounts.adunits.html
+++ /dev/null
@@ -1,241 +0,0 @@
-
-
-
-
Gets the specified ad unit in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to get the ad unit. (required)
- adUnitId: string, Ad unit to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- }
List all ad units in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.customchannels.adunits.html b/docs/dyn/adsense_v1_2.accounts.customchannels.adunits.html
deleted file mode 100644
index a23f5f4..0000000
--- a/docs/dyn/adsense_v1_2.accounts.customchannels.adunits.html
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-
-
List all ad units in the specified custom channel.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.customchannels.html b/docs/dyn/adsense_v1_2.accounts.customchannels.html
deleted file mode 100644
index e22116f..0000000
--- a/docs/dyn/adsense_v1_2.accounts.customchannels.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Get the specified custom channel from the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all custom channels in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.html b/docs/dyn/adsense_v1_2.accounts.html
deleted file mode 100644
index db3d4f4..0000000
--- a/docs/dyn/adsense_v1_2.accounts.html
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
Get information about the selected AdSense account.
-
-Args:
- accountId: string, Account to get information about. (required)
- tree: boolean, Whether the tree of sub accounts should be returned.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
- "premium": True or False, # Whether this account is premium.
- "id": "A String", # Unique identifier of this account.
- "subAccounts": [ # Sub accounts of the this account.
- # Object with schema name: Account
- ],
- "name": "A String", # Name of this account.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all accounts available to this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of accounts to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The accounts returned in this list response.
- {
- "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
- "premium": True or False, # Whether this account is premium.
- "id": "A String", # Unique identifier of this account.
- "subAccounts": [ # Sub accounts of the this account.
- # Object with schema name: Account
- ],
- "name": "A String", # Name of this account.
- },
- ],
- "kind": "adsense#accounts", # Kind of list this is, in this case adsense#accounts.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.reports.html b/docs/dyn/adsense_v1_2.accounts.reports.html
deleted file mode 100644
index c68275e..0000000
--- a/docs/dyn/adsense_v1_2.accounts.reports.html
+++ /dev/null
@@ -1,159 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- accountId: string, Account upon which to report. (required)
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- accountId: string, Account upon which to report. (required)
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.reports.saved.html b/docs/dyn/adsense_v1_2.accounts.reports.saved.html
deleted file mode 100644
index d0f028f..0000000
--- a/docs/dyn/adsense_v1_2.accounts.reports.saved.html
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
-
Generate an AdSense report based on the saved report ID sent in the query parameters.
-
-Args:
- accountId: string, Account to which the saved reports belong. (required)
- savedReportId: string, The saved report to retrieve. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- maxResults: integer, The maximum number of rows of report data to return.
- startIndex: integer, Index of the first row of report data to return.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
List all saved reports in the specified AdSense account.
-
-Args:
- accountId: string, Account to which the saved reports belong. (required)
- pageToken: string, A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved reports to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved reports returned in this list response.
- {
- "kind": "adsense#savedReport", # Kind of resource this is, in this case adsense#savedReport.
- "id": "A String", # Unique identifier of this saved report.
- "name": "A String", # This saved report's name.
- },
- ],
- "kind": "adsense#savedReports", # Kind of list this is, in this case adsense#savedReports.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.savedadstyles.html b/docs/dyn/adsense_v1_2.accounts.savedadstyles.html
deleted file mode 100644
index 2076d53..0000000
--- a/docs/dyn/adsense_v1_2.accounts.savedadstyles.html
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
List a specific saved ad style for the specified account.
-
-Args:
- accountId: string, Account for which to get the saved ad style. (required)
- savedAdStyleId: string, Saved ad style to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- }
List all saved ad styles in the specified account.
-
-Args:
- accountId: string, Account for which to list saved ad styles. (required)
- pageToken: string, A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved ad styles to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved ad styles returned in this list response.
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- },
- ],
- "kind": "adsense#savedAdStyles", # Kind of list this is, in this case adsense#savedAdStyles.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.accounts.urlchannels.html b/docs/dyn/adsense_v1_2.accounts.urlchannels.html
deleted file mode 100644
index a93f533..0000000
--- a/docs/dyn/adsense_v1_2.accounts.urlchannels.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
List all URL channels in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adsense#urlChannel", # Kind of resource this is, in this case adsense#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adsense#urlChannels", # Kind of list this is, in this case adsense#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.adclients.html b/docs/dyn/adsense_v1_2.adclients.html
deleted file mode 100644
index e51338f..0000000
--- a/docs/dyn/adsense_v1_2.adclients.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
List all ad clients in this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsense#adClient", # Kind of resource this is, in this case adsense#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsense#adClients", # Kind of list this is, in this case adsense#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.adunits.customchannels.html b/docs/dyn/adsense_v1_2.adunits.customchannels.html
deleted file mode 100644
index af00814..0000000
--- a/docs/dyn/adsense_v1_2.adunits.customchannels.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
List all custom channels which the specified ad unit belongs to.
-
-Args:
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.adunits.html b/docs/dyn/adsense_v1_2.adunits.html
deleted file mode 100644
index 21cfc74..0000000
--- a/docs/dyn/adsense_v1_2.adunits.html
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
Gets the specified ad unit in the specified ad client.
-
-Args:
- adClientId: string, Ad client for which to get the ad unit. (required)
- adUnitId: string, Ad unit to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- }
List all ad units in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.customchannels.adunits.html b/docs/dyn/adsense_v1_2.customchannels.adunits.html
deleted file mode 100644
index f987595..0000000
--- a/docs/dyn/adsense_v1_2.customchannels.adunits.html
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
List all ad units in the specified custom channel.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.customchannels.html b/docs/dyn/adsense_v1_2.customchannels.html
deleted file mode 100644
index daf3804..0000000
--- a/docs/dyn/adsense_v1_2.customchannels.html
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
Get the specified custom channel from the specified ad client.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all custom channels in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.html b/docs/dyn/adsense_v1_2.html
deleted file mode 100644
index de27135..0000000
--- a/docs/dyn/adsense_v1_2.html
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- accountId: string, Accounts upon which to report. (repeated)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- accountId: string, Accounts upon which to report. (repeated)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.reports.saved.html b/docs/dyn/adsense_v1_2.reports.saved.html
deleted file mode 100644
index 301f525..0000000
--- a/docs/dyn/adsense_v1_2.reports.saved.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Generate an AdSense report based on the saved report ID sent in the query parameters.
-
-Args:
- savedReportId: string, The saved report to retrieve. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- maxResults: integer, The maximum number of rows of report data to return.
- startIndex: integer, Index of the first row of report data to return.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all saved reports in this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved reports to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved reports returned in this list response.
- {
- "kind": "adsense#savedReport", # Kind of resource this is, in this case adsense#savedReport.
- "id": "A String", # Unique identifier of this saved report.
- "name": "A String", # This saved report's name.
- },
- ],
- "kind": "adsense#savedReports", # Kind of list this is, in this case adsense#savedReports.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.savedadstyles.html b/docs/dyn/adsense_v1_2.savedadstyles.html
deleted file mode 100644
index c8fdd89..0000000
--- a/docs/dyn/adsense_v1_2.savedadstyles.html
+++ /dev/null
@@ -1,173 +0,0 @@
-
-
-
-
Get a specific saved ad style from the user's account.
-
-Args:
- savedAdStyleId: string, Saved ad style to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all saved ad styles in the user's account.
-
-Args:
- pageToken: string, A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved ad styles to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved ad styles returned in this list response.
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- },
- ],
- "kind": "adsense#savedAdStyles", # Kind of list this is, in this case adsense#savedAdStyles.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_2.urlchannels.html b/docs/dyn/adsense_v1_2.urlchannels.html
deleted file mode 100644
index 9aa8cdd..0000000
--- a/docs/dyn/adsense_v1_2.urlchannels.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
List all URL channels in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adsense#urlChannel", # Kind of resource this is, in this case adsense#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adsense#urlChannels", # Kind of list this is, in this case adsense#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.adclients.html b/docs/dyn/adsense_v1_3.accounts.adclients.html
deleted file mode 100644
index 7cc13c1..0000000
--- a/docs/dyn/adsense_v1_3.accounts.adclients.html
+++ /dev/null
@@ -1,126 +0,0 @@
-
-
-
-
List all ad clients in the specified account.
-
-Args:
- accountId: string, Account for which to list ad clients. (required)
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsense#adClient", # Kind of resource this is, in this case adsense#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsense#adClients", # Kind of list this is, in this case adsense#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.adunits.customchannels.html b/docs/dyn/adsense_v1_3.accounts.adunits.customchannels.html
deleted file mode 100644
index 52c280a..0000000
--- a/docs/dyn/adsense_v1_3.accounts.adunits.customchannels.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
List all custom channels which the specified ad unit belongs to.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.adunits.html b/docs/dyn/adsense_v1_3.accounts.adunits.html
deleted file mode 100644
index 4f752ff..0000000
--- a/docs/dyn/adsense_v1_3.accounts.adunits.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
Gets the specified ad unit in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to get the ad unit. (required)
- adUnitId: string, Ad unit to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- }
-
-
-
- getAdCode(accountId, adClientId, adUnitId)
-
Get ad code for the specified ad unit.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client with contains the ad unit. (required)
- adUnitId: string, Ad unit to get the code for. (required)
-
-Returns:
- An object of the form:
-
- {
- "adCode": "A String", # The ad code snippet.
- "kind": "adsense#adCode", # Kind this is, in this case adsense#adCode.
- }
List all ad units in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.alerts.html b/docs/dyn/adsense_v1_3.accounts.alerts.html
deleted file mode 100644
index 35f095f..0000000
--- a/docs/dyn/adsense_v1_3.accounts.alerts.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
List the alerts for the specified AdSense account.
-
Method Details
-
- list(accountId, locale=None)
-
List the alerts for the specified AdSense account.
-
-Args:
- accountId: string, Account for which to retrieve the alerts. (required)
- locale: string, The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The alerts returned in this list response.
- {
- "type": "A String", # Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
- "kind": "adsense#alert", # Kind of resource this is, in this case adsense#alert.
- "message": "A String", # The localized alert message.
- "id": "A String", # Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "severity": "A String", # Severity of this alert. Possible values: INFO, WARNING, SEVERE.
- },
- ],
- "kind": "adsense#alerts", # Kind of list this is, in this case adsense#alerts.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.customchannels.adunits.html b/docs/dyn/adsense_v1_3.accounts.customchannels.adunits.html
deleted file mode 100644
index 003d4c0..0000000
--- a/docs/dyn/adsense_v1_3.accounts.customchannels.adunits.html
+++ /dev/null
@@ -1,171 +0,0 @@
-
-
-
-
List all ad units in the specified custom channel.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.customchannels.html b/docs/dyn/adsense_v1_3.accounts.customchannels.html
deleted file mode 100644
index 13de0c9..0000000
--- a/docs/dyn/adsense_v1_3.accounts.customchannels.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Get the specified custom channel from the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all custom channels in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.html b/docs/dyn/adsense_v1_3.accounts.html
deleted file mode 100644
index b1e2266..0000000
--- a/docs/dyn/adsense_v1_3.accounts.html
+++ /dev/null
@@ -1,187 +0,0 @@
-
-
-
-
Get information about the selected AdSense account.
-
-Args:
- accountId: string, Account to get information about. (required)
- tree: boolean, Whether the tree of sub accounts should be returned.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
- "premium": True or False, # Whether this account is premium.
- "id": "A String", # Unique identifier of this account.
- "subAccounts": [ # Sub accounts of the this account.
- # Object with schema name: Account
- ],
- "name": "A String", # Name of this account.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all accounts available to this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through accounts. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of accounts to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through accounts. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The accounts returned in this list response.
- {
- "kind": "adsense#account", # Kind of resource this is, in this case adsense#account.
- "premium": True or False, # Whether this account is premium.
- "id": "A String", # Unique identifier of this account.
- "subAccounts": [ # Sub accounts of the this account.
- # Object with schema name: Account
- ],
- "name": "A String", # Name of this account.
- },
- ],
- "kind": "adsense#accounts", # Kind of list this is, in this case adsense#accounts.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.reports.html b/docs/dyn/adsense_v1_3.accounts.reports.html
deleted file mode 100644
index c75137a..0000000
--- a/docs/dyn/adsense_v1_3.accounts.reports.html
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- accountId: string, Account upon which to report. (required)
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- useTimezoneReporting: boolean, Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- accountId: string, Account upon which to report. (required)
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- useTimezoneReporting: boolean, Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.reports.saved.html b/docs/dyn/adsense_v1_3.accounts.reports.saved.html
deleted file mode 100644
index 971a2ad..0000000
--- a/docs/dyn/adsense_v1_3.accounts.reports.saved.html
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
-
Generate an AdSense report based on the saved report ID sent in the query parameters.
-
-Args:
- accountId: string, Account to which the saved reports belong. (required)
- savedReportId: string, The saved report to retrieve. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- maxResults: integer, The maximum number of rows of report data to return.
- startIndex: integer, Index of the first row of report data to return.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
List all saved reports in the specified AdSense account.
-
-Args:
- accountId: string, Account to which the saved reports belong. (required)
- pageToken: string, A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved reports to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved reports returned in this list response.
- {
- "kind": "adsense#savedReport", # Kind of resource this is, in this case adsense#savedReport.
- "id": "A String", # Unique identifier of this saved report.
- "name": "A String", # This saved report's name.
- },
- ],
- "kind": "adsense#savedReports", # Kind of list this is, in this case adsense#savedReports.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.savedadstyles.html b/docs/dyn/adsense_v1_3.accounts.savedadstyles.html
deleted file mode 100644
index 12ccac8..0000000
--- a/docs/dyn/adsense_v1_3.accounts.savedadstyles.html
+++ /dev/null
@@ -1,175 +0,0 @@
-
-
-
-
List a specific saved ad style for the specified account.
-
-Args:
- accountId: string, Account for which to get the saved ad style. (required)
- savedAdStyleId: string, Saved ad style to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- }
List all saved ad styles in the specified account.
-
-Args:
- accountId: string, Account for which to list saved ad styles. (required)
- pageToken: string, A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved ad styles to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved ad styles returned in this list response.
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- },
- ],
- "kind": "adsense#savedAdStyles", # Kind of list this is, in this case adsense#savedAdStyles.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.accounts.urlchannels.html b/docs/dyn/adsense_v1_3.accounts.urlchannels.html
deleted file mode 100644
index c024486..0000000
--- a/docs/dyn/adsense_v1_3.accounts.urlchannels.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
List all URL channels in the specified ad client for the specified account.
-
-Args:
- accountId: string, Account to which the ad client belongs. (required)
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adsense#urlChannel", # Kind of resource this is, in this case adsense#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adsense#urlChannels", # Kind of list this is, in this case adsense#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.adclients.html b/docs/dyn/adsense_v1_3.adclients.html
deleted file mode 100644
index 58a4541..0000000
--- a/docs/dyn/adsense_v1_3.adclients.html
+++ /dev/null
@@ -1,125 +0,0 @@
-
-
-
-
List all ad clients in this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsense#adClient", # Kind of resource this is, in this case adsense#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsense#adClients", # Kind of list this is, in this case adsense#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.adunits.customchannels.html b/docs/dyn/adsense_v1_3.adunits.customchannels.html
deleted file mode 100644
index 0d4b429..0000000
--- a/docs/dyn/adsense_v1_3.adunits.customchannels.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
List all custom channels which the specified ad unit belongs to.
-
-Args:
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.adunits.html b/docs/dyn/adsense_v1_3.adunits.html
deleted file mode 100644
index c2db63a..0000000
--- a/docs/dyn/adsense_v1_3.adunits.html
+++ /dev/null
@@ -1,259 +0,0 @@
-
-
-
-
Gets the specified ad unit in the specified ad client.
-
-Args:
- adClientId: string, Ad client for which to get the ad unit. (required)
- adUnitId: string, Ad unit to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- }
-
-
-
- getAdCode(adClientId, adUnitId)
-
Get ad code for the specified ad unit.
-
-Args:
- adClientId: string, Ad client with contains the ad unit. (required)
- adUnitId: string, Ad unit to get the code for. (required)
-
-Returns:
- An object of the form:
-
- {
- "adCode": "A String", # The ad code snippet.
- "kind": "adsense#adCode", # Kind this is, in this case adsense#adCode.
- }
List all ad units in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.alerts.html b/docs/dyn/adsense_v1_3.alerts.html
deleted file mode 100644
index 513bec1..0000000
--- a/docs/dyn/adsense_v1_3.alerts.html
+++ /dev/null
@@ -1,105 +0,0 @@
-
-
-
-
List the alerts for this AdSense account.
-
-Args:
- locale: string, The locale to use for translating alert messages. The account locale will be used if this is not supplied. The AdSense default (English) will be used if the supplied locale is invalid or unsupported.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The alerts returned in this list response.
- {
- "type": "A String", # Type of this alert. Possible values: SELF_HOLD, MIGRATED_TO_BILLING3, ADDRESS_PIN_VERIFICATION, PHONE_PIN_VERIFICATION, CORPORATE_ENTITY, GRAYLISTED_PUBLISHER, API_HOLD.
- "kind": "adsense#alert", # Kind of resource this is, in this case adsense#alert.
- "message": "A String", # The localized alert message.
- "id": "A String", # Unique identifier of this alert. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "severity": "A String", # Severity of this alert. Possible values: INFO, WARNING, SEVERE.
- },
- ],
- "kind": "adsense#alerts", # Kind of list this is, in this case adsense#alerts.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.customchannels.adunits.html b/docs/dyn/adsense_v1_3.customchannels.adunits.html
deleted file mode 100644
index d8e2955..0000000
--- a/docs/dyn/adsense_v1_3.customchannels.adunits.html
+++ /dev/null
@@ -1,170 +0,0 @@
-
-
-
-
List all ad units in the specified custom channel.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsense#adUnit", # Kind of resource this is, in this case adsense#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "feedAdsSettings": { # Settings specific to feed ads (AFF).
- "minimumWordCount": 42, # The minimum length an entry should be in order to have attached ads.
- "frequency": 42, # The frequency at which ads should appear in the feed (i.e. every N entries).
- "adPosition": "A String", # The position of the ads relative to the feed entries.
- "type": "A String", # The type of ads which should appear.
- },
- "savedStyleId": "A String", # ID of the saved ad style which holds this ad unit's style information.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- },
- ],
- "kind": "adsense#adUnits", # Kind of list this is, in this case adsense#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.customchannels.html b/docs/dyn/adsense_v1_3.customchannels.html
deleted file mode 100644
index a27610d..0000000
--- a/docs/dyn/adsense_v1_3.customchannels.html
+++ /dev/null
@@ -1,164 +0,0 @@
-
-
-
-
Get the specified custom channel from the specified ad client.
-
-Args:
- adClientId: string, Ad client which contains the custom channel. (required)
- customChannelId: string, Custom channel to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all custom channels in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsense#customChannel", # Kind of resource this is, in this case adsense#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "targetingInfo": { # The targeting information of this custom channel, if activated.
- "location": "A String", # The locations in which ads appear. (Only valid for content and mobile content ads). Acceptable values for content ads are: TOP_LEFT, TOP_CENTER, TOP_RIGHT, MIDDLE_LEFT, MIDDLE_CENTER, MIDDLE_RIGHT, BOTTOM_LEFT, BOTTOM_CENTER, BOTTOM_RIGHT, MULTIPLE_LOCATIONS. Acceptable values for mobile content ads are: TOP, MIDDLE, BOTTOM, MULTIPLE_LOCATIONS.
- "adsAppearOn": "A String", # The name used to describe this channel externally.
- "siteLanguage": "A String", # The language of the sites ads will be displayed on.
- "description": "A String", # The external description of the channel.
- },
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsense#customChannels", # Kind of list this is, in this case adsense#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.html b/docs/dyn/adsense_v1_3.html
deleted file mode 100644
index e6b9395..0000000
--- a/docs/dyn/adsense_v1_3.html
+++ /dev/null
@@ -1,122 +0,0 @@
-
-
-
-
List the metadata for the dimensions available to this AdSense account.
-
Method Details
-
- list()
-
List the metadata for the dimensions available to this AdSense account.
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "requiredMetrics": [ # The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
- "A String",
- ],
- "kind": "adsense#reportingMetadataEntry", # Kind of resource this is, in this case adsense#reportingMetadataEntry.
- "compatibleMetrics": [ # The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
- "A String",
- ],
- "requiredDimensions": [ # The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
- "A String",
- ],
- "compatibleDimensions": [ # For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
- "A String",
- ],
- "id": "A String", # Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
- "supportedProducts": [ # The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
- "A String",
- ],
- },
- ],
- "kind": "adsense#metadata", # Kind of list this is, in this case adsense#metadata.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.metadata.html b/docs/dyn/adsense_v1_3.metadata.html
deleted file mode 100644
index c1aee39..0000000
--- a/docs/dyn/adsense_v1_3.metadata.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
List the metadata for the metrics available to this AdSense account.
-
Method Details
-
- list()
-
List the metadata for the metrics available to this AdSense account.
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "requiredMetrics": [ # The names of the metrics which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
- "A String",
- ],
- "kind": "adsense#reportingMetadataEntry", # Kind of resource this is, in this case adsense#reportingMetadataEntry.
- "compatibleMetrics": [ # The names of the metrics the dimension or metric this reporting metadata entry describes is compatible with.
- "A String",
- ],
- "requiredDimensions": [ # The names of the dimensions which the dimension or metric this reporting metadata entry describes requires to also be present in order for the report to be valid. Omitting these will not cause an error or warning, but may result in data which cannot be correctly interpreted.
- "A String",
- ],
- "compatibleDimensions": [ # For metrics this is a list of dimension IDs which the metric is compatible with, for dimensions it is a list of compatibility groups the dimension belongs to.
- "A String",
- ],
- "id": "A String", # Unique identifier of this reporting metadata entry, corresponding to the name of the appropriate dimension or metric.
- "supportedProducts": [ # The codes of the projects supported by the dimension or metric this reporting metadata entry describes.
- "A String",
- ],
- },
- ],
- "kind": "adsense#metadata", # Kind of list this is, in this case adsense#metadata.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.reports.html b/docs/dyn/adsense_v1_3.reports.html
deleted file mode 100644
index ff3f34a..0000000
--- a/docs/dyn/adsense_v1_3.reports.html
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- accountId: string, Accounts upon which to report. (repeated)
- useTimezoneReporting: boolean, Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- currency: string, Optional currency to use when reporting on monetary metrics. Defaults to the account's currency if not set.
- startIndex: integer, Index of the first row of report data to return.
- accountId: string, Accounts upon which to report. (repeated)
- useTimezoneReporting: boolean, Whether the report should be generated in the AdSense account's local timezone. If false default PST/PDT timezone will be used.
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- filter: string, Filters to be run on the report. (repeated)
- dimension: string, Dimensions to base the report on. (repeated)
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.reports.saved.html b/docs/dyn/adsense_v1_3.reports.saved.html
deleted file mode 100644
index e64429d..0000000
--- a/docs/dyn/adsense_v1_3.reports.saved.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Generate an AdSense report based on the saved report ID sent in the query parameters.
-
-Args:
- savedReportId: string, The saved report to retrieve. (required)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- maxResults: integer, The maximum number of rows of report data to return.
- startIndex: integer, Index of the first row of report data to return.
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#report", # Kind this is, in this case adsense#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all saved reports in this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through saved reports. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved reports to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through saved reports. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved reports returned in this list response.
- {
- "kind": "adsense#savedReport", # Kind of resource this is, in this case adsense#savedReport.
- "id": "A String", # Unique identifier of this saved report.
- "name": "A String", # This saved report's name.
- },
- ],
- "kind": "adsense#savedReports", # Kind of list this is, in this case adsense#savedReports.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.savedadstyles.html b/docs/dyn/adsense_v1_3.savedadstyles.html
deleted file mode 100644
index 4a663e1..0000000
--- a/docs/dyn/adsense_v1_3.savedadstyles.html
+++ /dev/null
@@ -1,173 +0,0 @@
-
-
-
-
Get a specific saved ad style from the user's account.
-
-Args:
- savedAdStyleId: string, Saved ad style to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all saved ad styles in the user's account.
-
-Args:
- pageToken: string, A continuation token, used to page through saved ad styles. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of saved ad styles to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The saved ad styles returned in this list response.
- {
- "kind": "adsense#savedAdStyle", # Kind of resource this is, in this case adsense#savedAdStyle.
- "adStyle": { # The AdStyle itself.
- "corners": "A String", # The style of the corners in the ad.
- "colors": { # The colors which are included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font.
- "size": "A String", # The size of the font.
- },
- "kind": "adsense#adStyle", # Kind this is, in this case adsense#adStyle.
- },
- "name": "A String", # The user selected name of this SavedAdStyle.
- "id": "A String", # Unique identifier of this saved ad style. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- },
- ],
- "kind": "adsense#savedAdStyles", # Kind of list this is, in this case adsense#savedAdStyles.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsense_v1_3.urlchannels.html b/docs/dyn/adsense_v1_3.urlchannels.html
deleted file mode 100644
index b3bf582..0000000
--- a/docs/dyn/adsense_v1_3.urlchannels.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
List all URL channels in the specified ad client for this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adsense#urlChannel", # Kind of resource this is, in this case adsense#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adsense#urlChannels", # Kind of list this is, in this case adsense#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.accounts.adclients.html b/docs/dyn/adsensehost_v4_1.accounts.adclients.html
deleted file mode 100644
index 9fb1929..0000000
--- a/docs/dyn/adsensehost_v4_1.accounts.adclients.html
+++ /dev/null
@@ -1,149 +0,0 @@
-
-
-
-
Get information about one of the ad clients in the specified publisher's AdSense account.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsensehost#adClient", # Kind of resource this is, in this case adsensehost#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- }
List all hosted ad clients in the specified hosted account.
-
-Args:
- accountId: string, Account for which to list ad clients. (required)
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsensehost#adClient", # Kind of resource this is, in this case adsensehost#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsensehost#adClients", # Kind of list this is, in this case adsensehost#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.accounts.adunits.html b/docs/dyn/adsensehost_v4_1.accounts.adunits.html
deleted file mode 100644
index 167fa1e..0000000
--- a/docs/dyn/adsensehost_v4_1.accounts.adunits.html
+++ /dev/null
@@ -1,616 +0,0 @@
-
-
-
-
Update the supplied ad unit in the specified publisher AdSense account.
-
Method Details
-
- delete(accountId, adClientId, adUnitId)
-
Delete the specified ad unit from the specified publisher AdSense account.
-
-Args:
- accountId: string, Account which contains the ad unit. (required)
- adClientId: string, Ad client for which to get ad unit. (required)
- adUnitId: string, Ad unit to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-
- get(accountId, adClientId, adUnitId)
-
Get the specified host ad unit in this AdSense account.
-
-Args:
- accountId: string, Account which contains the ad unit. (required)
- adClientId: string, Ad client for which to get ad unit. (required)
- adUnitId: string, Ad unit to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
Get ad code for the specified ad unit, attaching the specified host custom channels.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client with contains the ad unit. (required)
- adUnitId: string, Ad unit to get the code for. (required)
- hostCustomChannelId: string, Host custom channel to attach to the ad code. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "adCode": "A String", # The ad code snippet.
- "kind": "adsensehost#adCode", # Kind this is, in this case adsensehost#adCode.
- }
-
-
-
- insert(accountId, adClientId, body)
-
Insert the supplied ad unit into the specified publisher AdSense account.
-
-Args:
- accountId: string, Account which will contain the ad unit. (required)
- adClientId: string, Ad client into which to insert the ad unit. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
List all ad units in the specified publisher's AdSense account.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client for which to list ad units. (required)
- pageToken: string, A continuation token, used to page through ad units. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- includeInactive: boolean, Whether to include inactive ad units. Default: true.
- maxResults: integer, The maximum number of ad units to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad units. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad units returned in this list response.
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- },
- ],
- "kind": "adsensehost#adUnits", # Kind of list this is, in this case adsensehost#adUnits.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(accountId, adClientId, adUnitId, body)
-
Update the supplied ad unit in the specified publisher AdSense account. This method supports patch semantics.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client which contains the ad unit. (required)
- adUnitId: string, Ad unit to get. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-
- update(accountId, adClientId, body)
-
Update the supplied ad unit in the specified publisher AdSense account.
-
-Args:
- accountId: string, Account which contains the ad client. (required)
- adClientId: string, Ad client which contains the ad unit. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of this ad unit. Possible values are:
- # NEW: Indicates that the ad unit was created within the last seven days and does not yet have any activity associated with it.
- #
- # ACTIVE: Indicates that there has been activity on this ad unit in the last seven days.
- #
- # INACTIVE: Indicates that there has been no activity on this ad unit in the last seven days.
- "kind": "adsensehost#adUnit", # Kind of resource this is, in this case adsensehost#adUnit.
- "code": "A String", # Identity code of this ad unit, not necessarily unique across ad clients.
- "name": "A String", # Name of this ad unit.
- "contentAdsSettings": { # Settings specific to content ads (AFC) and highend mobile content ads (AFMC).
- "type": "A String", # Type of this ad unit. Possible values are TEXT, TEXT_IMAGE, IMAGE and LINK.
- "backupOption": { # The backup option to be used in instances where no ad is available.
- "color": "A String", # Color to use when type is set to COLOR. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # URL to use when type is set to URL.
- "type": "A String", # Type of the backup option. Possible values are BLANK, COLOR and URL.
- },
- "size": "A String", # Size of this ad unit. Size values are in the form SIZE_{width}_{height}.
- },
- "id": "A String", # Unique identifier of this ad unit. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "mobileContentAdsSettings": { # Settings specific to WAP mobile content ads (AFMC).
- "scriptingLanguage": "A String", # The scripting language to use for this ad unit.
- "type": "A String", # Type of this ad unit.
- "markupLanguage": "A String", # The markup language to use for this ad unit.
- "size": "A String", # Size of this ad unit.
- },
- "customStyle": { # Custom style information specific to this ad unit.
- "corners": "A String", # The style of the corners in the ad. Possible values are SQUARE, SLIGHTLY_ROUNDED and VERY_ROUNDED.
- "colors": { # The colors included in the style. These are represented as six hexadecimal characters, similar to HTML color codes, but without the leading hash.
- "url": "A String", # The color of the ad url.
- "text": "A String", # The color of the ad text.
- "border": "A String", # The color of the ad border.
- "background": "A String", # The color of the ad background.
- "title": "A String", # The color of the ad title.
- },
- "font": { # The font which is included in the style.
- "family": "A String", # The family of the font. Possible values are: ACCOUNT_DEFAULT_FAMILY, ADSENSE_DEFAULT_FAMILY, ARIAL, TIMES and VERDANA.
- "size": "A String", # The size of the font. Possible values are: ACCOUNT_DEFAULT_SIZE, ADSENSE_DEFAULT_SIZE, SMALL, MEDIUM and LARGE.
- },
- "kind": "adsensehost#adStyle", # Kind this is, in this case adsensehost#adStyle.
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.accounts.html b/docs/dyn/adsensehost_v4_1.accounts.html
deleted file mode 100644
index 733bf72..0000000
--- a/docs/dyn/adsensehost_v4_1.accounts.html
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
List hosted accounts associated with this AdSense account by ad client id.
-
Method Details
-
- get(accountId)
-
Get information about the selected associated AdSense account.
-
-Args:
- accountId: string, Account to get information about. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Approval status of this account. One of: PENDING, APPROVED, DISABLED.
- "kind": "adsensehost#account", # Kind of resource this is, in this case adsensehost#account.
- "id": "A String", # Unique identifier of this account.
- "name": "A String", # Name of this account.
- }
-
-
-
- list(filterAdClientId)
-
List hosted accounts associated with this AdSense account by ad client id.
-
-Args:
- filterAdClientId: string, Ad clients to list accounts for. (required) (repeated)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The accounts returned in this list response.
- {
- "status": "A String", # Approval status of this account. One of: PENDING, APPROVED, DISABLED.
- "kind": "adsensehost#account", # Kind of resource this is, in this case adsensehost#account.
- "id": "A String", # Unique identifier of this account.
- "name": "A String", # Name of this account.
- },
- ],
- "kind": "adsensehost#accounts", # Kind of list this is, in this case adsensehost#accounts.
- "etag": "A String", # ETag of this response for caching purposes.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.accounts.reports.html b/docs/dyn/adsensehost_v4_1.accounts.reports.html
deleted file mode 100644
index 920e3b6..0000000
--- a/docs/dyn/adsensehost_v4_1.accounts.reports.html
+++ /dev/null
@@ -1,127 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- accountId: string, Hosted account upon which to report. (required)
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- dimension: string, Dimensions to base the report on. (repeated)
- startIndex: integer, Index of the first row of report data to return.
- filter: string, Filters to be run on the report. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#report", # Kind this is, in this case adsensehost#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.adclients.html b/docs/dyn/adsensehost_v4_1.adclients.html
deleted file mode 100644
index 57422e4..0000000
--- a/docs/dyn/adsensehost_v4_1.adclients.html
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
Get information about one of the ad clients in the Host AdSense account.
-
-Args:
- adClientId: string, Ad client to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsensehost#adClient", # Kind of resource this is, in this case adsensehost#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List all host ad clients in this AdSense account.
-
-Args:
- pageToken: string, A continuation token, used to page through ad clients. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of ad clients to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through ad clients. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The ad clients returned in this list response.
- {
- "productCode": "A String", # This ad client's product code, which corresponds to the PRODUCT_CODE report dimension.
- "kind": "adsensehost#adClient", # Kind of resource this is, in this case adsensehost#adClient.
- "id": "A String", # Unique identifier of this ad client.
- "arcOptIn": True or False, # Whether this ad client is opted in to ARC.
- "supportsReporting": True or False, # Whether this ad client supports being reported on.
- },
- ],
- "kind": "adsensehost#adClients", # Kind of list this is, in this case adsensehost#adClients.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.associationsessions.html b/docs/dyn/adsensehost_v4_1.associationsessions.html
deleted file mode 100644
index 2bd44a5..0000000
--- a/docs/dyn/adsensehost_v4_1.associationsessions.html
+++ /dev/null
@@ -1,143 +0,0 @@
-
-
-
-
Create an association session for initiating an association with an AdSense user.
-
-Args:
- productCode: string, Products to associate with the user. (required) (repeated)
- Allowed values
- AFC - AdSense For Content
- AFG - AdSense For Games
- AFMC - AdSense For Mobile Content
- AFS - AdSense For Search
- AFV - AdSense For Video
- websiteUrl: string, The URL of the user's hosted website. (required)
- websiteLocale: string, The locale of the user's hosted website.
- userLocale: string, The preferred locale of the user.
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the completed association, available once the association callback token has been verified. One of ACCEPTED, REJECTED, or ERROR.
- "productCodes": [ # The products to associate with the user. Options: AFC, AFF, AFS, AFMC
- "A String",
- ],
- "kind": "adsensehost#associationSession", # Kind of resource this is, in this case adsensehost#associationSession.
- "userLocale": "A String", # The preferred locale of the user themselves when going through the AdSense association flow.
- "websiteLocale": "A String", # The locale of the user's hosted website.
- "redirectUrl": "A String", # Redirect URL of this association session. Used to redirect users into the AdSense association flow.
- "websiteUrl": "A String", # The URL of the user's hosted website.
- "id": "A String", # Unique identifier of this association session.
- "accountId": "A String", # Hosted account id of the associated publisher after association. Present if status is ACCEPTED.
- }
-
-
-
- verify(token)
-
Verify an association session after the association callback returns from AdSense signup.
-
-Args:
- token: string, The token returned to the association callback URL. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the completed association, available once the association callback token has been verified. One of ACCEPTED, REJECTED, or ERROR.
- "productCodes": [ # The products to associate with the user. Options: AFC, AFF, AFS, AFMC
- "A String",
- ],
- "kind": "adsensehost#associationSession", # Kind of resource this is, in this case adsensehost#associationSession.
- "userLocale": "A String", # The preferred locale of the user themselves when going through the AdSense association flow.
- "websiteLocale": "A String", # The locale of the user's hosted website.
- "redirectUrl": "A String", # Redirect URL of this association session. Used to redirect users into the AdSense association flow.
- "websiteUrl": "A String", # The URL of the user's hosted website.
- "id": "A String", # Unique identifier of this association session.
- "accountId": "A String", # Hosted account id of the associated publisher after association. Present if status is ACCEPTED.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.customchannels.html b/docs/dyn/adsensehost_v4_1.customchannels.html
deleted file mode 100644
index a0cd089..0000000
--- a/docs/dyn/adsensehost_v4_1.customchannels.html
+++ /dev/null
@@ -1,263 +0,0 @@
-
-
-
-
Update a custom channel in the host AdSense account.
-
Method Details
-
- delete(adClientId, customChannelId)
-
Delete a specific custom channel from the host AdSense account.
-
-Args:
- adClientId: string, Ad client from which to delete the custom channel. (required)
- customChannelId: string, Custom channel to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-
- get(adClientId, customChannelId)
-
Get a specific custom channel from the host AdSense account.
-
-Args:
- adClientId: string, Ad client from which to get the custom channel. (required)
- customChannelId: string, Custom channel to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-
- insert(adClientId, body)
-
Add a new custom channel to the host AdSense account.
-
-Args:
- adClientId: string, Ad client to which the new custom channel will be added. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
List all host custom channels in this AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list custom channels. (required)
- pageToken: string, A continuation token, used to page through custom channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of custom channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through custom channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The custom channels returned in this list response.
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- },
- ],
- "kind": "adsensehost#customChannels", # Kind of list this is, in this case adsensehost#customChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(adClientId, customChannelId, body)
-
Update a custom channel in the host AdSense account. This method supports patch semantics.
-
-Args:
- adClientId: string, Ad client in which the custom channel will be updated. (required)
- customChannelId: string, Custom channel to get. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-
- update(adClientId, body)
-
Update a custom channel in the host AdSense account.
-
-Args:
- adClientId: string, Ad client in which the custom channel will be updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#customChannel", # Kind of resource this is, in this case adsensehost#customChannel.
- "code": "A String", # Code of this custom channel, not necessarily unique across ad clients.
- "id": "A String", # Unique identifier of this custom channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "name": "A String", # Name of this custom channel.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.html b/docs/dyn/adsensehost_v4_1.html
deleted file mode 100644
index 52a5227..0000000
--- a/docs/dyn/adsensehost_v4_1.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
Generate an AdSense report based on the report request sent in the query parameters. Returns the result as JSON; to retrieve output in CSV format specify "alt=csv" as a query parameter.
-
-Args:
- startDate: string, Start of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- endDate: string, End of the date range to report on in "YYYY-MM-DD" format, inclusive. (required)
- sort: string, The name of a dimension or metric to sort the resulting report on, optionally prefixed with "+" to sort ascending or "-" to sort descending. If no prefix is specified, the column is sorted ascending. (repeated)
- locale: string, Optional locale to use for translating report output to a local language. Defaults to "en_US" if not specified.
- metric: string, Numeric columns to include in the report. (repeated)
- maxResults: integer, The maximum number of rows of report data to return.
- dimension: string, Dimensions to base the report on. (repeated)
- startIndex: integer, Index of the first row of report data to return.
- filter: string, Filters to be run on the report. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#report", # Kind this is, in this case adsensehost#report.
- "rows": [ # The output rows of the report. Each row is a list of cells; one for each dimension in the request, followed by one for each metric in the request. The dimension cells contain strings, and the metric cells contain numbers.
- [
- "A String",
- ],
- ],
- "warnings": [ # Any warnings associated with generation of the report.
- "A String",
- ],
- "totals": [ # The totals of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- "headers": [ # The header information of the columns requested in the report. This is a list of headers; one for each dimension in the request, followed by one for each metric in the request.
- {
- "currency": "A String", # The currency of this column. Only present if the header type is METRIC_CURRENCY.
- "type": "A String", # The type of the header; one of DIMENSION, METRIC_TALLY, METRIC_RATIO, or METRIC_CURRENCY.
- "name": "A String", # The name of the header.
- },
- ],
- "totalMatchedRows": "A String", # The total number of rows matched by the report request. Fewer rows may be returned in the response due to being limited by the row count requested or the report row limit.
- "averages": [ # The averages of the report. This is the same length as any other row in the report; cells corresponding to dimension columns are empty.
- "A String",
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/adsensehost_v4_1.urlchannels.html b/docs/dyn/adsensehost_v4_1.urlchannels.html
deleted file mode 100644
index fa85805..0000000
--- a/docs/dyn/adsensehost_v4_1.urlchannels.html
+++ /dev/null
@@ -1,174 +0,0 @@
-
-
-
-
Delete a URL channel from the host AdSense account.
-
-Args:
- adClientId: string, Ad client from which to delete the URL channel. (required)
- urlChannelId: string, URL channel to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#urlChannel", # Kind of resource this is, in this case adsensehost#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- }
-
-
-
- insert(adClientId, body)
-
Add a new URL channel to the host AdSense account.
-
-Args:
- adClientId: string, Ad client to which the new URL channel will be added. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "adsensehost#urlChannel", # Kind of resource this is, in this case adsensehost#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "adsensehost#urlChannel", # Kind of resource this is, in this case adsensehost#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- }
List all host URL channels in the host AdSense account.
-
-Args:
- adClientId: string, Ad client for which to list URL channels. (required)
- pageToken: string, A continuation token, used to page through URL channels. To retrieve the next page, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of URL channels to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Continuation token used to page through URL channels. To retrieve the next page of results, set the next request's "pageToken" value to this.
- "items": [ # The URL channels returned in this list response.
- {
- "kind": "adsensehost#urlChannel", # Kind of resource this is, in this case adsensehost#urlChannel.
- "id": "A String", # Unique identifier of this URL channel. This should be considered an opaque identifier; it is not safe to rely on it being in any particular format.
- "urlPattern": "A String", # URL Pattern of this URL channel. Does not include "http://" or "https://". Example: www.example.com/home
- },
- ],
- "kind": "adsensehost#urlChannels", # Kind of list this is, in this case adsensehost#urlChannels.
- "etag": "A String", # ETag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.data.ga.html b/docs/dyn/analytics_v3.data.ga.html
deleted file mode 100644
index 0df711c..0000000
--- a/docs/dyn/analytics_v3.data.ga.html
+++ /dev/null
@@ -1,151 +0,0 @@
-
-
-
-
Returns Analytics data for a view (profile).
-
-Args:
- ids: string, Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. (required)
- start_date: string, Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD. (required)
- end_date: string, End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD. (required)
- metrics: string, A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified. (required)
- sort: string, A comma-separated list of dimensions or metrics that determine the sort order for Analytics data.
- dimensions: string, A comma-separated list of Analytics dimensions. E.g., 'ga:browser,ga:city'.
- filters: string, A comma-separated list of dimension or metric filters to be applied to Analytics data.
- max_results: integer, The maximum number of entries to include in this feed.
- segment: string, An Analytics advanced segment to be applied to data.
- start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # Analytics data for a given view (profile).
- "kind": "analytics#gaData", # Resource type.
- "rows": [ # Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
- [
- "A String",
- ],
- ],
- "containsSampledData": True or False, # Determines if Analytics data contains samples.
- "totalResults": 42, # The total number of rows for the query, regardless of the number of rows in the response.
- "itemsPerPage": 42, # The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "totalsForAllResults": { # Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.
- "a_key": "A String", # Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.
- },
- "nextLink": "A String", # Link to next page for this Analytics data query.
- "id": "A String", # Unique ID for this data response.
- "query": { # Analytics data request query parameters.
- "max-results": 42, # Maximum results per page.
- "sort": [ # List of dimensions or metrics based on which Analytics data is sorted.
- "A String",
- ],
- "dimensions": "A String", # List of analytics dimensions.
- "start-date": "A String", # Start date.
- "start-index": 42, # Start index.
- "segment": "A String", # Analytics advanced segment.
- "ids": "A String", # Unique table ID.
- "metrics": [ # List of analytics metrics.
- "A String",
- ],
- "filters": "A String", # Comma-separated list of dimension or metric filters.
- "end-date": "A String", # End date.
- },
- "previousLink": "A String", # Link to previous page for this Analytics data query.
- "profileInfo": { # Information for the view (profile), for which the Analytics data was requested.
- "webPropertyId": "A String", # Web Property ID to which this view (profile) belongs.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs.
- "tableId": "A String", # Table ID for view (profile).
- "profileId": "A String", # View (Profile) ID.
- "profileName": "A String", # View (Profile) name.
- "accountId": "A String", # Account ID to which this view (profile) belongs.
- },
- "columnHeaders": [ # Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.
- {
- "dataType": "A String", # Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc.
- "columnType": "A String", # Column Type. Either DIMENSION or METRIC.
- "name": "A String", # Column name.
- },
- ],
- "selfLink": "A String", # Link to this page.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.data.html b/docs/dyn/analytics_v3.data.html
deleted file mode 100644
index 7d24ed6..0000000
--- a/docs/dyn/analytics_v3.data.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
Returns Analytics Multi-Channel Funnels data for a view (profile).
-
-Args:
- ids: string, Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. (required)
- start_date: string, Start date for fetching Analytics data. All requests should specify a start date formatted as YYYY-MM-DD. (required)
- end_date: string, End date for fetching Analytics data. All requests should specify an end date formatted as YYYY-MM-DD. (required)
- metrics: string, A comma-separated list of Multi-Channel Funnels metrics. E.g., 'mcf:totalConversions,mcf:totalConversionValue'. At least one metric must be specified. (required)
- sort: string, A comma-separated list of dimensions or metrics that determine the sort order for the Analytics data.
- dimensions: string, A comma-separated list of Multi-Channel Funnels dimensions. E.g., 'mcf:source,mcf:medium'.
- filters: string, A comma-separated list of dimension or metric filters to be applied to the Analytics data.
- max_results: integer, The maximum number of entries to include in this feed.
- start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # Multi-Channel Funnels data for a given view (profile).
- "kind": "analytics#mcfData", # Resource type.
- "rows": [ # Analytics data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
- [
- { # A union object representing a dimension or metric value. Only one of "primitiveValue" or "conversionPathValue" attribute will be populated.
- "primitiveValue": "A String", # A primitive dimension value. A primitive metric value.
- "conversionPathValue": [ # A conversion path dimension value, containing a list of interactions with their attributes.
- {
- "nodeValue": "A String", # Node value of an interaction on conversion path. Such as source, medium etc.
- "interactionType": "A String", # Type of an interaction on conversion path. Such as CLICK, IMPRESSION etc.
- },
- ],
- },
- ],
- ],
- "containsSampledData": True or False, # Determines if the Analytics data contains sampled data.
- "totalResults": 42, # The total number of rows for the query, regardless of the number of rows in the response.
- "itemsPerPage": 42, # The maximum number of rows the response can contain, regardless of the actual number of rows returned. Its value ranges from 1 to 10,000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "totalsForAllResults": { # Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.
- "a_key": "A String", # Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.
- },
- "nextLink": "A String", # Link to next page for this Analytics data query.
- "id": "A String", # Unique ID for this data response.
- "query": { # Analytics data request query parameters.
- "max-results": 42, # Maximum results per page.
- "sort": [ # List of dimensions or metrics based on which Analytics data is sorted.
- "A String",
- ],
- "dimensions": "A String", # List of analytics dimensions.
- "start-date": "A String", # Start date.
- "start-index": 42, # Start index.
- "segment": "A String", # Analytics advanced segment.
- "ids": "A String", # Unique table ID.
- "metrics": [ # List of analytics metrics.
- "A String",
- ],
- "filters": "A String", # Comma-separated list of dimension or metric filters.
- "end-date": "A String", # End date.
- },
- "previousLink": "A String", # Link to previous page for this Analytics data query.
- "profileInfo": { # Information for the view (profile), for which the Analytics data was requested.
- "webPropertyId": "A String", # Web Property ID to which this view (profile) belongs.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs.
- "tableId": "A String", # Table ID for view (profile).
- "profileId": "A String", # View (Profile) ID.
- "profileName": "A String", # View (Profile) name.
- "accountId": "A String", # Account ID to which this view (profile) belongs.
- },
- "columnHeaders": [ # Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.
- {
- "dataType": "A String", # Data type. Dimension and metric values data types such as INTEGER, DOUBLE, CURRENCY, MCF_SEQUENCE etc.
- "columnType": "A String", # Column Type. Either DIMENSION or METRIC.
- "name": "A String", # Column name.
- },
- ],
- "selfLink": "A String", # Link to this page.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.data.realtime.html b/docs/dyn/analytics_v3.data.realtime.html
deleted file mode 100644
index edaf5e2..0000000
--- a/docs/dyn/analytics_v3.data.realtime.html
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
-
Returns real-time data for a view (profile).
-
-Args:
- ids: string, Unique table ID for retrieving Analytics data. Table ID is of the form ga:XXXX, where XXXX is the Analytics view (profile) ID. (required)
- metrics: string, A comma-separated list of Analytics metrics. E.g., 'ga:visits,ga:pageviews'. At least one metric must be specified. (required)
- sort: string, A comma-separated list of dimensions or metrics that determine the sort order for real-time data.
- dimensions: string, A comma-separated list of real-time dimensions. E.g., 'ga:medium,ga:city'.
- filters: string, A comma-separated list of dimension or metric filters to be applied to real-time data.
- max_results: integer, The maximum number of entries to include in this feed.
-
-Returns:
- An object of the form:
-
- { # Real time data for a given view (profile).
- "kind": "analytics#realtimeData", # Resource type.
- "rows": [ # Real time data rows, where each row contains a list of dimension values followed by the metric values. The order of dimensions and metrics is same as specified in the request.
- [
- "A String",
- ],
- ],
- "totalResults": 42, # The total number of rows for the query, regardless of the number of rows in the response.
- "totalsForAllResults": { # Total values for the requested metrics over all the results, not just the results returned in this response. The order of the metric totals is same as the metric order specified in the request.
- "a_key": "A String", # Key-value pair for the total value of a metric. Key is the metric name and the value is the total value for that metric.
- },
- "id": "A String", # Unique ID for this data response.
- "query": { # Real time data request query parameters.
- "max-results": 42, # Maximum results per page.
- "sort": [ # List of dimensions or metrics based on which real time data is sorted.
- "A String",
- ],
- "dimensions": "A String", # List of real time dimensions.
- "ids": "A String", # Unique table ID.
- "metrics": [ # List of real time metrics.
- "A String",
- ],
- "filters": "A String", # Comma-separated list of dimension or metric filters.
- },
- "profileInfo": { # Information for the view (profile), for which the real time data was requested.
- "webPropertyId": "A String", # Web Property ID to which this view (profile) belongs.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs.
- "tableId": "A String", # Table ID for view (profile).
- "profileId": "A String", # View (Profile) ID.
- "profileName": "A String", # View (Profile) name.
- "accountId": "A String", # Account ID to which this view (profile) belongs.
- },
- "columnHeaders": [ # Column headers that list dimension names followed by the metric names. The order of dimensions and metrics is same as specified in the request.
- {
- "dataType": "A String", # Data type. Dimension column headers have only STRING as the data type. Metric column headers have data types for metric values such as INTEGER, DOUBLE, CURRENCY etc.
- "columnType": "A String", # Column Type. Either DIMENSION or METRIC.
- "name": "A String", # Column name.
- },
- ],
- "selfLink": "A String", # Link to this page.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.html b/docs/dyn/analytics_v3.html
deleted file mode 100644
index 2e3faeb..0000000
--- a/docs/dyn/analytics_v3.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Lists all accounts to which the user has access.
-
-Args:
- max_results: integer, The maximum number of accounts to include in this response.
- start_index: integer, An index of the first account to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # An account collection provides a list of Analytics accounts to which a user has access. The account collection is the entry point to all management information. Each resource in the collection corresponds to a single Analytics account.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#accounts", # Collection type.
- "items": [ # A list of accounts.
- { # JSON template for Analytics account entry.
- "kind": "analytics#account", # Resource type for Analytics account.
- "name": "A String", # Account name.
- "created": "A String", # Time the account was created.
- "updated": "A String", # Time the account was last modified.
- "childLink": { # Child link for an account entry. Points to the list of web properties for this account.
- "href": "A String", # Link to the list of web properties for this account.
- "type": "analytics#webproperties", # Type of the child link. Its value is "analytics#webproperties".
- },
- "id": "A String", # Account ID.
- "selfLink": "A String", # Link for this account.
- },
- ],
- "itemsPerPage": 42, # The maximum number of entries the response can contain, regardless of the actual number of entries returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Previous link for this account collection.
- "startIndex": 42, # The starting index of the entries, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Next link for this account collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.customDataSources.html b/docs/dyn/analytics_v3.management.customDataSources.html
deleted file mode 100644
index 51b15c0..0000000
--- a/docs/dyn/analytics_v3.management.customDataSources.html
+++ /dev/null
@@ -1,130 +0,0 @@
-
-
-
-
List custom data sources to which the user has access.
-
-Args:
- accountId: string, Account Id for the custom data sources to retrieve. (required)
- webPropertyId: string, Web property Id for the custom data sources to retrieve. (required)
- max_results: integer, The maximum number of custom data sources to include in this response.
- start_index: integer, A 1-based index of the first custom data source to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # Lists Analytics custom data sources to which the user has access. Each resource in the collection corresponds to a single Analytics custom data source.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#customDataSources", # Collection type.
- "items": [ # Collection of custom data sources.
- { # JSON template for an Analytics custom data source.
- "kind": "analytics#customDataSource", # Resource type for Analytics custom data source.
- "description": "A String", # Description of custom data source.
- "created": "A String", # Time this custom data source was created.
- "profilesLinked": [ # IDs of views (profiles) linked to the custom data source.
- "A String",
- ],
- "updated": "A String", # Time this custom data source was last modified.
- "name": "A String", # Name of this custom data source.
- "childLink": {
- "href": "A String", # Link to the list of daily uploads for this custom data source. Link to the list of uploads for this custom data source.
- "type": "A String", # Value is "analytics#dailyUploads". Value is "analytics#uploads".
- },
- "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this custom data source belongs.
- "parentLink": { # Parent link for this custom data source. Points to the web property to which this custom data source belongs.
- "href": "A String", # Link to the web property to which this custom data source belongs.
- "type": "analytics#webproperty", # Value is "analytics#webproperty".
- },
- "type": "A String", # Type of the custom data source.
- "id": "A String", # Custom data source ID.
- "selfLink": "A String", # Link for this Analytics custom data source.
- "accountId": "A String", # Account ID to which this custom data source belongs.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this custom data source collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this custom data source collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.dailyUploads.html b/docs/dyn/analytics_v3.management.dailyUploads.html
deleted file mode 100644
index 80428b9..0000000
--- a/docs/dyn/analytics_v3.management.dailyUploads.html
+++ /dev/null
@@ -1,182 +0,0 @@
-
-
-
-
Delete uploaded data for the given date.
-
-Args:
- accountId: string, Account Id associated with daily upload delete. (required)
- webPropertyId: string, Web property Id associated with daily upload delete. (required)
- customDataSourceId: string, Custom data source Id associated with daily upload delete. (required)
- date: string, Date for which data is to be deleted. Date should be formatted as YYYY-MM-DD. (required)
- type: string, Type of data for this delete. (required)
- Allowed values
- cost - Value for specifying cost data upload.
-
List daily uploads to which the user has access.
-
-Args:
- accountId: string, Account Id for the daily uploads to retrieve. (required)
- webPropertyId: string, Web property Id for the daily uploads to retrieve. (required)
- customDataSourceId: string, Custom data source Id for daily uploads to retrieve. (required)
- start_date: string, Start date of the form YYYY-MM-DD. (required)
- end_date: string, End date of the form YYYY-MM-DD. (required)
- max_results: integer, The maximum number of custom data sources to include in this response.
- start_index: integer, A 1-based index of the first daily upload to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # A daily upload collection lists Analytics daily uploads to which the user has access. Each resource in the collection corresponds to a single Analytics daily upload.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#dailyUploads", # Collection type. Value is analytics#dailyUploads.
- "items": [ # A collection of daily uploads.
- { # Metadata for daily upload entity.
- "recentChanges": [ # Change log for last 10 changes in chronological order.
- {
- "change": "A String", # The type of change: APPEND, RESET, or DELETE.
- "time": "A String", # The time when the change occurred.
- },
- ],
- "kind": "analytics#dailyUpload", # Resource type for Analytics daily upload.
- "modifiedTime": "A String", # Time this daily upload was last modified.
- "appendCount": 42, # Number of appends for this date.
- "customDataSourceId": "A String", # Custom data source ID to which this daily upload belongs.
- "date": "A String", # Date associated with daily upload.
- "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this daily upload belongs.
- "createdTime": "A String", # Time this daily upload was created.
- "parentLink": { # Parent link for a daily upload. Points to the custom data source to which this daily upload belongs.
- "href": "A String", # Link to the custom data source to which this daily upload belongs.
- "type": "analytics#customDataSource", # Value is "analytics#customDataSource".
- },
- "selfLink": "A String", # Link for this daily upload.
- "accountId": "A String", # Account ID to which this daily upload belongs.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this daily upload collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this daily upload collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
Update/Overwrite data for a custom data source.
-
-Args:
- accountId: string, Account Id associated with daily upload. (required)
- webPropertyId: string, Web property Id associated with daily upload. (required)
- customDataSourceId: string, Custom data source Id to which the data being uploaded belongs. (required)
- date: string, Date for which data is uploaded. Date should be formatted as YYYY-MM-DD. (required)
- appendNumber: integer, Append number for this upload indexed from 1. (required)
- type: string, Type of data for this upload. (required)
- Allowed values
- cost - Value for specifying cost data upload.
- reset: boolean, Reset/Overwrite all previous appends for this date and start over with this file as the first upload.
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # Metadata returned for a successful append operation.
- "kind": "analytics#dailyUploadAppend", # Resource type for Analytics daily upload append.
- "customDataSourceId": "A String", # Custom data source Id to which this daily upload append belongs.
- "appendNumber": 42, # Append number.
- "webPropertyId": "A String", # Web property Id of the form UA-XXXXX-YY to which this daily upload append belongs.
- "date": "A String", # Date associated with daily upload append.
- "nextAppendLink": "A String",
- "accountId": "A String", # Account Id to which this daily upload append belongs.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.experiments.html b/docs/dyn/analytics_v3.management.experiments.html
deleted file mode 100644
index 0c01462..0000000
--- a/docs/dyn/analytics_v3.management.experiments.html
+++ /dev/null
@@ -1,550 +0,0 @@
-
-
-
-
Delete an experiment.
-
-Args:
- accountId: string, Account ID to which the experiment belongs (required)
- webPropertyId: string, Web property ID to which the experiment belongs (required)
- profileId: string, View (Profile) ID to which the experiment belongs (required)
- experimentId: string, ID of the experiment to delete (required)
-
Returns an experiment to which the user has access.
-
-Args:
- accountId: string, Account ID to retrieve the experiment for. (required)
- webPropertyId: string, Web property ID to retrieve the experiment for. (required)
- profileId: string, View (Profile) ID to retrieve the experiment for. (required)
- experimentId: string, Experiment ID to retrieve the experiment for. (required)
-
-Returns:
- An object of the form:
-
- { # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
Create a new experiment.
-
-Args:
- accountId: string, Account ID to create the experiment for. (required)
- webPropertyId: string, Web property ID to create the experiment for. (required)
- profileId: string, View (Profile) ID to create the experiment for. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
Lists experiments to which the user has access.
-
-Args:
- accountId: string, Account ID to retrieve experiments for. (required)
- webPropertyId: string, Web property ID to retrieve experiments for. (required)
- profileId: string, View (Profile) ID to retrieve experiments for. (required)
- max_results: integer, The maximum number of experiments to include in this response.
- start_index: integer, An index of the first experiment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # An experiment collection lists Analytics experiments to which the user has access. Each view (profile) can have a set of experiments. Each resource in the Experiment collection corresponds to a single Analytics experiment.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#experiments", # Collection type.
- "items": [ # A list of experiments.
- { # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this experiment collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this experiment collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of resources in the result.
- }
Update an existing experiment. This method supports patch semantics.
-
-Args:
- accountId: string, Account ID of the experiment to update. (required)
- webPropertyId: string, Web property ID of the experiment to update. (required)
- profileId: string, View (Profile) ID of the experiment to update. (required)
- experimentId: string, Experiment ID of the experiment to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
Update an existing experiment.
-
-Args:
- accountId: string, Account ID of the experiment to update. (required)
- webPropertyId: string, Web property ID of the experiment to update. (required)
- profileId: string, View (Profile) ID of the experiment to update. (required)
- experimentId: string, Experiment ID of the experiment to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for Analytics experiment resource.
- "trafficCoverage": 3.14, # A floating-point number between 0 and 1. Specifies the fraction of the traffic that participates in the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "webPropertyId": "A String", # Web property ID to which this experiment belongs. The web property ID is of the form UA-XXXXX-YY. This field is read-only.
- "optimizationType": "A String", # Whether the objectiveMetric should be minimized or maximized. Possible values: "MAXIMUM", "MINIMUM". Optional--defaults to "MAXIMUM". Cannot be specified without objectiveMetric. Cannot be modified when status is "RUNNING" or "ENDED".
- "objectiveMetric": "A String", # The metric that the experiment is optimizing. Valid values: "ga:goal(n)Completions", "ga:bounces", "ga:pageviews", "ga:timeOnSite", "ga:transactions", "ga:transactionRevenue". This field is required if status is "RUNNING" and servingFramework is one of "REDIRECT" or "API".
- "id": "A String", # Experiment ID. Required for patch and update. Disallowed for create.
- "accountId": "A String", # Account ID to which this experiment belongs. This field is read-only.
- "snippet": "A String", # The snippet of code to include on the control page(s). This field is read-only.
- "editableInGaUi": "", # If true, the end user will be able to edit the experiment via the Google Analytics user interface.
- "rewriteVariationUrlsAsOriginal": True or False, # Boolean specifying whether variations URLS are rewritten to match those of the original. This field may not be changed for an experiments whose status is ENDED.
- "servingFramework": "", # The framework used to serve the experiment variations and evaluate the results. One of:
- # - REDIRECT: Google Analytics redirects traffic to different variation pages, reports the chosen variation and evaluates the results.
- # - API: Google Analytics chooses and reports the variation to serve and evaluates the results; the caller is responsible for serving the selected variation.
- # - EXTERNAL: The variations will be served externally and the chosen variation reported to Google Analytics. The caller is responsible for serving the selected variation and evaluating the results.
- "status": "A String", # Experiment status. Possible values: "DRAFT", "READY_TO_RUN", "RUNNING", "ENDED". Experiments can be created in the "DRAFT", "READY_TO_RUN" or "RUNNING" state. This field is required when creating an experiment.
- "updated": "A String", # Time the experiment was last modified. This field is read-only.
- "description": "A String", # Notes about this experiment.
- "reasonExperimentEnded": "A String", # Why the experiment ended. Possible values: "STOPPED_BY_USER", "WINNER_FOUND", "EXPERIMENT_EXPIRED", "ENDED_WITH_NO_WINNER", "GOAL_OBJECTIVE_CHANGED". "ENDED_WITH_NO_WINNER" means that the experiment didn't expire but no winner was projected to be found. If the experiment status is changed via the API to ENDED this field is set to STOPPED_BY_USER. This field is read-only.
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this experiment belongs. This field is read-only.
- "winnerConfidenceLevel": 3.14, # A floating-point number between 0 and 1. Specifies the necessary confidence level to choose a winner. This field may not be changed for an experiments whose status is ENDED.
- "startTime": "A String", # The starting time of the experiment (the time the status changed from READY_TO_RUN to RUNNING). This field is present only if the experiment has started. This field is read-only.
- "winnerFound": True or False, # Boolean specifying whether a winner has been found for this experiment. This field is read-only.
- "kind": "analytics#experiment", # Resource type for an Analytics experiment. This field is read-only.
- "name": "A String", # Experiment name. This field may not be changed for an experiment whose status is ENDED. This field is required when creating an experiment.
- "created": "A String", # Time the experiment was created. This field is read-only.
- "variations": [ # Array of variations. The first variation in the array is the original. The number of variations may not change once an experiment is in the RUNNING state. At least two variations are required before status can be set to RUNNING.
- {
- "status": "A String", # Status of the variation. Possible values: "ACTIVE", "INACTIVE". INACTIVE variations are not served. This field may not be changed for an experiment whose status is ENDED.
- "url": "A String", # The URL of the variation. This field may not be changed for an experiment whose status is RUNNING or ENDED.
- "won": True or False, # True if the experiment has ended and this variation performed (statistically) significantly better than the original. This field is read-only.
- "name": "A String", # The name of the variation. This field is required when creating an experiment. This field may not be changed for an experiment whose status is ENDED.
- "weight": 3.14, # Weight that this variation should receive. Only present if the experiment is running. This field is read-only.
- },
- ],
- "minimumExperimentLengthInDays": 42, # Specifies the minimum length of the experiment. Can be changed for a running experiment. This field may not be changed for an experiments whose status is ENDED.
- "profileId": "A String", # View (Profile) ID to which this experiment belongs. This field is read-only.
- "parentLink": { # Parent link for an experiment. Points to the view (profile) to which this experiment belongs.
- "href": "A String", # Link to the view (profile) to which this experiment belongs. This field is read-only.
- "type": "analytics#profile", # Value is "analytics#profile". This field is read-only.
- },
- "endTime": "A String", # The ending time of the experiment (the time the status changed from RUNNING to ENDED). This field is present only if the experiment has ended. This field is read-only.
- "selfLink": "A String", # Link for this experiment. This field is read-only.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.goals.html b/docs/dyn/analytics_v3.management.goals.html
deleted file mode 100644
index ff0e1e2..0000000
--- a/docs/dyn/analytics_v3.management.goals.html
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
Lists goals to which the user has access.
-
-Args:
- accountId: string, Account ID to retrieve goals for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. (required)
- webPropertyId: string, Web property ID to retrieve goals for. Can either be a specific web property ID or '~all', which refers to all the web properties that user has access to. (required)
- profileId: string, View (Profile) ID to retrieve goals for. Can either be a specific view (profile) ID or '~all', which refers to all the views (profiles) that user has access to. (required)
- max_results: integer, The maximum number of goals to include in this response.
- start_index: integer, An index of the first goal to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # A goal collection lists Analytics goals to which the user has access. Each view (profile) can have a set of goals. Each resource in the Goal collection corresponds to a single Analytics goal.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#goals", # Collection type.
- "items": [ # A list of goals.
- { # JSON template for Analytics goal resource.
- "kind": "analytics#goal", # Resource type for an Analytics goal.
- "visitTimeOnSiteDetails": { # Details for the goal of the type VISIT_TIME_ON_SITE.
- "comparisonType": "A String", # Type of comparison. Possible values are LESS_THAN or GREATER_THAN.
- "comparisonValue": "A String", # Value used for this comparison.
- },
- "name": "A String", # Goal name.
- "created": "A String", # Time this goal was created.
- "urlDestinationDetails": { # Details for the goal of the type URL_DESTINATION.
- "url": "A String", # URL for this goal.
- "caseSensitive": True or False, # Determines if the goal URL must exactly match the capitalization of visited URLs.
- "matchType": "A String", # Match type for the goal URL. Possible values are HEAD, EXACT, or REGEX.
- "steps": [ # List of steps configured for this goal funnel.
- {
- "url": "A String", # URL for this step.
- "name": "A String", # Step name.
- "number": 42, # Step number.
- },
- ],
- "firstStepRequired": True or False, # Determines if the first step in this goal is required.
- },
- "updated": "A String", # Time this goal was last modified.
- "value": 3.14, # Goal value.
- "visitNumPagesDetails": { # Details for the goal of the type VISIT_NUM_PAGES.
- "comparisonType": "A String", # Type of comparison. Possible values are LESS_THAN, GREATER_THAN, or EQUAL.
- "comparisonValue": "A String", # Value used for this comparison.
- },
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this goal belongs.
- "eventDetails": { # Details for the goal of the type EVENT.
- "eventConditions": [ # List of event conditions.
- {
- "type": "A String", # Type of this event condition. Possible values are CATEGORY, ACTION, LABEL, or VALUE.
- "matchType": "A String", # Type of the match to be performed. Possible values are REGEXP, BEGINS_WITH, or EXACT.
- "expression": "A String", # Expression used for this match.
- "comparisonType": "A String", # Type of comparison. Possible values are LESS_THAN, GREATER_THAN or EQUAL.
- "comparisonValue": "A String", # Value used for this comparison.
- },
- ],
- "useEventValue": True or False, # Determines if the event value should be used as the value for this goal.
- },
- "webPropertyId": "A String", # Web property ID to which this goal belongs. The web property ID is of the form UA-XXXXX-YY.
- "active": True or False, # Determines whether this goal is active.
- "profileId": "A String", # View (Profile) ID to which this goal belongs.
- "parentLink": { # Parent link for a goal. Points to the view (profile) to which this goal belongs.
- "href": "A String", # Link to the view (profile) to which this goal belongs.
- "type": "analytics#profile", # Value is "analytics#profile".
- },
- "type": "A String", # Goal type. Possible values are URL_DESTINATION, VISIT_TIME_ON_SITE, VISIT_NUM_PAGES, AND EVENT.
- "id": "A String", # Goal ID.
- "selfLink": "A String", # Link for this goal.
- "accountId": "A String", # Account ID to which this goal belongs.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this goal collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this goal collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of resources in the result.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.html b/docs/dyn/analytics_v3.management.html
deleted file mode 100644
index b285f71..0000000
--- a/docs/dyn/analytics_v3.management.html
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
Lists views (profiles) to which the user has access.
-
-Args:
- accountId: string, Account ID for the view (profiles) to retrieve. Can either be a specific account ID or '~all', which refers to all the accounts to which the user has access. (required)
- webPropertyId: string, Web property ID for the views (profiles) to retrieve. Can either be a specific web property ID or '~all', which refers to all the web properties to which the user has access. (required)
- max_results: integer, The maximum number of views (profiles) to include in this response.
- start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # A view (profile) collection lists Analytics views (profiles) to which the user has access. Each resource in the collection corresponds to a single Analytics view (profile).
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#profiles", # Collection type.
- "items": [ # A list of views (profiles).
- { # JSON template for an Analytics view (profile).
- "defaultPage": "A String", # Default page for this view (profile).
- "kind": "analytics#profile", # Resource type for Analytics profile.
- "excludeQueryParameters": "A String", # The query parameters that are excluded from this view (profile).
- "name": "A String", # Name of this view (profile).
- "created": "A String", # Time this view (profile) was created.
- "webPropertyId": "A String", # Web property ID of the form UA-XXXXX-YY to which this view (profile) belongs.
- "updated": "A String", # Time this view (profile) was last modified.
- "siteSearchQueryParameters": "A String", # The site search query parameters for this view (profile).
- "websiteUrl": "A String", # Website URL for this view (profile).
- "currency": "A String", # The currency type associated with this view (profile).
- "internalWebPropertyId": "A String", # Internal ID for the web property to which this view (profile) belongs.
- "childLink": { # Child link for this view (profile). Points to the list of goals for this view (profile).
- "href": "A String", # Link to the list of goals for this view (profile).
- "type": "analytics#goals", # Value is "analytics#goals".
- },
- "eCommerceTracking": True or False, # Indicates whether ecommerce tracking is enabled for this view (profile).
- "timezone": "A String", # Time zone for which this profile has been configured.
- "siteSearchCategoryParameters": "A String", # Site search category parameters for this view (profile).
- "parentLink": { # Parent link for this view (profile). Points to the web property to which this view (profile) belongs.
- "href": "A String", # Link to the web property to which this view (profile) belongs.
- "type": "analytics#webproperty", # Value is "analytics#webproperty".
- },
- "type": "A String", # View (Profile) type. Supported types: WEB or APP.
- "id": "A String", # View (Profile) ID.
- "selfLink": "A String", # Link for this view (profile).
- "accountId": "A String", # Account ID to which this view (profile) belongs.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this view (profile) collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this view (profile) collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.segments.html b/docs/dyn/analytics_v3.management.segments.html
deleted file mode 100644
index 8f2db69..0000000
--- a/docs/dyn/analytics_v3.management.segments.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
Lists advanced segments to which the user has access.
-
Method Details
-
- list(max_results=None, start_index=None)
-
Lists advanced segments to which the user has access.
-
-Args:
- max_results: integer, The maximum number of advanced segments to include in this response.
- start_index: integer, An index of the first advanced segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # An advanced segment collection lists Analytics advanced segments that the user has access to. Each resource in the collection corresponds to a single Analytics advanced segment.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#segments", # Collection type for advanced segments.
- "items": [ # A list of advanced segments.
- { # JSON template for an Analytics advanced segment.
- "definition": "A String", # Advanced segment definition.
- "kind": "analytics#segment", # Resource type for Analytics advanced segment.
- "segmentId": "A String", # Segment ID. Can be used with the 'segment' parameter in Data Feed.
- "created": "A String", # Time the advanced segment was created.
- "updated": "A String", # Time the advanced segment was last modified.
- "id": "A String", # Advanced segment ID.
- "selfLink": "A String", # Link for this advanced segment.
- "name": "A String", # Advanced segment name.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this advanced segment collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this advanced segment collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/analytics_v3.management.webproperties.html b/docs/dyn/analytics_v3.management.webproperties.html
deleted file mode 100644
index 1ed414e..0000000
--- a/docs/dyn/analytics_v3.management.webproperties.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
Lists web properties to which the user has access.
-
-Args:
- accountId: string, Account ID to retrieve web properties for. Can either be a specific account ID or '~all', which refers to all the accounts that user has access to. (required)
- max_results: integer, The maximum number of web properties to include in this response.
- start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.
-
-Returns:
- An object of the form:
-
- { # A web property collection lists Analytics web properties to which the user has access. Each resource in the collection corresponds to a single Analytics web property.
- "username": "A String", # Email ID of the authenticated user
- "kind": "analytics#webproperties", # Collection type.
- "items": [ # A list of web properties.
- { # JSON template for an Analytics web property.
- "websiteUrl": "A String", # Website url for this web property.
- "kind": "analytics#webproperty", # Resource type for Analytics WebProperty.
- "name": "A String", # Name of this web property.
- "created": "A String", # Time this web property was created.
- "level": "A String", # Level for this web property. Possible values are STANDARD or PREMIUM.
- "updated": "A String", # Time this web property was last modified.
- "profileCount": 42, # View (Profile) count for this web property.
- "internalWebPropertyId": "A String", # Internal ID for this web property.
- "childLink": { # Child link for this web property. Points to the list of views (profiles) for this web property.
- "href": "A String", # Link to the list of views (profiles) for this web property.
- "type": "analytics#profiles", # Type of the parent link. Its value is "analytics#profiles".
- },
- "industryVertical": "A String", # The industry vertical/category selected for this web property.
- "parentLink": { # Parent link for this web property. Points to the account to which this web property belongs.
- "href": "A String", # Link to the account for this web property.
- "type": "analytics#account", # Type of the parent link. Its value is "analytics#account".
- },
- "id": "A String", # Web property ID of the form UA-XXXXX-YY.
- "selfLink": "A String", # Link for this web property.
- "accountId": "A String", # Account ID to which this web property belongs.
- },
- ],
- "itemsPerPage": 42, # The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
- "previousLink": "A String", # Link to previous page for this web property collection.
- "startIndex": 42, # The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
- "nextLink": "A String", # Link to next page for this web property collection.
- "totalResults": 42, # The total number of results for the query, regardless of the number of results in the response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/androidpublisher_v1.html b/docs/dyn/androidpublisher_v1.html
deleted file mode 100644
index 376f428..0000000
--- a/docs/dyn/androidpublisher_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Checks whether a user's subscription purchase is valid and returns its expiry time.
-
Method Details
-
- cancel(packageName, subscriptionId, token)
-
Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
-
-Args:
- packageName: string, The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). (required)
- subscriptionId: string, The purchased subscription ID (for example, 'monthly001'). (required)
- token: string, The token provided to the user's device when the subscription was purchased. (required)
-
-
-
-
- get(packageName, subscriptionId, token)
-
Checks whether a user's subscription purchase is valid and returns its expiry time.
-
-Args:
- packageName: string, The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). (required)
- subscriptionId: string, The purchased subscription ID (for example, 'monthly001'). (required)
- token: string, The token provided to the user's device when the subscription was purchased. (required)
-
-Returns:
- An object of the form:
-
- { # A Purchase resource indicates the status of a user's subscription purchase.
- "initiationTimestampMsec": "A String", # Time at which the subscription was granted, in milliseconds since Epoch.
- "kind": "androidpublisher#subscriptionPurchase", # This kind represents a subscriptionPurchase object in the androidpublisher service.
- "autoRenewing": True or False, # Whether the subscription will automatically be renewed when it reaches its current expiry time.
- "validUntilTimestampMsec": "A String", # Time at which the subscription will expire, in milliseconds since Epoch.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/androidpublisher_v1_1.html b/docs/dyn/androidpublisher_v1_1.html
deleted file mode 100644
index adf06a6..0000000
--- a/docs/dyn/androidpublisher_v1_1.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Checks the purchase and consumption status of an inapp item.
-
Method Details
-
- get(packageName, productId, token)
-
Checks the purchase and consumption status of an inapp item.
-
-Args:
- packageName: string, The package name of the application the inapp product was sold in (for example, 'com.some.thing'). (required)
- productId: string, The inapp product SKU (for example, 'com.some.thing.inapp1'). (required)
- token: string, The token provided to the user's device when the inapp product was purchased. (required)
-
-Returns:
- An object of the form:
-
- { # A Purchase resource indicates the status of a user's subscription purchase.
- "consumptionState": 42, # The consumption state of the inapp product. Possible values are:
- # - - Consumed
- # - - Yet to be consumed
- "developerPayload": "A String", # A developer-specified string that contains supplemental information about an order.
- "kind": "androidpublisher#inappPurchase", # This kind represents a inappPurchase object in the androidpublisher service.
- "purchaseTime": "A String", # The time the product was purchased, in milliseconds since the epoch (Jan 1, 1970).
- "purchaseState": 42, # The purchase state of the order. Possible values are:
- # - - Purchased
- # - - Cancelled
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/androidpublisher_v1_1.purchases.html b/docs/dyn/androidpublisher_v1_1.purchases.html
deleted file mode 100644
index f556adc..0000000
--- a/docs/dyn/androidpublisher_v1_1.purchases.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
Checks whether a user's subscription purchase is valid and returns its expiry time.
-
Method Details
-
- cancel(packageName, subscriptionId, token)
-
Cancels a user's subscription purchase. The subscription remains valid until its expiration time.
-
-Args:
- packageName: string, The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). (required)
- subscriptionId: string, The purchased subscription ID (for example, 'monthly001'). (required)
- token: string, The token provided to the user's device when the subscription was purchased. (required)
-
-
-
-
- get(packageName, subscriptionId, token)
-
Checks whether a user's subscription purchase is valid and returns its expiry time.
-
-Args:
- packageName: string, The package name of the application for which this subscription was purchased (for example, 'com.some.thing'). (required)
- subscriptionId: string, The purchased subscription ID (for example, 'monthly001'). (required)
- token: string, The token provided to the user's device when the subscription was purchased. (required)
-
-Returns:
- An object of the form:
-
- { # A Purchase resource indicates the status of a user's subscription purchase.
- "initiationTimestampMsec": "A String", # Time at which the subscription was granted, in milliseconds since Epoch.
- "kind": "androidpublisher#subscriptionPurchase", # This kind represents a subscriptionPurchase object in the androidpublisher service.
- "autoRenewing": True or False, # Whether the subscription will automatically be renewed when it reaches its current expiry time.
- "validUntilTimestampMsec": "A String", # Time at which the subscription will expire, in milliseconds since Epoch.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/appstate_v1.html b/docs/dyn/appstate_v1.html
deleted file mode 100644
index 37445e5..0000000
--- a/docs/dyn/appstate_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.
-
Method Details
-
- clear(stateKey, currentDataVersion=None)
-
Clears (sets to empty) the data for the passed key if and only if the passed version matches the currently stored version. This method results in a conflict error on version mismatch.
-
-Args:
- stateKey: integer, The key for the data to be retrieved. (required)
- currentDataVersion: string, The version of the data to be cleared. Version strings are returned by the server.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an app state write result.
- "kind": "appstate#writeResult", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.
- "stateKey": 42, # The written key.
- "currentStateVersion": "A String", # The version of the data for this key on the server.
- }
-
-
-
- delete(stateKey)
-
Deletes a key and the data associated with it. The key is removed and no longer counts against the key quota. Note that since this method is not safe in the face of concurrent modifications, it should only be used for development and testing purposes. Invoking this method in shipping code can result in data loss and data corruption.
-
-Args:
- stateKey: integer, The key for the data to be retrieved. (required)
-
-
-
-
- get(stateKey)
-
Retrieves the data corresponding to the passed key.
-
-Args:
- stateKey: integer, The key for the data to be retrieved. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an app state resource.
- "stateKey": 42, # The key for the data.
- "kind": "appstate#getResponse", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.
- "data": "A String", # The requested data.
- "currentStateVersion": "A String", # The current app state version.
- }
-
-
-
- list(includeData=None)
-
Lists all the states keys, and optionally the state data.
-
-Args:
- includeData: boolean, Whether to include the full data in addition to the version number
-
-Returns:
- An object of the form:
-
- { # This is a JSON template to convert a list-response for app state.
- "items": [ # The app state data.
- { # This is a JSON template for an app state resource.
- "stateKey": 42, # The key for the data.
- "kind": "appstate#getResponse", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#getResponse.
- "data": "A String", # The requested data.
- "currentStateVersion": "A String", # The current app state version.
- },
- ],
- "kind": "appstate#listResponse", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#listResponse.
- "maximumKeyCount": 42, # The maximum number of keys allowed for this user.
- }
Update the data associated with the input key if and only if the passed version matches the currently stored version. This method is safe in the face of concurrent writes. Maximum per-key size is 128KB.
-
-Args:
- stateKey: integer, The key for the data to be retrieved. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for a requests which update app state
- "kind": "appstate#updateRequest", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#updateRequest.
- "data": "A String", # The new app state data that your application is trying to update with.
- }
-
- currentStateVersion: string, The version of the app state your application is attempting to update. If this does not match the current version, this method will return a conflict error. If there is no data stored on the server for this key, the update will succeed irrespective of the value of this parameter.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an app state write result.
- "kind": "appstate#writeResult", # Uniquely identifies the type of this resource. Value is always the fixed string appstate#writeResult.
- "stateKey": 42, # The written key.
- "currentStateVersion": "A String", # The version of the data for this key on the server.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/audit_v1.activities.html b/docs/dyn/audit_v1.activities.html
deleted file mode 100644
index a869ae5..0000000
--- a/docs/dyn/audit_v1.activities.html
+++ /dev/null
@@ -1,141 +0,0 @@
-
-
-
-
Retrieves a list of activities for a specific customer and application.
-
-Args:
- customerId: string, Represents the customer who is the owner of target object on which action was performed. (required)
- applicationId: string, Application ID of the application on which the event was performed. (required)
- caller: string, Type of the caller.
- Allowed values
- application_owner - Caller is an application owner.
- customer - Caller is a customer.
- startTime: string, Return events which occured at or after this time.
- actorIpAddress: string, IP Address of host where the event was performed. Supports both IPv4 and IPv6 addresses.
- eventName: string, Name of the event being queried.
- actorApplicationId: string, Application ID of the application which interacted on behalf of the user while performing the event.
- continuationToken: string, Next page URL.
- maxResults: integer, Number of activity records to be shown in each page.
- actorEmail: string, Email address of the user who performed the action.
- endTime: string, Return events which occured at or before this time.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # Each record in read response.
- {
- "kind": "audit#activity", # Kind of resource this is.
- "ownerDomain": "A String", # Domain of source customer.
- "actor": { # User doing the action.
- "applicationId": "A String", # ID of application which interacted on behalf of the user.
- "email": "A String", # Email address of the user.
- "key": "A String", # For OAuth 2LO API requests, consumer_key of the requestor.
- "callerType": "A String", # User or OAuth 2LO request.
- },
- "id": { # Unique identifier for each activity record.
- "uniqQualifier": "A String", # Unique qualifier if multiple events have the same time.
- "applicationId": "A String", # Application ID of the source application.
- "customerId": "A String", # Obfuscated customer ID of the source customer.
- "time": "A String", # Time of occurrence of the activity.
- },
- "ipAddress": "A String", # IP Address of the user doing the action.
- "events": [ # Activity events.
- {
- "eventType": "A String", # Type of event.
- "name": "A String", # Name of event.
- "parameters": [ # Event parameters.
- {
- "name": "A String", # Name of the parameter.
- "value": "A String", # Value of the parameter.
- },
- ],
- },
- ],
- },
- ],
- "kind": "audit#activities", # Kind of list response this is.
- "next": "A String", # Next page URL.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/audit_v1.html b/docs/dyn/audit_v1.html
deleted file mode 100644
index 13aa956..0000000
--- a/docs/dyn/audit_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
Lists all the datasets in the specified project to which the caller has read access; however, a project owner can list (but not necessarily get) all datasets in his project.
Updates information in an existing dataset, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset. This method supports patch semantics.
Updates information in an existing dataset, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset.
Deletes the dataset specified by datasetId value. Before you can delete a dataset, you must delete all its tables, either manually or by specifying deleteContents. Immediately after deletion, you can create another dataset with the same name.
-
-Args:
- projectId: string, Project ID of the dataset being deleted (required)
- datasetId: string, Dataset ID of dataset being deleted (required)
- deleteContents: boolean, If True, delete all the tables in the dataset. If False and the dataset contains tables, the request will fail. Default is False
-
-
-
-
- get(projectId, datasetId)
-
Returns the dataset specified by datasetID.
-
-Args:
- projectId: string, Project ID of the requested dataset (required)
- datasetId: string, Dataset ID of the requested dataset (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-
- insert(projectId, body)
-
Creates a new empty dataset.
-
-Args:
- projectId: string, Project ID of the new dataset (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
Lists all the datasets in the specified project to which the caller has read access; however, a project owner can list (but not necessarily get) all datasets in his project.
-
-Args:
- projectId: string, Project ID of the datasets to be listed (required)
- pageToken: string, Page token, returned by a previous call, to request the next page of results
- maxResults: integer, The maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token that can be used to request the next results page. This property is omitted on the final results page.
- "kind": "bigquery#datasetList", # The list type. This property always returns the value "bigquery#datasetList".
- "datasets": [ # An array of the dataset resources in the project. Each resource contains basic information. For full information about a particular dataset resource, use the Datasets: get method. This property is omitted when there are no datasets in the project.
- {
- "friendlyName": "A String", # A descriptive name for the dataset, if one exists.
- "kind": "bigquery#dataset", # The resource type. This property always returns the value "bigquery#dataset".
- "id": "A String", # The fully-qualified, unique, opaque ID of the dataset.
- "datasetReference": { # The dataset reference. Use this property to access specific parts of the dataset's ID, such as project ID or dataset ID.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- },
- ],
- "etag": "A String", # A hash value of the results page. You can use this property to determine if the page has changed since the last request.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(projectId, datasetId, body)
-
Updates information in an existing dataset, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset. This method supports patch semantics.
-
-Args:
- projectId: string, Project ID of the dataset being updated (required)
- datasetId: string, Dataset ID of the dataset being updated (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-
- update(projectId, datasetId, body)
-
Updates information in an existing dataset, specified by datasetId. Properties not included in the submitted resource will not be changed. If you include the access property without any values assigned, the request will fail as you must specify at least one owner for a dataset.
-
-Args:
- projectId: string, Project ID of the dataset being updated (required)
- datasetId: string, Dataset ID of the dataset being updated (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#dataset", # [Output-only] The resource type.
- "description": "A String", # [Optional] A user-friendly string description for the dataset. This might be shown in BigQuery UI for browsing the dataset.
- "datasetReference": { # [Required] Reference identifying dataset.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "creationTime": "A String", # [Output-only] The time when this dataset was created, in milliseconds since the epoch.
- "access": [ # [Optional] Describes users' rights on the dataset. You can assign the same role to multiple users, and assign multiple roles to the same user.
- # Default values assigned to a new dataset are as follows: OWNER - Project owners, dataset creator READER - Project readers WRITER - Project writers
- # See ACLs and Rights for a description of these rights. If you specify any of these roles when creating a dataset, the assigned roles will overwrite the defaults listed above.
- # To revoke rights to a dataset, call datasets.update() and omit the names of anyone whose rights you wish to revoke. However, every dataset must have at least one entity granted OWNER role.
- # Each access object can have only one of the following members: userByEmail, groupByEmail, domain, or allAuthenticatedUsers.
- {
- "specialGroup": "A String", # [Pick one] A special group to grant access to. The valid values are: projectOwners: Owners of the enclosing project. projectReaders: Readers of the enclosing project. projectWriters: Writers of the enclosing project. allAuthenticatedUsers: All authenticated BigQuery users.
- "domain": "A String", # [Pick one] A domain to grant access to. Any users signed in with the domain specified will be granted the specified access. Example: "example.com".
- "role": "A String", # [Required] Describes the rights granted to the user specified by the other member of the access object. The following string values are supported: READER - User can call any list() or get() method on any collection or resource. WRITER - User can call any method on any collection except for datasets, on which they can call list() and get(). OWNER - User can call any method. The dataset creator is granted this role by default.
- "groupByEmail": "A String", # [Pick one] A fully-qualified email address of a mailing list to grant access to. This must be either a Google Groups mailing list (ends in @googlegroups.com) or a group managed by an enterprise version of Google Groups.
- "userByEmail": "A String", # [Pick one] A fully qualified email address of a user to grant access to. For example: fred@example.com.
- },
- ],
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this dataset, which might be shown in any BigQuery user interfaces for browsing the dataset. Use datasetId for making API calls.
- "lastModifiedTime": "A String", # [Output-only] The date when this dataset or any of its tables was last modified, in milliseconds since the epoch.
- "id": "A String", # [Output-only] The fully-qualified unique name of this dataset in the format projectId:datasetId. The dataset name without the project name is given in the datasetId field. When creating a new dataset, leave this field blank, and instead specify the datasetId field.
- "selfLink": "A String", # [Output-only] An URL that can be used to access this resource again. You can use this URL in Get or Update requests to this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/bigquery_v2.html b/docs/dyn/bigquery_v2.html
deleted file mode 100644
index 9a19266..0000000
--- a/docs/dyn/bigquery_v2.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.
-
Method Details
-
- get(projectId, jobId)
-
Retrieves the specified job by ID.
-
-Args:
- projectId: string, Project ID of the requested job (required)
- jobId: string, Job ID of the requested job (required)
-
-Returns:
- An object of the form:
-
- {
- "status": { # [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
- "state": "A String", # [Output-only] Running state of the job.
- "errors": [ # [Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.
- {
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- ],
- "errorResult": { # [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- },
- "kind": "bigquery#job", # [Output-only] The type of the resource.
- "statistics": { # [Output-only] Information about the job, including starting time and ending time of the job.
- "load": { # [Output-only] Statistics for a load job.
- "outputRows": "A String", # [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change.
- "inputFiles": "A String", # [Output-only] Number of source files in a load job.
- "inputFileBytes": "A String", # [Output-only] Number of bytes of source data in a joad job.
- "outputBytes": "A String", # [Output-only] Size of the loaded data in bytes. Note that while an import job is in the running state, this value may change.
- },
- "query": { # [Output-only] Statistics for a query job.
- "completionRatio": 3.14, # [Output-Only] Approximate fraction of data processed for this query. This will be 1.0 unless min_completion_ratio for the query was set to something other than 1.0.
- "cacheHit": True or False, # [Output-only] Whether the query result was fetched from the query cache.
- "totalBytesProcessed": "A String", # [Output-only] Total bytes processed for this job.
- },
- "endTime": "A String", # [Output-only] End time of this job, in milliseconds since the epoch.
- "totalBytesProcessed": "A String", # [Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
- "startTime": "A String", # [Output-only] Start time of this job, in milliseconds since the epoch.
- },
- "jobReference": { # [Optional] Reference describing the unique-per-user name of the job.
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "etag": "A String", # [Output-only] A hash of this resource.
- "configuration": { # [Required] Describes the job configuration.
- "load": { # [Pick one] Configures a load job.
- "encoding": "A String", # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
- "fieldDelimiter": "A String", # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
- "sourceFormat": "A String", # [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
- "destinationTable": { # [Required] The destination table to load the data into.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "writeDisposition": "A String", # [Optional] Specifies the action that occurs if the destination table already exists. Each action is atomic and only occurs if BigQuery is able to fully load the data and the load job completes without error. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists, a 'duplicate' error is returned in the job result. Creation, truncation and append actions occur as one atomic update upon job completion.
- "maxBadRecords": 42, # [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an 'invalid' error is returned in the job result and the job fails. The default value is 0, which requires that all records are valid.
- "allowJaggedRows": True or False, # [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. Default is false which treats short rows as errors. Only applicable to CSV, ignored for other formats.
- "skipLeadingRows": 42, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.
- "sourceUris": [ # [Required] The fully-qualified URIs that point to your data on Google Cloud Storage.
- "A String",
- ],
- "quote": "A String", # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
- "createDisposition": "A String", # [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
- "schemaInlineFormat": "A String", # [Deprecated] The format of the schemaInline property.
- "schemaInline": "A String", # [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT".
- "allowQuotedNewlines": True or False, # Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
- "schema": { # [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists or if the schema can be inferred from the loaded data.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- },
- "dryRun": True or False, # [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.
- "link": { # [Pick one] Configures a link job.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_APPEND.
- "destinationTable": { # [Required] The destination table of the link job.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceUri": [ # [Required] URI of source table to link.
- "A String",
- ],
- },
- "query": { # [Pick one] Configures a query job.
- "useQueryCache": True or False, # [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified.
- "defaultDataset": { # [Optional] Specifies the default dataset to assume for unqualified table names in the query.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "destinationTable": { # [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "priority": "A String", # [Optional] Specifies a priority for the query. Default is INTERACTIVE. Alternative is BATCH.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_EMPTY.
- "allowLargeResults": True or False, # [Experimental] If true, allows >128M results to be materialized in the destination table. Requires destination_table to be set.
- "query": "A String", # [Required] BigQuery SQL query to execute.
- "createDisposition": "A String", # [Optional] Whether to create the table if it doesn't already exist (CREATE_IF_NEEDED) or to require the table already exist (CREATE_NEVER). Default is CREATE_IF_NEEDED.
- "minCompletionRatio": 3.14, # [Experimental] Specifies the the minimum fraction of data that must be scanned before a query returns. This should be specified as a value between 0.0 and 1.0 inclusive. The default value is 1.0.
- "preserveNulls": True or False, # [Experimental] If set, preserve null values in table data, rather than mapping null values to the column's default value. This flag currently defaults to false, but the default will soon be changed to true. Shortly afterward, this flag will be removed completely. Please specify true if possible, and false only if you need to force the old behavior while updating client code.
- },
- "copy": { # [Pick one] Copies a table.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether or not to append or require the table to be empty.
- "destinationTable": { # [Required] The destination table
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceTable": { # [Required] Source table to copy.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- },
- "extract": { # [Pick one] Configures an extract job.
- "destinationFormat": "A String", # [Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".
- "destinationUri": "A String", # [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
- "printHeader": True or False, # [Optional] Whether to print out a heder row in the results. Default is true.
- "sourceTable": { # [Required] A reference to the table being exported.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "fieldDelimiter": "A String", # [Optional] Delimiter to use between fields in the exported data. Default is ','
- },
- },
- "id": "A String", # [Output-only] Opaque ID field of the job
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- }
Retrieves the results of a query job.
-
-Args:
- projectId: string, Project ID of the query job (required)
- jobId: string, Job ID of the query job (required)
- timeoutMs: integer, How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error
- pageToken: string, Page token, returned by a previous call, to request the next page of results
- maxResults: integer, Maximum number of results to read
- startIndex: string, Zero-based index of the starting row
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#getQueryResultsResponse", # The resource type of the response.
- "rows": [ # An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above. Present only when the query completes successfully.
- { # Represents a single row in the result set, consisting of one or more fields.
- "f": [
- { # Represents a single cell in the result set. Users of the java client can detect whether their value result is null by calling 'com.google.api.client.util.Data.isNull(cell.getV())'.
- "v": "",
- },
- ],
- },
- ],
- "jobReference": { # Reference to the BigQuery Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "pageToken": "A String", # A token used for paging results.
- "jobComplete": True or False, # Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.
- "totalRows": "A String", # The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results. Present only when the query completes successfully.
- "cacheHit": True or False, # Whether the query result was fetched from the query cache.
- "etag": "A String", # A hash of this response.
- "schema": { # The schema of the results. Present only when the query completes successfully.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-
- insert(projectId, body=None, media_body=None)
-
Starts a new asynchronous job.
-
-Args:
- projectId: string, Project ID of the project that will be billed for the job (required)
- body: object, The request body.
- The object takes the form of:
-
-{
- "status": { # [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
- "state": "A String", # [Output-only] Running state of the job.
- "errors": [ # [Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.
- {
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- ],
- "errorResult": { # [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- },
- "kind": "bigquery#job", # [Output-only] The type of the resource.
- "statistics": { # [Output-only] Information about the job, including starting time and ending time of the job.
- "load": { # [Output-only] Statistics for a load job.
- "outputRows": "A String", # [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change.
- "inputFiles": "A String", # [Output-only] Number of source files in a load job.
- "inputFileBytes": "A String", # [Output-only] Number of bytes of source data in a joad job.
- "outputBytes": "A String", # [Output-only] Size of the loaded data in bytes. Note that while an import job is in the running state, this value may change.
- },
- "query": { # [Output-only] Statistics for a query job.
- "completionRatio": 3.14, # [Output-Only] Approximate fraction of data processed for this query. This will be 1.0 unless min_completion_ratio for the query was set to something other than 1.0.
- "cacheHit": True or False, # [Output-only] Whether the query result was fetched from the query cache.
- "totalBytesProcessed": "A String", # [Output-only] Total bytes processed for this job.
- },
- "endTime": "A String", # [Output-only] End time of this job, in milliseconds since the epoch.
- "totalBytesProcessed": "A String", # [Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
- "startTime": "A String", # [Output-only] Start time of this job, in milliseconds since the epoch.
- },
- "jobReference": { # [Optional] Reference describing the unique-per-user name of the job.
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "etag": "A String", # [Output-only] A hash of this resource.
- "configuration": { # [Required] Describes the job configuration.
- "load": { # [Pick one] Configures a load job.
- "encoding": "A String", # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
- "fieldDelimiter": "A String", # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
- "sourceFormat": "A String", # [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
- "destinationTable": { # [Required] The destination table to load the data into.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "writeDisposition": "A String", # [Optional] Specifies the action that occurs if the destination table already exists. Each action is atomic and only occurs if BigQuery is able to fully load the data and the load job completes without error. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists, a 'duplicate' error is returned in the job result. Creation, truncation and append actions occur as one atomic update upon job completion.
- "maxBadRecords": 42, # [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an 'invalid' error is returned in the job result and the job fails. The default value is 0, which requires that all records are valid.
- "allowJaggedRows": True or False, # [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. Default is false which treats short rows as errors. Only applicable to CSV, ignored for other formats.
- "skipLeadingRows": 42, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.
- "sourceUris": [ # [Required] The fully-qualified URIs that point to your data on Google Cloud Storage.
- "A String",
- ],
- "quote": "A String", # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
- "createDisposition": "A String", # [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
- "schemaInlineFormat": "A String", # [Deprecated] The format of the schemaInline property.
- "schemaInline": "A String", # [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT".
- "allowQuotedNewlines": True or False, # Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
- "schema": { # [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists or if the schema can be inferred from the loaded data.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- },
- "dryRun": True or False, # [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.
- "link": { # [Pick one] Configures a link job.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_APPEND.
- "destinationTable": { # [Required] The destination table of the link job.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceUri": [ # [Required] URI of source table to link.
- "A String",
- ],
- },
- "query": { # [Pick one] Configures a query job.
- "useQueryCache": True or False, # [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified.
- "defaultDataset": { # [Optional] Specifies the default dataset to assume for unqualified table names in the query.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "destinationTable": { # [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "priority": "A String", # [Optional] Specifies a priority for the query. Default is INTERACTIVE. Alternative is BATCH.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_EMPTY.
- "allowLargeResults": True or False, # [Experimental] If true, allows >128M results to be materialized in the destination table. Requires destination_table to be set.
- "query": "A String", # [Required] BigQuery SQL query to execute.
- "createDisposition": "A String", # [Optional] Whether to create the table if it doesn't already exist (CREATE_IF_NEEDED) or to require the table already exist (CREATE_NEVER). Default is CREATE_IF_NEEDED.
- "minCompletionRatio": 3.14, # [Experimental] Specifies the the minimum fraction of data that must be scanned before a query returns. This should be specified as a value between 0.0 and 1.0 inclusive. The default value is 1.0.
- "preserveNulls": True or False, # [Experimental] If set, preserve null values in table data, rather than mapping null values to the column's default value. This flag currently defaults to false, but the default will soon be changed to true. Shortly afterward, this flag will be removed completely. Please specify true if possible, and false only if you need to force the old behavior while updating client code.
- },
- "copy": { # [Pick one] Copies a table.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether or not to append or require the table to be empty.
- "destinationTable": { # [Required] The destination table
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceTable": { # [Required] Source table to copy.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- },
- "extract": { # [Pick one] Configures an extract job.
- "destinationFormat": "A String", # [Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".
- "destinationUri": "A String", # [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
- "printHeader": True or False, # [Optional] Whether to print out a heder row in the results. Default is true.
- "sourceTable": { # [Required] A reference to the table being exported.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "fieldDelimiter": "A String", # [Optional] Delimiter to use between fields in the exported data. Default is ','
- },
- },
- "id": "A String", # [Output-only] Opaque ID field of the job
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- {
- "status": { # [Output-only] The status of this job. Examine this value when polling an asynchronous job to see if the job is complete.
- "state": "A String", # [Output-only] Running state of the job.
- "errors": [ # [Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.
- {
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- ],
- "errorResult": { # [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- },
- "kind": "bigquery#job", # [Output-only] The type of the resource.
- "statistics": { # [Output-only] Information about the job, including starting time and ending time of the job.
- "load": { # [Output-only] Statistics for a load job.
- "outputRows": "A String", # [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change.
- "inputFiles": "A String", # [Output-only] Number of source files in a load job.
- "inputFileBytes": "A String", # [Output-only] Number of bytes of source data in a joad job.
- "outputBytes": "A String", # [Output-only] Size of the loaded data in bytes. Note that while an import job is in the running state, this value may change.
- },
- "query": { # [Output-only] Statistics for a query job.
- "completionRatio": 3.14, # [Output-Only] Approximate fraction of data processed for this query. This will be 1.0 unless min_completion_ratio for the query was set to something other than 1.0.
- "cacheHit": True or False, # [Output-only] Whether the query result was fetched from the query cache.
- "totalBytesProcessed": "A String", # [Output-only] Total bytes processed for this job.
- },
- "endTime": "A String", # [Output-only] End time of this job, in milliseconds since the epoch.
- "totalBytesProcessed": "A String", # [Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
- "startTime": "A String", # [Output-only] Start time of this job, in milliseconds since the epoch.
- },
- "jobReference": { # [Optional] Reference describing the unique-per-user name of the job.
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "etag": "A String", # [Output-only] A hash of this resource.
- "configuration": { # [Required] Describes the job configuration.
- "load": { # [Pick one] Configures a load job.
- "encoding": "A String", # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
- "fieldDelimiter": "A String", # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
- "sourceFormat": "A String", # [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
- "destinationTable": { # [Required] The destination table to load the data into.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "writeDisposition": "A String", # [Optional] Specifies the action that occurs if the destination table already exists. Each action is atomic and only occurs if BigQuery is able to fully load the data and the load job completes without error. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists, a 'duplicate' error is returned in the job result. Creation, truncation and append actions occur as one atomic update upon job completion.
- "maxBadRecords": 42, # [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an 'invalid' error is returned in the job result and the job fails. The default value is 0, which requires that all records are valid.
- "allowJaggedRows": True or False, # [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. Default is false which treats short rows as errors. Only applicable to CSV, ignored for other formats.
- "skipLeadingRows": 42, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.
- "sourceUris": [ # [Required] The fully-qualified URIs that point to your data on Google Cloud Storage.
- "A String",
- ],
- "quote": "A String", # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
- "createDisposition": "A String", # [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
- "schemaInlineFormat": "A String", # [Deprecated] The format of the schemaInline property.
- "schemaInline": "A String", # [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT".
- "allowQuotedNewlines": True or False, # Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
- "schema": { # [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists or if the schema can be inferred from the loaded data.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- },
- "dryRun": True or False, # [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.
- "link": { # [Pick one] Configures a link job.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_APPEND.
- "destinationTable": { # [Required] The destination table of the link job.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceUri": [ # [Required] URI of source table to link.
- "A String",
- ],
- },
- "query": { # [Pick one] Configures a query job.
- "useQueryCache": True or False, # [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified.
- "defaultDataset": { # [Optional] Specifies the default dataset to assume for unqualified table names in the query.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "destinationTable": { # [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "priority": "A String", # [Optional] Specifies a priority for the query. Default is INTERACTIVE. Alternative is BATCH.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_EMPTY.
- "allowLargeResults": True or False, # [Experimental] If true, allows >128M results to be materialized in the destination table. Requires destination_table to be set.
- "query": "A String", # [Required] BigQuery SQL query to execute.
- "createDisposition": "A String", # [Optional] Whether to create the table if it doesn't already exist (CREATE_IF_NEEDED) or to require the table already exist (CREATE_NEVER). Default is CREATE_IF_NEEDED.
- "minCompletionRatio": 3.14, # [Experimental] Specifies the the minimum fraction of data that must be scanned before a query returns. This should be specified as a value between 0.0 and 1.0 inclusive. The default value is 1.0.
- "preserveNulls": True or False, # [Experimental] If set, preserve null values in table data, rather than mapping null values to the column's default value. This flag currently defaults to false, but the default will soon be changed to true. Shortly afterward, this flag will be removed completely. Please specify true if possible, and false only if you need to force the old behavior while updating client code.
- },
- "copy": { # [Pick one] Copies a table.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether or not to append or require the table to be empty.
- "destinationTable": { # [Required] The destination table
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceTable": { # [Required] Source table to copy.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- },
- "extract": { # [Pick one] Configures an extract job.
- "destinationFormat": "A String", # [Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".
- "destinationUri": "A String", # [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
- "printHeader": True or False, # [Optional] Whether to print out a heder row in the results. Default is true.
- "sourceTable": { # [Required] A reference to the table being exported.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "fieldDelimiter": "A String", # [Optional] Delimiter to use between fields in the exported data. Default is ','
- },
- },
- "id": "A String", # [Output-only] Opaque ID field of the job
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- }
Lists all the Jobs in the specified project that were started by the user.
-
-Args:
- projectId: string, Project ID of the jobs to list (required)
- projection: string, Restrict information returned to a set of selected fields
- Allowed values
- full - Includes all job data
- minimal - Does not include the job configuration
- stateFilter: string, Filter for job state (repeated)
- Allowed values
- done - Finished jobs
- pending - Pending jobs
- running - Running jobs
- pageToken: string, Page token, returned by a previous call, to request the next page of results
- allUsers: boolean, Whether to display jobs owned by all users in the project. Default false
- maxResults: integer, Maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token to request the next page of results.
- "totalItems": 42, # Total number of jobs in this collection.
- "kind": "bigquery#jobList", # The resource type of the response.
- "etag": "A String", # A hash of this page of results.
- "jobs": [ # List of jobs that were requested.
- {
- "status": { # [Full-projection-only] Describes the state of the job.
- "state": "A String", # [Output-only] Running state of the job.
- "errors": [ # [Output-only] All errors encountered during the running of the job. Errors here do not necessarily mean that the job has completed or was unsuccessful.
- {
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- ],
- "errorResult": { # [Output-only] Final error result of the job. If present, indicates that the job has completed and was unsuccessful.
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- },
- "kind": "bigquery#job", # The resource type.
- "statistics": { # [Output-only] Information about the job, including starting time and ending time of the job.
- "load": { # [Output-only] Statistics for a load job.
- "outputRows": "A String", # [Output-only] Number of rows imported in a load job. Note that while an import job is in the running state, this value may change.
- "inputFiles": "A String", # [Output-only] Number of source files in a load job.
- "inputFileBytes": "A String", # [Output-only] Number of bytes of source data in a joad job.
- "outputBytes": "A String", # [Output-only] Size of the loaded data in bytes. Note that while an import job is in the running state, this value may change.
- },
- "query": { # [Output-only] Statistics for a query job.
- "completionRatio": 3.14, # [Output-Only] Approximate fraction of data processed for this query. This will be 1.0 unless min_completion_ratio for the query was set to something other than 1.0.
- "cacheHit": True or False, # [Output-only] Whether the query result was fetched from the query cache.
- "totalBytesProcessed": "A String", # [Output-only] Total bytes processed for this job.
- },
- "endTime": "A String", # [Output-only] End time of this job, in milliseconds since the epoch.
- "totalBytesProcessed": "A String", # [Output-only] [Deprecated] Use the bytes processed in the query statistics instead.
- "startTime": "A String", # [Output-only] Start time of this job, in milliseconds since the epoch.
- },
- "jobReference": { # Job reference uniquely identifying the job.
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "state": "A String", # Running state of the job. When the state is DONE, errorResult can be checked to determine whether the job succeeded or failed.
- "configuration": { # [Full-projection-only] Specifies the job configuration.
- "load": { # [Pick one] Configures a load job.
- "encoding": "A String", # [Optional] The character encoding of the data. The supported values are UTF-8 or ISO-8859-1. The default value is UTF-8. BigQuery decodes the data after the raw, binary data has been split using the values of the quote and fieldDelimiter properties.
- "fieldDelimiter": "A String", # [Optional] The separator for fields in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. BigQuery also supports the escape sequence "\t" to specify a tab separator. The default value is a comma (',').
- "sourceFormat": "A String", # [Optional] The format of the data files. For CSV files, specify "CSV". For datastore backups, specify "DATASTORE_BACKUP". For newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON". The default value is CSV.
- "destinationTable": { # [Required] The destination table to load the data into.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "writeDisposition": "A String", # [Optional] Specifies the action that occurs if the destination table already exists. Each action is atomic and only occurs if BigQuery is able to fully load the data and the load job completes without error. The following values are supported: WRITE_TRUNCATE: If the table already exists, BigQuery overwrites the table. WRITE_APPEND: If the table already exists, BigQuery appends the data to the table. WRITE_EMPTY: If the table already exists, a 'duplicate' error is returned in the job result. Creation, truncation and append actions occur as one atomic update upon job completion.
- "maxBadRecords": 42, # [Optional] The maximum number of bad records that BigQuery can ignore when running the job. If the number of bad records exceeds this value, an 'invalid' error is returned in the job result and the job fails. The default value is 0, which requires that all records are valid.
- "allowJaggedRows": True or False, # [Optional] Accept rows that are missing trailing optional columns. The missing values are treated as nulls. Default is false which treats short rows as errors. Only applicable to CSV, ignored for other formats.
- "skipLeadingRows": 42, # [Optional] The number of rows at the top of a CSV file that BigQuery will skip when loading the data. The default value is 0. This property is useful if you have header rows in the file that should be skipped.
- "sourceUris": [ # [Required] The fully-qualified URIs that point to your data on Google Cloud Storage.
- "A String",
- ],
- "quote": "A String", # [Optional] The value that is used to quote data sections in a CSV file. BigQuery converts the string to ISO-8859-1 encoding, and then uses the first byte of the encoded string to split the data in its raw, binary state. The default value is a double-quote ('"'). If your data does not contain quoted sections, set the property value to an empty string. If your data contains quoted newline characters, you must also set the allowQuotedNewlines property to true.
- "createDisposition": "A String", # [Optional] Specifies whether the job is allowed to create new tables. The following values are supported: CREATE_IF_NEEDED: If the table does not exist, BigQuery creates the table. CREATE_NEVER: The table must already exist. If it does not, a 'notFound' error is returned in the job result. The default value is CREATE_IF_NEEDED. Creation, truncation and append actions occur as one atomic update upon job completion.
- "schemaInlineFormat": "A String", # [Deprecated] The format of the schemaInline property.
- "schemaInline": "A String", # [Deprecated] The inline schema. For CSV schemas, specify as "Field1:Type1[,Field2:Type2]*". For example, "foo:STRING, bar:INTEGER, baz:FLOAT".
- "allowQuotedNewlines": True or False, # Indicates if BigQuery should allow quoted data sections that contain newline characters in a CSV file. The default value is false.
- "schema": { # [Optional] The schema for the destination table. The schema can be omitted if the destination table already exists or if the schema can be inferred from the loaded data.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- },
- "dryRun": True or False, # [Optional] If set, don't actually run this job. A valid query will return a mostly empty response with some processing statistics, while an invalid query will return the same error it would if it wasn't a dry run. Behavior of non-query jobs is undefined.
- "link": { # [Pick one] Configures a link job.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_APPEND.
- "destinationTable": { # [Required] The destination table of the link job.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceUri": [ # [Required] URI of source table to link.
- "A String",
- ],
- },
- "query": { # [Pick one] Configures a query job.
- "useQueryCache": True or False, # [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified. Moreover, the query cache is only available when a query does not have a destination table specified.
- "defaultDataset": { # [Optional] Specifies the default dataset to assume for unqualified table names in the query.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "destinationTable": { # [Optional] Describes the table where the query results should be stored. If not present, a new table will be created to store the results.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "priority": "A String", # [Optional] Specifies a priority for the query. Default is INTERACTIVE. Alternative is BATCH.
- "writeDisposition": "A String", # [Optional] Whether to overwrite an existing table (WRITE_TRUNCATE), append to an existing table (WRITE_APPEND), or require that the the table is empty (WRITE_EMPTY). Default is WRITE_EMPTY.
- "allowLargeResults": True or False, # [Experimental] If true, allows >128M results to be materialized in the destination table. Requires destination_table to be set.
- "query": "A String", # [Required] BigQuery SQL query to execute.
- "createDisposition": "A String", # [Optional] Whether to create the table if it doesn't already exist (CREATE_IF_NEEDED) or to require the table already exist (CREATE_NEVER). Default is CREATE_IF_NEEDED.
- "minCompletionRatio": 3.14, # [Experimental] Specifies the the minimum fraction of data that must be scanned before a query returns. This should be specified as a value between 0.0 and 1.0 inclusive. The default value is 1.0.
- "preserveNulls": True or False, # [Experimental] If set, preserve null values in table data, rather than mapping null values to the column's default value. This flag currently defaults to false, but the default will soon be changed to true. Shortly afterward, this flag will be removed completely. Please specify true if possible, and false only if you need to force the old behavior while updating client code.
- },
- "copy": { # [Pick one] Copies a table.
- "createDisposition": "A String", # [Optional] Whether or not to create a new table, if none exists.
- "writeDisposition": "A String", # [Optional] Whether or not to append or require the table to be empty.
- "destinationTable": { # [Required] The destination table
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "sourceTable": { # [Required] Source table to copy.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- },
- "extract": { # [Pick one] Configures an extract job.
- "destinationFormat": "A String", # [Experimental] Optional and defaults to CSV. Format with which files should be exported. To export to CSV, specify "CSV". Tables with nested or repeated fields cannot be exported as CSV. To export to newline-delimited JSON, specify "NEWLINE_DELIMITED_JSON".
- "destinationUri": "A String", # [Required] The fully-qualified Google Cloud Storage URI where the extracted table should be written.
- "printHeader": True or False, # [Optional] Whether to print out a heder row in the results. Default is true.
- "sourceTable": { # [Required] A reference to the table being exported.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "fieldDelimiter": "A String", # [Optional] Delimiter to use between fields in the exported data. Default is ','
- },
- },
- "id": "A String", # Unique opaque ID of the job.
- "errorResult": { # A result object that will be present only if the job has failed.
- "debugInfo": "A String", # Debugging information. This property is internal to Google and should not be used.
- "message": "A String", # A human-readable description of the error.
- "reason": "A String", # A short error code that summarizes the error.
- "location": "A String", # Specifies where the error occurred, if present.
- },
- },
- ],
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- query(projectId, body)
-
Runs a BigQuery SQL query synchronously and returns query results if the query completes within a specified timeout.
-
-Args:
- projectId: string, Project ID of the project billed for the query (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "timeoutMs": 42, # [Optional] How long to wait for the query to complete, in milliseconds, before returning. Default is to return immediately. If the timeout passes before the job completes, the request will fail with a TIMEOUT error.
- "kind": "bigquery#queryRequest", # The resource type of the request.
- "dryRun": True or False, # [Optional] If set, don't actually run the query. A valid query will return an empty response, while an invalid query will return the same error it would if it wasn't a dry run.
- "useQueryCache": True or False, # [Optional] Whether to look for the result in the query cache. The query cache is a best-effort cache that will be flushed whenever tables in the query are modified.
- "defaultDataset": { # [Optional] Specifies the default datasetId and projectId to assume for any unqualified table names in the query. If not set, all table names in the query string must be fully-qualified in the format projectId:datasetId.tableid.
- "projectId": "A String", # [Optional] The ID of the container project.
- "datasetId": "A String", # [Required] A unique ID for this dataset, without the project name.
- },
- "maxResults": 42, # [Optional] The maximum number of results to return per page of results. If the response list exceeds the maximum response size for a single response, you will have to page through the results. Default is to return the maximum response size.
- "query": "A String", # [Required] A query string, following the BigQuery query syntax of the query to execute. Table names should be qualified by dataset name in the format projectId:datasetId.tableId unless you specify the defaultDataset value. If the table is in the same project as the job, you can omit the project ID. Example: SELECT f1 FROM myProjectId:myDatasetId.myTableId.
- "minCompletionRatio": 3.14, # [Experimental] Specifies the the minimum fraction of data that must be scanned before a query returns. This should be specified as a value between 0.0 and 1.0 inclusive. The default value is 1.0.
- "preserveNulls": True or False, # [Experimental] If set, preserve null values in table data, rather than mapping null values to the column's default value. This flag currently defaults to false, but the default will soon be changed to true. Shortly afterward, this flag will be removed completely. Please specify true if possible, and false only if you need to force the old behavior while updating client code.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#queryResponse", # The resource type.
- "rows": [ # An object with as many results as can be contained within the maximum permitted reply size. To get any additional rows, you can call GetQueryResults and specify the jobReference returned above.
- { # Represents a single row in the result set, consisting of one or more fields.
- "f": [
- { # Represents a single cell in the result set. Users of the java client can detect whether their value result is null by calling 'com.google.api.client.util.Data.isNull(cell.getV())'.
- "v": "",
- },
- ],
- },
- ],
- "jobReference": { # Reference to the Job that was created to run the query. This field will be present even if the original request timed out, in which case GetQueryResults can be used to read the results once the query has completed. Since this API only returns the first page of results, subsequent pages can be fetched via the same mechanism (GetQueryResults).
- "projectId": "A String", # [Required] Project ID being billed for the job.
- "jobId": "A String", # [Required] ID of the job.
- },
- "pageToken": "A String", # A token used for paging results.
- "jobComplete": True or False, # Whether the query has completed or not. If rows or totalRows are present, this will always be true. If this is false, totalRows will not be available.
- "totalRows": "A String", # The total number of rows in the complete query result set, which can be more than the number of rows in this single page of results.
- "totalBytesProcessed": "A String", # The total number of bytes processed for this query. If this query was a dry run, this is the number of bytes that would be processed if the query were run.
- "cacheHit": True or False, # Whether the query result was fetched from the query cache.
- "schema": { # The schema of the results. Present only when the query completes successfully.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/bigquery_v2.projects.html b/docs/dyn/bigquery_v2.projects.html
deleted file mode 100644
index df10a23..0000000
--- a/docs/dyn/bigquery_v2.projects.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
Lists the projects to which you have at least read access.
-
-Args:
- pageToken: string, Page token, returned by a previous call, to request the next page of results
- maxResults: integer, Maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token to request the next page of results.
- "totalItems": 42, # The total number of projects in the list.
- "kind": "bigquery#projectList", # The type of list.
- "etag": "A String", # A hash of the page of results
- "projects": [ # Projects to which you have at least READ access.
- {
- "friendlyName": "A String", # A descriptive name for this project.
- "kind": "bigquery#project", # The resource type.
- "numericId": "A String", # The numeric ID of this project.
- "id": "A String", # An opaque ID of this project.
- "projectReference": { # A unique reference to this project.
- "projectId": "A String", # [Required] ID of the project. Can be either the numeric ID or the assigned ID of the project.
- },
- },
- ],
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/bigquery_v2.tabledata.html b/docs/dyn/bigquery_v2.tabledata.html
deleted file mode 100644
index d63b287..0000000
--- a/docs/dyn/bigquery_v2.tabledata.html
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-
-
Retrieves table data from a specified set of rows.
-
-Args:
- projectId: string, Project ID of the table to read (required)
- datasetId: string, Dataset ID of the table to read (required)
- tableId: string, Table ID of the table to read (required)
- pageToken: string, Page token, returned by a previous call, identifying the result set
- maxResults: integer, Maximum number of results to return
- startIndex: string, Zero-based index of the starting row to read
-
-Returns:
- An object of the form:
-
- {
- "pageToken": "A String", # A token used for paging results. Providing this token instead of the startRow parameter can help you retrieve stable results when an underlying table is changing.
- "kind": "bigquery#tableDataList", # The resource type of the response.
- "etag": "A String", # A hash of this page of results.
- "rows": [ # Rows of results.
- { # Represents a single row in the result set, consisting of one or more fields.
- "f": [
- { # Represents a single cell in the result set. Users of the java client can detect whether their value result is null by calling 'com.google.api.client.util.Data.isNull(cell.getV())'.
- "v": "",
- },
- ],
- },
- ],
- "totalRows": "A String", # The total number of rows in the complete table.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/bigquery_v2.tables.html b/docs/dyn/bigquery_v2.tables.html
deleted file mode 100644
index c3248fe..0000000
--- a/docs/dyn/bigquery_v2.tables.html
+++ /dev/null
@@ -1,434 +0,0 @@
-
-
-
-
Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
Updates information in an existing table, specified by tableId.
-
Method Details
-
- delete(projectId, datasetId, tableId)
-
Deletes the table specified by tableId from the dataset. If the table contains data, all the data will be deleted.
-
-Args:
- projectId: string, Project ID of the table to delete (required)
- datasetId: string, Dataset ID of the table to delete (required)
- tableId: string, Table ID of the table to delete (required)
-
-
-
-
- get(projectId, datasetId, tableId)
-
Gets the specified table resource by table ID. This method does not return the data in the table, it only returns the table resource, which describes the structure of this table.
-
-Args:
- projectId: string, Project ID of the requested table (required)
- datasetId: string, Dataset ID of the requested table (required)
- tableId: string, Table ID of the requested table (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-
- insert(projectId, datasetId, body)
-
Creates a new, empty table in the dataset.
-
-Args:
- projectId: string, Project ID of the new table (required)
- datasetId: string, Dataset ID of the new table (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
Lists all tables in the specified dataset.
-
-Args:
- projectId: string, Project ID of the tables to list (required)
- datasetId: string, Dataset ID of the tables to list (required)
- pageToken: string, Page token, returned by a previous call, to request the next page of results
- maxResults: integer, Maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token to request the next page of results.
- "tables": [ # Tables in the requested dataset.
- {
- "friendlyName": "A String", # The user-friendly name for this table.
- "kind": "bigquery#table", # The resource type.
- "id": "A String", # An opaque ID of the table
- "tableReference": { # A reference uniquely identifying the table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- },
- ],
- "kind": "bigquery#tableList", # The type of list.
- "etag": "A String", # A hash of this page of results.
- "totalItems": 42, # The total number of tables in the dataset.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(projectId, datasetId, tableId, body)
-
Updates information in an existing table, specified by tableId. This method supports patch semantics.
-
-Args:
- projectId: string, Project ID of the table to update (required)
- datasetId: string, Dataset ID of the table to update (required)
- tableId: string, Table ID of the table to update (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-
- update(projectId, datasetId, tableId, body)
-
Updates information in an existing table, specified by tableId.
-
-Args:
- projectId: string, Project ID of the table to update (required)
- datasetId: string, Dataset ID of the table to update (required)
- tableId: string, Table ID of the table to update (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "bigquery#table", # [Output-only] The type of the resource.
- "lastModifiedTime": "A String", # [Output-only] The time when this table was last modified, in milliseconds since the epoch.
- "description": "A String", # [Optional] A user-friendly description of this table.
- "creationTime": "A String", # [Output-only] The time when this table was created, in milliseconds since the epoch.
- "tableReference": { # [Required] Reference describing the ID of this table.
- "projectId": "A String", # [Required] ID of the project billed for storage of the table.
- "tableId": "A String", # [Required] ID of the table.
- "datasetId": "A String", # [Required] ID of the dataset containing the table.
- },
- "numRows": "A String", # [Output-only] The number of rows of data in this table.
- "numBytes": "A String", # [Output-only] The size of the table in bytes.
- "etag": "A String", # [Output-only] A hash of this resource.
- "friendlyName": "A String", # [Optional] A descriptive name for this table.
- "expirationTime": "A String", # [Optional] The time when this table expires, in milliseconds since the epoch. If not present, the table will persist indefinitely. Expired tables will be deleted and their storage reclaimed.
- "id": "A String", # [Output-only] An opaque ID uniquely identifying the table.
- "selfLink": "A String", # [Output-only] A URL that can be used to access this resource again.
- "schema": { # [Optional] Describes the schema of this table.
- "fields": [ # Describes the fields in a table.
- {
- "fields": [ # [Optional] Describes the nested schema fields if the type property is set to RECORD.
- # Object with schema name: TableFieldSchema
- ],
- "type": "A String", # [Required] The field data type. Possible values include STRING, INTEGER, FLOAT, BOOLEAN, TIMESTAMP or RECORD (where RECORD indicates that the field contains a nested schema).
- "mode": "A String", # [Optional] The field mode. Possible values include NULLABLE, REQUIRED and REPEATED. The default value is NULLABLE.
- "name": "A String", # [Required] The field name.
- },
- ],
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.blogUserInfos.html b/docs/dyn/blogger_v3.blogUserInfos.html
deleted file mode 100644
index e8a58ec..0000000
--- a/docs/dyn/blogger_v3.blogUserInfos.html
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
-
Gets one blog and user info pair by blogId and userId.
-
Method Details
-
- get(userId, blogId, maxPosts=None)
-
Gets one blog and user info pair by blogId and userId.
-
-Args:
- userId: string, ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier. (required)
- blogId: string, The ID of the blog to get. (required)
- maxPosts: integer, Maximum number of posts to pull back with the blog.
-
-Returns:
- An object of the form:
-
- {
- "blog": {
- "kind": "blogger#blog", # The kind of this entry. Always blogger#blog
- "description": "A String", # The description of this blog. This is displayed underneath the title.
- "locale": { # The locale this Blog is set to.
- "country": "A String", # The country this blog's locale is set to.
- "variant": "A String", # The language variant this blog is authored in.
- "language": "A String", # The language this blog is authored in.
- },
- "posts": { # The container of posts in this blog.
- "totalItems": 42, # The count of posts in this blog.
- "items": [ # The List of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the container for posts in this blog.
- },
- "customMetaData": "A String", # The JSON custom meta-data for the Blog
- "updated": "A String", # RFC 3339 date-time when this blog was last updated.
- "pages": { # The container of pages in this blog.
- "totalItems": 42, # The count of pages in this blog.
- "selfLink": "A String", # The URL of the container for pages in this blog.
- },
- "url": "A String", # The URL where this blog is published.
- "published": "A String", # RFC 3339 date-time when this blog was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- "name": "A String", # The name of this blog. This is displayed as the title.
- },
- "kind": "blogger#blogUserInfo",
- "user": {
- "kind": "blogger#blogPerUserInfo",
- "userId": "A String",
- "blogId": "A String",
- "photosAlbumKey": "A String",
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.blogs.html b/docs/dyn/blogger_v3.blogs.html
deleted file mode 100644
index 060c71e..0000000
--- a/docs/dyn/blogger_v3.blogs.html
+++ /dev/null
@@ -1,393 +0,0 @@
-
-
-
-
Gets one blog by id.
-
-Args:
- blogId: string, The ID of the blog to get. (required)
- maxPosts: integer, Maximum number of posts to pull back with the blog.
-
-Returns:
- An object of the form:
-
- {
- "kind": "blogger#blog", # The kind of this entry. Always blogger#blog
- "description": "A String", # The description of this blog. This is displayed underneath the title.
- "locale": { # The locale this Blog is set to.
- "country": "A String", # The country this blog's locale is set to.
- "variant": "A String", # The language variant this blog is authored in.
- "language": "A String", # The language this blog is authored in.
- },
- "posts": { # The container of posts in this blog.
- "totalItems": 42, # The count of posts in this blog.
- "items": [ # The List of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the container for posts in this blog.
- },
- "customMetaData": "A String", # The JSON custom meta-data for the Blog
- "updated": "A String", # RFC 3339 date-time when this blog was last updated.
- "pages": { # The container of pages in this blog.
- "totalItems": 42, # The count of pages in this blog.
- "selfLink": "A String", # The URL of the container for pages in this blog.
- },
- "url": "A String", # The URL where this blog is published.
- "published": "A String", # RFC 3339 date-time when this blog was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- "name": "A String", # The name of this blog. This is displayed as the title.
- }
-
-
-
- getByUrl(url)
-
Retrieve a Blog by URL.
-
-Args:
- url: string, The URL of the blog to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "blogger#blog", # The kind of this entry. Always blogger#blog
- "description": "A String", # The description of this blog. This is displayed underneath the title.
- "locale": { # The locale this Blog is set to.
- "country": "A String", # The country this blog's locale is set to.
- "variant": "A String", # The language variant this blog is authored in.
- "language": "A String", # The language this blog is authored in.
- },
- "posts": { # The container of posts in this blog.
- "totalItems": 42, # The count of posts in this blog.
- "items": [ # The List of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the container for posts in this blog.
- },
- "customMetaData": "A String", # The JSON custom meta-data for the Blog
- "updated": "A String", # RFC 3339 date-time when this blog was last updated.
- "pages": { # The container of pages in this blog.
- "totalItems": 42, # The count of pages in this blog.
- "selfLink": "A String", # The URL of the container for pages in this blog.
- },
- "url": "A String", # The URL where this blog is published.
- "published": "A String", # RFC 3339 date-time when this blog was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- "name": "A String", # The name of this blog. This is displayed as the title.
- }
-
-
-
- listByUser(userId)
-
Retrieves a list of blogs, possibly filtered.
-
-Args:
- userId: string, ID of the user whose blogs are to be fetched. Either the word 'self' (sans quote marks) or the user's profile identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The list of Blogs this user has Authorship or Admin rights over.
- {
- "kind": "blogger#blog", # The kind of this entry. Always blogger#blog
- "description": "A String", # The description of this blog. This is displayed underneath the title.
- "locale": { # The locale this Blog is set to.
- "country": "A String", # The country this blog's locale is set to.
- "variant": "A String", # The language variant this blog is authored in.
- "language": "A String", # The language this blog is authored in.
- },
- "posts": { # The container of posts in this blog.
- "totalItems": 42, # The count of posts in this blog.
- "items": [ # The List of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the container for posts in this blog.
- },
- "customMetaData": "A String", # The JSON custom meta-data for the Blog
- "updated": "A String", # RFC 3339 date-time when this blog was last updated.
- "pages": { # The container of pages in this blog.
- "totalItems": 42, # The count of pages in this blog.
- "selfLink": "A String", # The URL of the container for pages in this blog.
- },
- "url": "A String", # The URL where this blog is published.
- "published": "A String", # RFC 3339 date-time when this blog was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- "name": "A String", # The name of this blog. This is displayed as the title.
- },
- ],
- "kind": "blogger#blogList", # The kind of this entity. Always blogger#blogList
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.comments.html b/docs/dyn/blogger_v3.comments.html
deleted file mode 100644
index 6c8356a..0000000
--- a/docs/dyn/blogger_v3.comments.html
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
Gets one comment by id.
-
-Args:
- blogId: string, ID of the blog to containing the comment. (required)
- postId: string, ID of the post to fetch posts from. (required)
- commentId: string, The ID of the comment to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
Retrieves the comments for a blog, possibly filtered.
-
-Args:
- blogId: string, ID of the blog to fetch comments from. (required)
- postId: string, ID of the post to fetch posts from. (required)
- startDate: string, Earliest date of comment to fetch, a date-time with RFC 3339 formatting.
- fetchBodies: boolean, Whether the body content of the comments is included.
- endDate: string, Latest date of comment to fetch, a date-time with RFC 3339 formatting.
- pageToken: string, Continuation token if request is paged.
- maxResults: integer, Maximum number of comments to include in the result.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
- "items": [ # The List of Comments for a Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "kind": "blogger#commentList", # The kind of this entry. Always blogger#commentList
- "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.html b/docs/dyn/blogger_v3.html
deleted file mode 100644
index e0b84e2..0000000
--- a/docs/dyn/blogger_v3.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
Gets one blog page by id.
-
-Args:
- blogId: string, ID of the blog containing the page. (required)
- pageId: string, The ID of the page to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The body content of this Page, in HTML.
- "kind": "blogger#page", # The kind of this entity. Always blogger#page
- "author": { # The author of this Page.
- "url": "A String", # The URL of the Page creator's Profile page.
- "image": { # The page author's avatar.
- "url": "A String", # The page author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Page creator.
- },
- "url": "A String", # The URL that this Page is displayed at.
- "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
- "updated": "A String", # RFC 3339 date-time when this Page was last updated.
- "blog": { # Data about the blog containing this Page.
- "id": "A String", # The identifier of the blog containing this page.
- },
- "published": "A String", # RFC 3339 date-time when this Page was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
- list(blogId, fetchBodies=None)
-
Retrieves pages for a blog, possibly filtered.
-
-Args:
- blogId: string, ID of the blog to fetch pages from. (required)
- fetchBodies: boolean, Whether to retrieve the Page bodies.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The list of Pages for a Blog.
- {
- "content": "A String", # The body content of this Page, in HTML.
- "kind": "blogger#page", # The kind of this entity. Always blogger#page
- "author": { # The author of this Page.
- "url": "A String", # The URL of the Page creator's Profile page.
- "image": { # The page author's avatar.
- "url": "A String", # The page author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Page creator.
- },
- "url": "A String", # The URL that this Page is displayed at.
- "title": "A String", # The title of this entity. This is the name displayed in the Admin user interface.
- "updated": "A String", # RFC 3339 date-time when this Page was last updated.
- "blog": { # Data about the blog containing this Page.
- "id": "A String", # The identifier of the blog containing this page.
- },
- "published": "A String", # RFC 3339 date-time when this Page was published.
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "kind": "blogger#pageList", # The kind of this entity. Always blogger#pageList
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.posts.html b/docs/dyn/blogger_v3.posts.html
deleted file mode 100644
index 57f0d64..0000000
--- a/docs/dyn/blogger_v3.posts.html
+++ /dev/null
@@ -1,872 +0,0 @@
-
-
-
-
Delete a post by id.
-
-Args:
- blogId: string, The Id of the Blog. (required)
- postId: string, The ID of the Post. (required)
-
-
-
-
- get(blogId, postId, maxComments=None)
-
Get a post by id.
-
-Args:
- blogId: string, ID of the blog to fetch the post from. (required)
- postId: string, The ID of the post (required)
- maxComments: integer, Maximum number of comments to pull back on a post.
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
- getByPath(blogId, path, maxComments=None)
-
Retrieve a Post by Path.
-
-Args:
- blogId: string, ID of the blog to fetch the post from. (required)
- path: string, Path of the Post to retrieve. (required)
- maxComments: integer, Maximum number of comments to pull back on a post.
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
- insert(blogId, body)
-
Add a post.
-
-Args:
- blogId: string, ID of the blog to add the post to. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
Retrieves a list of posts, possibly filtered.
-
-Args:
- blogId: string, ID of the blog to fetch posts from. (required)
- startDate: string, Earliest post date to fetch, a date-time with RFC 3339 formatting.
- endDate: string, Latest post date to fetch, a date-time with RFC 3339 formatting.
- pageToken: string, Continuation token if the request is paged.
- labels: string, Comma-separated list of labels to search for.
- maxResults: integer, Maximum number of posts to fetch.
- fetchBodies: boolean, Whether the body content of posts is included.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
- "items": [ # The list of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "kind": "blogger#postList", # The kind of this entity. Always blogger#postList
- "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(blogId, postId, body)
-
Update a post. This method supports patch semantics.
-
-Args:
- blogId: string, The ID of the Blog. (required)
- postId: string, The ID of the Post. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
- search(blogId, q)
-
Search for a post.
-
-Args:
- blogId: string, ID of the blog to fetch the post from. (required)
- q: string, Query terms to search this blog for matching posts. (required)
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
- "items": [ # The list of Posts for this Blog.
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "kind": "blogger#postList", # The kind of this entity. Always blogger#postList
- "prevPageToken": "A String", # Pagination token to fetch the previous page, if one exists.
- }
-
-
-
- update(blogId, postId, body)
-
Update a post.
-
-Args:
- blogId: string, The ID of the Blog. (required)
- postId: string, The ID of the Post. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "content": "A String", # The content of the Post. May contain HTML markup.
- "kind": "blogger#post", # The kind of this entity. Always blogger#post
- "author": { # The author of this Post.
- "url": "A String", # The URL of the Post creator's Profile page.
- "image": { # The Post author's avatar.
- "url": "A String", # The Post author's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Post creator.
- },
- "replies": { # The container of comments on this Post.
- "totalItems": "A String", # The count of comments on this post.
- "items": [ # The List of Comments for this Post.
- {
- "content": "A String", # The actual content of the comment. May include HTML markup.
- "kind": "blogger#comment", # The kind of this entry. Always blogger#comment
- "inReplyTo": { # Data about the comment this is in reply to.
- "id": "A String", # The identified of the parent of this comment.
- },
- "author": { # The author of this Comment.
- "url": "A String", # The URL of the Comment creator's Profile page.
- "image": { # The comment creator's avatar.
- "url": "A String", # The comment creator's avatar URL.
- },
- "displayName": "A String", # The display name.
- "id": "A String", # The identifier of the Comment creator.
- },
- "updated": "A String", # RFC 3339 date-time when this comment was last updated.
- "blog": { # Data about the blog containing this comment.
- "id": "A String", # The identifier of the blog containing this comment.
- },
- "published": "A String", # RFC 3339 date-time when this comment was published.
- "post": { # Data about the post containing this comment.
- "id": "A String", # The identifier of the post containing this comment.
- },
- "id": "A String", # The identifier for this resource.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- },
- ],
- "selfLink": "A String", # The URL of the comments on this post.
- },
- "labels": [ # The list of labels this Post was tagged with.
- "A String",
- ],
- "customMetaData": "A String", # The JSON meta-data for the Post.
- "updated": "A String", # RFC 3339 date-time when this Post was last updated.
- "blog": { # Data about the blog containing this Post.
- "id": "A String", # The identifier of the Blog that contains this Post.
- },
- "url": "A String", # The URL where this Post is displayed.
- "location": { # The location for geotagged posts.
- "lat": 3.14, # Location's latitude.
- "lng": 3.14, # Location's longitude.
- "span": "A String", # Location's viewport span. Can be used when rendering a map preview.
- "name": "A String", # Location name.
- },
- "published": "A String", # RFC 3339 date-time when this Post was published.
- "title": "A String", # The title of the Post.
- "id": "A String", # The identifier of this Post.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/blogger_v3.users.html b/docs/dyn/blogger_v3.users.html
deleted file mode 100644
index 87b6f2e..0000000
--- a/docs/dyn/blogger_v3.users.html
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
Gets one user by id.
-
-Args:
- userId: string, The ID of the user to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "about": "A String", # Profile summary information.
- "displayName": "A String", # The display name.
- "created": "A String", # The timestamp of when this profile was created, in seconds since epoch.
- "locale": { # This user's locale
- "country": "A String", # The user's country setting.
- "variant": "A String", # The user's language variant setting.
- "language": "A String", # The user's language setting.
- },
- "blogs": { # The container of blogs for this user.
- "selfLink": "A String", # The URL of the Blogs for this user.
- },
- "kind": "blogger#user", # The kind of this entity. Always blogger#user
- "url": "A String", # The user's profile page.
- "id": "A String", # The identifier for this User.
- "selfLink": "A String", # The API REST URL to fetch this resource from.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.bookshelves.html b/docs/dyn/books_v1.bookshelves.html
deleted file mode 100644
index 59fb7b6..0000000
--- a/docs/dyn/books_v1.bookshelves.html
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
Retrieves a list of public bookshelves for the specified user.
-
Method Details
-
- get(userId, shelf, source=None)
-
Retrieves metadata for a specific bookshelf for the specified user.
-
-Args:
- userId: string, ID of user for whom to retrieve bookshelves. (required)
- shelf: string, ID of bookshelf to retrieve. (required)
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#bookshelf", # Resource type for bookshelf metadata.
- "description": "A String", # Description of this bookshelf.
- "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).
- "volumeCount": 42, # Number of volumes in this bookshelf.
- "title": "A String", # Title of this bookshelf.
- "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).
- "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.
- "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).
- "id": 42, # Id of this bookshelf, only unique by user.
- "selfLink": "A String", # URL to this resource.
- }
-
-
-
- list(userId, source=None)
-
Retrieves a list of public bookshelves for the specified user.
-
-Args:
- userId: string, ID of user for whom to retrieve bookshelves. (required)
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # A list of bookshelves.
- {
- "kind": "books#bookshelf", # Resource type for bookshelf metadata.
- "description": "A String", # Description of this bookshelf.
- "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).
- "volumeCount": 42, # Number of volumes in this bookshelf.
- "title": "A String", # Title of this bookshelf.
- "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).
- "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.
- "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).
- "id": 42, # Id of this bookshelf, only unique by user.
- "selfLink": "A String", # URL to this resource.
- },
- ],
- "kind": "books#bookshelves", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.bookshelves.volumes.html b/docs/dyn/books_v1.bookshelves.volumes.html
deleted file mode 100644
index cea2756..0000000
--- a/docs/dyn/books_v1.bookshelves.volumes.html
+++ /dev/null
@@ -1,280 +0,0 @@
-
-
-
-
Retrieves volumes in a specific bookshelf for the specified user.
-
-Args:
- userId: string, ID of user for whom to retrieve bookshelf volumes. (required)
- shelf: string, ID of bookshelf to retrieve volumes. (required)
- source: string, String to identify the originator of this request.
- showPreorders: boolean, Set to true to show pre-ordered books. Defaults to false.
- maxResults: integer, Maximum number of results to return
- startIndex: integer, Index of the first element to return (starts at 0)
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.cloudloading.html b/docs/dyn/books_v1.cloudloading.html
deleted file mode 100644
index 7ab41fb..0000000
--- a/docs/dyn/books_v1.cloudloading.html
+++ /dev/null
@@ -1,144 +0,0 @@
-
-
-
-
-
-Args:
- upload_client_token: string, A parameter
- name: string, The document name. It can be set only if the drive_document_id is set.
- drive_document_id: string, A drive document id. The upload_client_token must not be set.
- mime_type: string, The document MIME type. It can be set only if the drive_document_id is set.
-
-Returns:
- An object of the form:
-
- {
- "title": "A String",
- "processingState": "A String",
- "volumeId": "A String",
- "author": "A String",
- }
-
-
-
- deleteBook(volumeId)
-
Remove the book and its contents
-
-Args:
- volumeId: string, The id of the book to be removed. (required)
-
-
-
-
- updateBook(body)
-
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "title": "A String",
- "processingState": "A String",
- "volumeId": "A String",
- "author": "A String",
-}
-
-
-Returns:
- An object of the form:
-
- {
- "title": "A String",
- "processingState": "A String",
- "volumeId": "A String",
- "author": "A String",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.html b/docs/dyn/books_v1.html
deleted file mode 100644
index 4adb450..0000000
--- a/docs/dyn/books_v1.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
Gets the annotation data.
-
-Args:
- volumeId: string, The volume to retrieve annotations for. (required)
- layerId: string, The ID for the layer to get the annotations. (required)
- annotationDataId: string, The ID of the annotation data to retrieve. (required)
- contentVersion: string, The content version for the volume you are trying to retrieve. (required)
- scale: integer, The requested scale for the image.
- source: string, String to identify the originator of this request.
- locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
- h: integer, The requested pixel height for any images. If height is provided width must also be provided.
- w: integer, The requested pixel width for any images. If width is provided height must also be provided.
-
-Returns:
- An object of the form:
-
- {
- "annotationType": "A String", # The type of annotation this data is for.
- "kind": "books#annotationdata", # Resource Type
- "updated": "A String", # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
- "volumeId": "A String", # The volume id for this data. *
- "encoded_data": "A String", # Base64 encoded data for this annotation data.
- "layerId": "A String", # The Layer id for this data. *
- "data": "",
- "id": "A String", # Unique id for this annotation data.
- "selfLink": "A String", # URL for this resource. *
- }
Gets the annotation data for a volume and layer.
-
-Args:
- volumeId: string, The volume to retrieve annotation data for. (required)
- layerId: string, The ID for the layer to get the annotation data. (required)
- contentVersion: string, The content version for the requested volume. (required)
- locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
- scale: integer, The requested scale for the image.
- pageToken: string, The value of the nextToken from the previous page.
- updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
- source: string, String to identify the originator of this request.
- updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
- maxResults: integer, Maximum number of results to return
- annotationDataId: string, The list of Annotation Data Ids to retrieve. Pagination is ignored if this is set. (repeated)
- w: integer, The requested pixel width for any images. If width is provided height must also be provided.
- h: integer, The requested pixel height for any images. If height is provided width must also be provided.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.
- "items": [ # A list of Annotation Data.
- {
- "annotationType": "A String", # The type of annotation this data is for.
- "kind": "books#annotationdata", # Resource Type
- "updated": "A String", # Timestamp for the last time this data was updated. (RFC 3339 UTC date-time format).
- "volumeId": "A String", # The volume id for this data. *
- "encoded_data": "A String", # Base64 encoded data for this annotation data.
- "layerId": "A String", # The Layer id for this data. *
- "data": "",
- "id": "A String", # Unique id for this annotation data.
- "selfLink": "A String", # URL for this resource. *
- },
- ],
- "kind": "books#annotationsdata", # Resource type
- "totalItems": 42, # The total number of volume annotations found.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.layers.html b/docs/dyn/books_v1.layers.html
deleted file mode 100644
index df07137..0000000
--- a/docs/dyn/books_v1.layers.html
+++ /dev/null
@@ -1,165 +0,0 @@
-
-
-
-
Gets the layer summary for a volume.
-
-Args:
- volumeId: string, The volume to retrieve layers for. (required)
- summaryId: string, The ID for the layer to get the summary for. (required)
- source: string, String to identify the originator of this request.
- contentVersion: string, The content version for the requested volume.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#layersummary", # Resource Type
- "annotationCount": 42, # The number of annotations for this layer.
- "dataCount": 42, # The number of data items for this layer.
- "annotationsLink": "A String", # The link to get the annotations for this layer.
- "updated": "A String", # Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format).
- "volumeId": "A String", # The volume id this resource is for.
- "id": "A String", # Unique id of this layer summary.
- "annotationTypes": [ # The list of annotation types contained for this layer.
- "A String",
- ],
- "contentVersion": "A String", # The content version this resource is for.
- "layerId": "A String", # The layer id for this summary.
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "annotationsDataLink": "A String", # Link to get data for this annotation.
- "selfLink": "A String", # URL to this resource.
- }
List the layer summaries for a volume.
-
-Args:
- volumeId: string, The volume to retrieve layers for. (required)
- pageToken: string, The value of the nextToken from the previous page.
- maxResults: integer, Maximum number of results to return
- source: string, String to identify the originator of this request.
- contentVersion: string, The content version for the requested volume.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # The total number of layer summaries found.
- "items": [ # A list of layer summary items.
- {
- "kind": "books#layersummary", # Resource Type
- "annotationCount": 42, # The number of annotations for this layer.
- "dataCount": 42, # The number of data items for this layer.
- "annotationsLink": "A String", # The link to get the annotations for this layer.
- "updated": "A String", # Timestamp for the last time an item in this layer was updated. (RFC 3339 UTC date-time format).
- "volumeId": "A String", # The volume id this resource is for.
- "id": "A String", # Unique id of this layer summary.
- "annotationTypes": [ # The list of annotation types contained for this layer.
- "A String",
- ],
- "contentVersion": "A String", # The content version this resource is for.
- "layerId": "A String", # The layer id for this summary.
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "annotationsDataLink": "A String", # Link to get data for this annotation.
- "selfLink": "A String", # URL to this resource.
- },
- ],
- "kind": "books#layersummaries", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.layers.volumeAnnotations.html b/docs/dyn/books_v1.layers.volumeAnnotations.html
deleted file mode 100644
index 72b7e34..0000000
--- a/docs/dyn/books_v1.layers.volumeAnnotations.html
+++ /dev/null
@@ -1,227 +0,0 @@
-
-
-
-
Gets the volume annotation.
-
-Args:
- volumeId: string, The volume to retrieve annotations for. (required)
- layerId: string, The ID for the layer to get the annotations. (required)
- annotationId: string, The ID of the volume annotation to retrieve. (required)
- source: string, String to identify the originator of this request.
- locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
-
-Returns:
- An object of the form:
-
- {
- "annotationType": "A String", # The type of annotation this is.
- "kind": "books#volumeannotation", # Resource Type
- "updated": "A String", # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
- "deleted": True or False, # Indicates that this annotation is deleted.
- "contentRanges": { # The content ranges to identify the selected text.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "selectedText": "A String", # Excerpt from the volume.
- "volumeId": "A String", # The Volume this annotation is for.
- "annotationDataId": "A String", # The annotation data id for this volume annotation.
- "annotationDataLink": "A String", # Link to get data for this annotation.
- "pageIds": [ # Pages the annotation spans.
- "A String",
- ],
- "layerId": "A String", # The Layer this annotation is for.
- "data": "A String", # Data for this annotation.
- "id": "A String", # Unique id of this volume annotation.
- "selfLink": "A String", # URL to this resource.
- }
Gets the volume annotations for a volume and layer.
-
-Args:
- volumeId: string, The volume to retrieve annotations for. (required)
- layerId: string, The ID for the layer to get the annotations. (required)
- contentVersion: string, The content version for the requested volume. (required)
- endPosition: string, The end position to end retrieving data from.
- locale: string, The locale information for the data. ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'.
- startOffset: string, The start offset to start retrieving data from.
- volumeAnnotationsVersion: string, The version of the volume annotations that you are requesting.
- pageToken: string, The value of the nextToken from the previous page.
- updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
- endOffset: string, The end offset to end retrieving data from.
- showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
- updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
- maxResults: integer, Maximum number of results to return
- startPosition: string, The start position to start retrieving data from.
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.
- "items": [ # A list of volume annotations.
- {
- "annotationType": "A String", # The type of annotation this is.
- "kind": "books#volumeannotation", # Resource Type
- "updated": "A String", # Timestamp for the last time this anntoation was updated. (RFC 3339 UTC date-time format).
- "deleted": True or False, # Indicates that this annotation is deleted.
- "contentRanges": { # The content ranges to identify the selected text.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "selectedText": "A String", # Excerpt from the volume.
- "volumeId": "A String", # The Volume this annotation is for.
- "annotationDataId": "A String", # The annotation data id for this volume annotation.
- "annotationDataLink": "A String", # Link to get data for this annotation.
- "pageIds": [ # Pages the annotation spans.
- "A String",
- ],
- "layerId": "A String", # The Layer this annotation is for.
- "data": "A String", # Data for this annotation.
- "id": "A String", # Unique id of this volume annotation.
- "selfLink": "A String", # URL to this resource.
- },
- ],
- "kind": "books#volumeannotations", # Resource type
- "version": "A String", # The version string for all of the volume annotations in this layer (not just the ones in this response). Note: the version string doesn't apply to the annotation data, just the information in this response (e.g. the location of annotations in the book).
- "totalItems": 42, # The total number of volume annotations found.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.myconfig.html b/docs/dyn/books_v1.myconfig.html
deleted file mode 100644
index f5d3ab1..0000000
--- a/docs/dyn/books_v1.myconfig.html
+++ /dev/null
@@ -1,369 +0,0 @@
-
-
-
-
Release downloaded content access restriction.
-
-Args:
- volumeIds: string, The volume(s) to release restrictions for. (required) (repeated)
- cpksver: string, The device/version ID from which to release the restriction. (required)
- source: string, String to identify the originator of this request.
- locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
-
-Returns:
- An object of the form:
-
- {
- "downloadAccessList": [ # A list of download access responses.
- {
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- ],
- "kind": "books#downloadAccesses", # Resource type.
- }
Request concurrent and download access restrictions.
-
-Args:
- source: string, String to identify the originator of this request. (required)
- volumeId: string, The volume to request concurrent/download restrictions for. (required)
- nonce: string, The client nonce value. (required)
- cpksver: string, The device/version ID from which to request the restrictions. (required)
- locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
-
-Returns:
- An object of the form:
-
- {
- "downloadAccess": { # A download access response.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "kind": "books#requestAccess", # Resource type.
- "concurrentAccess": { # A concurrent access response.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#concurrentAccessRestriction", # Resource type.
- "restricted": True or False, # Whether this volume has any concurrent access restrictions.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "maxConcurrentDevices": 42, # The maximum number of concurrent access licenses for this volume.
- "deviceAllowed": True or False, # Whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "timeWindowSeconds": 42, # Time in seconds for license auto-expiration.
- "signature": "A String", # Response signature.
- "reasonCode": "A String", # Error/warning reason code.
- "message": "A String", # Error/warning message.
- },
- }
Request downloaded content access for specified volumes on the My eBooks shelf.
-
-Args:
- source: string, String to identify the originator of this request. (required)
- nonce: string, The client nonce value. (required)
- cpksver: string, The device/version ID from which to release the restriction. (required)
- features: string, List of features supported by the client, i.e., 'RENTALS' (repeated)
- Allowed values
- RENTALS - Client supports rentals.
- locale: string, ISO-639-1, ISO-3166-1 codes for message localization, i.e. en_US.
- showPreorders: boolean, Set to true to show pre-ordered books. Defaults to false.
- volumeIds: string, The volume(s) to request download restrictions for. (repeated)
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.mylibrary.annotations.html b/docs/dyn/books_v1.mylibrary.annotations.html
deleted file mode 100644
index b2da444..0000000
--- a/docs/dyn/books_v1.mylibrary.annotations.html
+++ /dev/null
@@ -1,685 +0,0 @@
-
-
-
-
Deletes an annotation.
-
-Args:
- annotationId: string, The ID for the annotation to delete. (required)
- source: string, String to identify the originator of this request.
-
-
-
-
- get(annotationId, source=None)
-
Gets an annotation by its ID.
-
-Args:
- annotationId: string, The ID for the annotation to retrieve. (required)
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- }
Inserts a new annotation.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- }
-
- source: string, String to identify the originator of this request.
- showOnlySummaryInResponse: boolean, Requests that only the summary of the specified layer be provided in the response.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- }
Retrieves a list of annotations, possibly filtered.
-
-Args:
- pageToken: string, The value of the nextToken from the previous page.
- updatedMax: string, RFC 3339 timestamp to restrict to items updated prior to this timestamp (exclusive).
- layerId: string, The layer ID to limit annotation by.
- volumeId: string, The volume to restrict annotations to.
- maxResults: integer, Maximum number of results to return
- showDeleted: boolean, Set to true to return deleted annotations. updatedMin must be in the request to use this. Defaults to false.
- pageIds: string, The page ID(s) for the volume that is being queried. (repeated)
- contentVersion: string, The content version for the requested volume.
- source: string, String to identify the originator of this request.
- updatedMin: string, RFC 3339 timestamp to restrict to items updated since this timestamp (inclusive).
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token to pass in for pagination for the next page. This will not be present if this request does not have more results.
- "items": [ # A list of annotations.
- {
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- },
- ],
- "kind": "books#annotations", # Resource type.
- "totalItems": 42, # Total number of annotations found. This may be greater than the number of notes returned in this response if results have been paginated.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- summary(layerIds, volumeId)
-
Gets the summary of specified layers.
-
-Args:
- layerIds: string, Array of layer IDs to get the summary for. (required) (repeated)
- volumeId: string, Volume id to get the summary for. (required)
-
-Returns:
- An object of the form:
-
- {
- "layers": [
- {
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "layerId": "A String",
- "allowedCharacterCount": 42,
- },
- ],
- "kind": "books#annotationsSummary",
- }
-
-
-
- update(annotationId, body, source=None)
-
Updates an existing annotation.
-
-Args:
- annotationId: string, The ID for the annotation to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- }
-
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#annotation", # Resource type.
- "updated": "A String", # Timestamp for the last time this annotation was modified.
- "created": "A String", # Timestamp for the created time of this annotation.
- "deleted": True or False, # Indicates that this annotation is deleted.
- "beforeSelectedText": "A String", # Anchor text before excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "currentVersionRanges": { # Selection ranges for the most recent content version.
- "contentVersion": "A String", # Content version applicable to ranges below.
- "gbTextRange": { # Range in GB text format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation for version above.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "afterSelectedText": "A String", # Anchor text after excerpt. For requests, if the user bookmarked a screen that has no flowing text on it, then this field should be empty.
- "clientVersionRanges": { # Selection ranges sent from the client.
- "contentVersion": "A String", # Content version the client sent in.
- "gbTextRange": { # Range in GB text format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "cfiRange": { # Range in CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "imageCfiRange": { # Range in image CFI format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- "gbImageRange": { # Range in GB image format for this annotation sent by client.
- "startPosition": "A String", # The starting position for the range.
- "endPosition": "A String", # The ending position for the range.
- "startOffset": "A String", # The offset from the starting position.
- "endOffset": "A String", # The offset from the ending position.
- },
- },
- "layerSummary": {
- "limitType": "A String", # Type of limitation on this layer. "limited" or "unlimited" for the "copy" layer.
- "remainingCharacterCount": 42, # Remaining allowed characters on this layer, especially for the "copy" layer.
- "allowedCharacterCount": 42, # Maximum allowed characters on this layer, especially for the "copy" layer.
- },
- "volumeId": "A String", # The volume that this annotation belongs to.
- "pageIds": [ # Pages that this annotation spans.
- "A String",
- ],
- "layerId": "A String", # The layer this annotation is for.
- "selectedText": "A String", # Excerpt from the volume.
- "highlightStyle": "A String", # The highlight style for this annotation.
- "data": "A String", # User-created data for this annotation.
- "id": "A String", # Id of this annotation, in the form of a GUID.
- "selfLink": "A String", # URL to this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.mylibrary.bookshelves.html b/docs/dyn/books_v1.mylibrary.bookshelves.html
deleted file mode 100644
index 907ef4f..0000000
--- a/docs/dyn/books_v1.mylibrary.bookshelves.html
+++ /dev/null
@@ -1,199 +0,0 @@
-
-
-
-
Adds a volume to a bookshelf.
-
-Args:
- shelf: string, ID of bookshelf to which to add a volume. (required)
- volumeId: string, ID of volume to add. (required)
- source: string, String to identify the originator of this request.
-
-
-
-
- clearVolumes(shelf, source=None)
-
Clears all volumes from a bookshelf.
-
-Args:
- shelf: string, ID of bookshelf from which to remove a volume. (required)
- source: string, String to identify the originator of this request.
-
-
-
-
- get(shelf, source=None)
-
Retrieves metadata for a specific bookshelf belonging to the authenticated user.
-
-Args:
- shelf: string, ID of bookshelf to retrieve. (required)
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#bookshelf", # Resource type for bookshelf metadata.
- "description": "A String", # Description of this bookshelf.
- "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).
- "volumeCount": 42, # Number of volumes in this bookshelf.
- "title": "A String", # Title of this bookshelf.
- "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).
- "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.
- "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).
- "id": 42, # Id of this bookshelf, only unique by user.
- "selfLink": "A String", # URL to this resource.
- }
-
-
-
- list(source=None)
-
Retrieves a list of bookshelves belonging to the authenticated user.
-
-Args:
- source: string, String to identify the originator of this request.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # A list of bookshelves.
- {
- "kind": "books#bookshelf", # Resource type for bookshelf metadata.
- "description": "A String", # Description of this bookshelf.
- "created": "A String", # Created time for this bookshelf (formatted UTC timestamp with millisecond resolution).
- "volumeCount": 42, # Number of volumes in this bookshelf.
- "title": "A String", # Title of this bookshelf.
- "updated": "A String", # Last modified time of this bookshelf (formatted UTC timestamp with millisecond resolution).
- "access": "A String", # Whether this bookshelf is PUBLIC or PRIVATE.
- "volumesLastUpdated": "A String", # Last time a volume was added or removed from this bookshelf (formatted UTC timestamp with millisecond resolution).
- "id": 42, # Id of this bookshelf, only unique by user.
- "selfLink": "A String", # URL to this resource.
- },
- ],
- "kind": "books#bookshelves", # Resource type.
- }
Moves a volume within a bookshelf.
-
-Args:
- shelf: string, ID of bookshelf with the volume. (required)
- volumeId: string, ID of volume to move. (required)
- volumePosition: integer, Position on shelf to move the item (0 puts the item before the current first item, 1 puts it between the first and the second and so on.) (required)
- source: string, String to identify the originator of this request.
-
-
-
-
- removeVolume(shelf, volumeId, source=None)
-
Removes a volume from a bookshelf.
-
-Args:
- shelf: string, ID of bookshelf from which to remove a volume. (required)
- volumeId: string, ID of volume to remove. (required)
- source: string, String to identify the originator of this request.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.mylibrary.bookshelves.volumes.html b/docs/dyn/books_v1.mylibrary.bookshelves.volumes.html
deleted file mode 100644
index c85e0bd..0000000
--- a/docs/dyn/books_v1.mylibrary.bookshelves.volumes.html
+++ /dev/null
@@ -1,285 +0,0 @@
-
-
-
-
Gets volume information for volumes on a bookshelf.
-
-Args:
- shelf: string, The bookshelf ID or name retrieve volumes for. (required)
- q: string, Full-text search query string in this bookshelf.
- projection: string, Restrict information returned to a set of selected fields.
- Allowed values
- full - Includes all volume data.
- lite - Includes a subset of fields in volumeInfo and accessInfo.
- source: string, String to identify the originator of this request.
- country: string, ISO-3166-1 code to override the IP-based location.
- showPreorders: boolean, Set to true to show pre-ordered books. Defaults to false.
- startIndex: integer, Index of the first element to return (starts at 0)
- maxResults: integer, Maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.mylibrary.html b/docs/dyn/books_v1.mylibrary.html
deleted file mode 100644
index 7880a0b..0000000
--- a/docs/dyn/books_v1.mylibrary.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
Retrieves my reading position information for a volume.
-
-Args:
- volumeId: string, ID of volume for which to retrieve a reading position. (required)
- source: string, String to identify the originator of this request.
- contentVersion: string, Volume content version for which this reading position is requested.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- }
Sets my reading position information for a volume.
-
-Args:
- volumeId: string, ID of volume for which to update the reading position. (required)
- timestamp: string, RFC 3339 UTC format timestamp associated with this reading position. (required)
- position: string, Position string for the new volume reading position. (required)
- deviceCookie: string, Random persistent device cookie optional on set position.
- source: string, String to identify the originator of this request.
- contentVersion: string, Volume content version for which this reading position applies.
- action: string, Action that caused this reading position to be set.
- Allowed values
- bookmark - User chose bookmark within volume.
- chapter - User selected chapter from list.
- next-page - Next page event.
- prev-page - Previous page event.
- scroll - User navigated to page.
- search - User chose search results within volume.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.volumes.associated.html b/docs/dyn/books_v1.volumes.associated.html
deleted file mode 100644
index b705313..0000000
--- a/docs/dyn/books_v1.volumes.associated.html
+++ /dev/null
@@ -1,281 +0,0 @@
-
-
-
-
Return a list of associated books.
-
-Args:
- volumeId: string, ID of the source volume. (required)
- source: string, String to identify the originator of this request.
- locale: string, ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
- association: string, Association type.
- Allowed values
- end-of-sample - Recommendations for display end-of-sample.
- end-of-volume - Recommendations for display end-of-volume.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.volumes.html b/docs/dyn/books_v1.volumes.html
deleted file mode 100644
index 0fd2b47..0000000
--- a/docs/dyn/books_v1.volumes.html
+++ /dev/null
@@ -1,526 +0,0 @@
-
-
-
-
Gets volume information for a single volume.
-
-Args:
- volumeId: string, ID of volume to retrieve. (required)
- projection: string, Restrict information returned to a set of selected fields.
- Allowed values
- full - Includes all volume data.
- lite - Includes a subset of fields in volumeInfo and accessInfo.
- source: string, String to identify the originator of this request.
- country: string, ISO-3166-1 code to override the IP-based location.
- partner: string, Brand results for partner ID.
-
-Returns:
- An object of the form:
-
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- }
Performs a book search.
-
-Args:
- q: string, Full-text search query string. (required)
- orderBy: string, Sort search results.
- Allowed values
- newest - Most recently published.
- relevance - Relevance to search terms.
- projection: string, Restrict information returned to a set of selected fields.
- Allowed values
- full - Includes all volume data.
- lite - Includes a subset of fields in volumeInfo and accessInfo.
- showPreorders: boolean, Set to true to show books available for preorder. Defaults to false.
- download: string, Restrict to volumes by download availability.
- Allowed values
- epub - All volumes with epub.
- startIndex: integer, Index of the first result to return (starts at 0)
- partner: string, Restrict and brand results for partner ID.
- source: string, String to identify the originator of this request.
- maxResults: integer, Maximum number of results to return.
- libraryRestrict: string, Restrict search to this user's library.
- Allowed values
- my-library - Restrict to the user's library, any shelf.
- no-restrict - Do not restrict based on user's library.
- langRestrict: string, Restrict results to books with this language code.
- printType: string, Restrict to books or magazines.
- Allowed values
- all - All volume content types.
- books - Just books.
- magazines - Just magazines.
- filter: string, Filter search results.
- Allowed values
- ebooks - All Google eBooks.
- free-ebooks - Google eBook with full volume text viewability.
- full - Public can view entire volume text.
- paid-ebooks - Google eBook with a price.
- partial - Public able to see parts of text.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.volumes.mybooks.html b/docs/dyn/books_v1.volumes.mybooks.html
deleted file mode 100644
index d579ef8..0000000
--- a/docs/dyn/books_v1.volumes.mybooks.html
+++ /dev/null
@@ -1,292 +0,0 @@
-
-
-
-
Return a list of books in My Library.
-
-Args:
- source: string, String to identify the originator of this request.
- locale: string, ISO-639-1 language and ISO-3166-1 country code. Ex:'en_US'. Used for generating recommendations.
- acquireMethod: string, How the book was aquired (repeated)
- Allowed values
- PREORDERED - Preordered books (not yet available)
- PREVIOUSLY_RENTED - User-rented books past their expiration time
- PUBLIC_DOMAIN - Public domain books
- PURCHASED - Purchased books
- RENTED - User-rented books
- SAMPLE - Sample books
- UPLOADED - User uploaded books
- maxResults: integer, Maximum number of results to return.
- startIndex: integer, Index of the first result to return (starts at 0)
- processingState: string, The processing state of the user uploaded volumes to be returned. Applicable only if the UPLOADED is specified in the acquireMethod. (repeated)
- Allowed values
- COMPLETED_FAILED - The volume processing hase failed.
- COMPLETED_SUCCESS - The volume processing was completed.
- RUNNING - The volume processing is not completed.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.volumes.recommended.html b/docs/dyn/books_v1.volumes.recommended.html
deleted file mode 100644
index a5fc294..0000000
--- a/docs/dyn/books_v1.volumes.recommended.html
+++ /dev/null
@@ -1,276 +0,0 @@
-
-
-
-
Return a list of recommended books for the current user.
-
Method Details
-
- list(source=None, locale=None)
-
Return a list of recommended books for the current user.
-
-Args:
- source: string, String to identify the originator of this request.
- locale: string, ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/books_v1.volumes.useruploaded.html b/docs/dyn/books_v1.volumes.useruploaded.html
deleted file mode 100644
index cf727d4..0000000
--- a/docs/dyn/books_v1.volumes.useruploaded.html
+++ /dev/null
@@ -1,284 +0,0 @@
-
-
-
-
Return a list of books uploaded by the current user.
-
-Args:
- source: string, String to identify the originator of this request.
- locale: string, ISO-639-1 language and ISO-3166-1 country code. Ex: 'en_US'. Used for generating recommendations.
- volumeId: string, The ids of the volumes to be returned. If not specified all that match the processingState are returned. (repeated)
- maxResults: integer, Maximum number of results to return.
- startIndex: integer, Index of the first result to return (starts at 0)
- processingState: string, The processing state of the user uploaded volumes to be returned. (repeated)
- Allowed values
- COMPLETED_FAILED - The volume processing hase failed.
- COMPLETED_SUCCESS - The volume processing was completed.
- RUNNING - The volume processing is not completed.
-
-Returns:
- An object of the form:
-
- {
- "totalItems": 42, # Total number of volumes found. This might be greater than the number of volumes returned in this response if results have been paginated.
- "items": [ # A list of volumes.
- {
- "kind": "books#volume", # Resource type for a volume. (In LITE projection.)
- "accessInfo": { # Any information about a volume related to reading or obtaining that volume text. This information can depend on country (books may be public domain in one country but not in another, e.g.).
- "webReaderLink": "A String", # URL to read this volume on the Google Books site. Link will not allow users to read non-viewable volumes.
- "publicDomain": True or False, # Whether or not this book is public domain in the country listed above.
- "embeddable": True or False, # Whether this volume can be embedded in a viewport using the Embedded Viewer API.
- "downloadAccess": { # Information about a volume's download license access restrictions.
- "nonce": "A String", # Client nonce for verification. Download access and client-validation only.
- "kind": "books#downloadAccessRestriction", # Resource type.
- "justAcquired": True or False, # If deviceAllowed, whether access was just acquired with this request.
- "maxDownloadDevices": 42, # If restricted, the maximum number of content download licenses for this volume.
- "downloadsAcquired": 42, # If restricted, the number of content download licenses already acquired (including the requesting client, if licensed).
- "signature": "A String", # Response signature.
- "volumeId": "A String", # Identifies the volume for which this entry applies.
- "deviceAllowed": True or False, # If restricted, whether access is granted for this (user, device, volume).
- "source": "A String", # Client app identifier for verification. Download access and client-validation only.
- "restricted": True or False, # Whether this volume has any download access restrictions.
- "reasonCode": "A String", # Error/warning reason code. Additional codes may be added in the future. 0 OK 100 ACCESS_DENIED_PUBLISHER_LIMIT 101 ACCESS_DENIED_LIMIT 200 WARNING_USED_LAST_ACCESS
- "message": "A String", # Error/warning message.
- },
- "country": "A String", # The two-letter ISO_3166-1 country code for which this access information is valid. (In LITE projection.)
- "viewOrderUrl": "A String", # For ordered but not yet processed orders, we give a URL that can be used to go to the appropriate Google Wallet page.
- "textToSpeechPermission": "A String", # Whether text-to-speech is permitted for this volume. Values can be ALLOWED, ALLOWED_FOR_ACCESSIBILITY, or NOT_ALLOWED.
- "pdf": { # Information about pdf content. (In LITE projection.)
- "isAvailable": True or False, # Is a scanned image pdf available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download pdf. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for pdf download. (In LITE projection.)
- },
- "viewability": "A String", # The read access of a volume. Possible values are PARTIAL, ALL_PAGES, NO_PAGES or UNKNOWN. This value depends on the country listed above. A value of PARTIAL means that the publisher has allowed some portion of the volume to be viewed publicly, without purchase. This can apply to eBooks as well as non-eBooks. Public domain books will always have a value of ALL_PAGES.
- "epub": { # Information about epub content. (In LITE projection.)
- "isAvailable": True or False, # Is a flowing text epub available either as public domain or for purchase. (In LITE projection.)
- "downloadLink": "A String", # URL to download epub. (In LITE projection.)
- "acsTokenLink": "A String", # URL to retrieve ACS token for epub download. (In LITE projection.)
- },
- "accessViewStatus": "A String", # Combines the access and viewability of this volume into a single status field for this user. Values can be FULL_PURCHASED, FULL_PUBLIC_DOMAIN, SAMPLE or NONE. (In LITE projection.)
- },
- "searchInfo": { # Search result information related to this volume.
- "textSnippet": "A String", # A text snippet containing the search query.
- },
- "saleInfo": { # Any information about a volume related to the eBookstore and/or purchaseability. This information can depend on the country where the request originates from (i.e. books may not be for sale in certain countries).
- "country": "A String", # The two-letter ISO_3166-1 country code for which this sale information is valid. (In LITE projection.)
- "retailPrice": { # The actual selling price of the book. This is the same as the suggested retail or list price unless there are offers or discounts on this volume. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- "isEbook": True or False, # Whether or not this volume is an eBook (can be added to the My eBooks shelf).
- "offers": [ # Offers available for this volume (sales and rentals).
- {
- "rentalDuration": { # The rental duration (for rental offers only).
- "count": 3.14,
- "unit": "A String",
- },
- "retailPrice": { # Offer retail (=discounted) price in Micros
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "listPrice": { # Offer list (=undiscounted) price in Micros.
- "currencyCode": "A String",
- "amountInMicros": 3.14,
- },
- "finskyOfferType": 42, # The finsky offer type (e.g., PURCHASE=0 RENTAL=3)
- },
- ],
- "saleability": "A String", # Whether or not this book is available for sale or offered for free in the Google eBookstore for the country listed above. Possible values are FOR_SALE, FOR_RENTAL_ONLY, FOR_SALE_AND_RENTAL, FREE, NOT_FOR_SALE, or FOR_PREORDER.
- "buyLink": "A String", # URL to purchase this volume on the Google Books site. (In LITE projection)
- "onSaleDate": "A String", # The date on which this book is available for sale.
- "listPrice": { # Suggested retail price. (In LITE projection.)
- "amount": 3.14, # Amount in the currency listed below. (In LITE projection.)
- "currencyCode": "A String", # An ISO 4217, three-letter currency code. (In LITE projection.)
- },
- },
- "etag": "A String", # Opaque identifier for a specific version of a volume resource. (In LITE projection)
- "selfLink": "A String", # URL to this resource. (In LITE projection.)
- "volumeInfo": { # General volume information.
- "publisher": "A String", # Publisher of this volume. (In LITE projection.)
- "subtitle": "A String", # Volume subtitle. (In LITE projection.)
- "description": "A String", # A synopsis of the volume. The text of the description is formatted in HTML and includes simple formatting elements, such as b, i, and br tags. (In LITE projection.)
- "language": "A String", # Best language for this volume (based on content). It is the two-letter ISO 639-1 code such as 'fr', 'en', etc.
- "pageCount": 42, # Total number of pages.
- "imageLinks": { # A list of image links for all the sizes that are available. (In LITE projection.)
- "medium": "A String", # Image link for medium size (width of ~575 pixels). (In LITE projection)
- "smallThumbnail": "A String", # Image link for small thumbnail size (width of ~80 pixels). (In LITE projection)
- "large": "A String", # Image link for large size (width of ~800 pixels). (In LITE projection)
- "extraLarge": "A String", # Image link for extra large size (width of ~1280 pixels). (In LITE projection)
- "small": "A String", # Image link for small size (width of ~300 pixels). (In LITE projection)
- "thumbnail": "A String", # Image link for thumbnail size (width of ~128 pixels). (In LITE projection)
- },
- "publishedDate": "A String", # Date of publication. (In LITE projection.)
- "previewLink": "A String", # URL to preview this volume on the Google Books site.
- "printType": "A String", # Type of publication of this volume. Possible values are BOOK or MAGAZINE.
- "ratingsCount": 42, # The number of review ratings for this volume.
- "mainCategory": "A String", # The main category to which this volume belongs. It will be the category from the categories list returned below that has the highest weight.
- "dimensions": { # Physical dimensions of this volume.
- "width": "A String", # Width of this volume (in cm).
- "thickness": "A String", # Thickness of this volume (in cm).
- "height": "A String", # Height or length of this volume (in cm).
- },
- "contentVersion": "A String", # An identifier for the version of the volume content (text & images). (In LITE projection)
- "industryIdentifiers": [ # Industry standard identifiers for this volume.
- {
- "identifier": "A String", # Industry specific volume identifier.
- "type": "A String", # Identifier type. Possible values are ISBN_10, ISBN_13, ISSN and OTHER.
- },
- ],
- "authors": [ # The names of the authors and/or editors for this volume. (In LITE projection)
- "A String",
- ],
- "title": "A String", # Volume title. (In LITE projection.)
- "canonicalVolumeLink": "A String", # Canonical URL for a volume. (In LITE projection.)
- "infoLink": "A String", # URL to view information about this volume on the Google Books site. (In LITE projection)
- "categories": [ # A list of subject categories, such as "Fiction", "Suspense", etc.
- "A String",
- ],
- "averageRating": 3.14, # The mean review rating for this volume. (min = 1.0, max = 5.0)
- },
- "recommendedInfo": { # Recommendation related information for this volume.
- "explanation": "A String", # A text explaining why this volume is recommended.
- },
- "id": "A String", # Unique identifier for a volume. (In LITE projection.)
- "layerInfo": { # What layers exist in this volume and high level information about them.
- "layers": [ # A layer should appear here if and only if the layer exists for this book.
- {
- "volumeAnnotationsVersion": "A String", # The current version of this layer's volume annotations. Note that this version applies only to the data in the books.layers.volumeAnnotations.* responses. The actual annotation data is versioned separately.
- "layerId": "A String", # The layer id of this layer (e.g. "geo").
- },
- ],
- },
- "userInfo": { # User specific information related to this volume. (e.g. page this user last read or whether they purchased this book)
- "isInMyBooks": True or False, # Whether or not this volume is currently in "my books."
- "rentalPeriod": { # Period during this book is/was a valid rental.
- "startUtcSec": "A String",
- "endUtcSec": "A String",
- },
- "updated": "A String", # Timestamp when this volume was last modified by a user action, such as a reading position update, volume purchase or writing a review. (RFC 3339 UTC date-time format).
- "userUploadedVolumeInfo": {
- "processingState": "A String",
- },
- "rentalState": "A String", # Whether this book is an active or an expired rental.
- "isPurchased": True or False, # Whether or not this volume was purchased by the authenticated user making the request. (In LITE projection.)
- "readingPosition": { # The user's current reading position in the volume, if one is available. (In LITE projection.)
- "kind": "books#readingPosition", # Resource type for a reading position.
- "gbImagePosition": "A String", # Position in a volume for image-based content.
- "epubCfiPosition": "A String", # Position in an EPUB as a CFI.
- "updated": "A String", # Timestamp when this reading position was last updated (formatted UTC timestamp with millisecond resolution).
- "volumeId": "A String", # Volume id associated with this reading position.
- "pdfPosition": "A String", # Position in a PDF file.
- "gbTextPosition": "A String", # Position in a volume for text-based content.
- },
- "review": { # This user's review of this volume, if one exists.
- "rating": "A String", # Star rating for this review. Possible values are ONE, TWO, THREE, FOUR, FIVE or NOT_RATED.
- "kind": "books#review", # Resource type for a review.
- "author": { # Author of this review.
- "displayName": "A String", # Name of this person.
- },
- "title": "A String", # Title for this review.
- "volumeId": "A String", # Volume that this review is for.
- "content": "A String", # Review text.
- "source": { # Information regarding the source of this review, when the review is not from a Google Books user.
- "extraDescription": "A String", # Extra text about the source of the review.
- "url": "A String", # URL of the source of the review.
- "description": "A String", # Name of the source.
- },
- "date": "A String", # Date of this review.
- "type": "A String", # Source type for this review. Possible values are EDITORIAL, WEB_USER or GOOGLE_USER.
- "fullTextUrl": "A String", # URL for the full review text, for reviews gathered from the web.
- },
- "isPreordered": True or False, # Whether or not this volume was pre-ordered by the authenticated user making the request. (In LITE projection.)
- "copy": { # Copy/Paste accounting information.
- "limitType": "A String",
- "remainingCharacterCount": 42,
- "updated": "A String",
- "allowedCharacterCount": 42,
- },
- "isUploaded": True or False, # Whether or not this volume was user uploaded.
- },
- },
- ],
- "kind": "books#volumes", # Resource type.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.acl.html b/docs/dyn/calendar_v3.acl.html
deleted file mode 100644
index 836a699..0000000
--- a/docs/dyn/calendar_v3.acl.html
+++ /dev/null
@@ -1,340 +0,0 @@
-
-
-
-
Returns an access control rule.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- ruleId: string, ACL rule identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-
- insert(calendarId, body)
-
Creates an access control rule.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-
- list(calendarId)
-
Returns the rules in the access control list for the calendar.
-
-Args:
- calendarId: string, Calendar identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available.
- "items": [ # List of rules on the access control list.
- {
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- },
- ],
- "kind": "calendar#acl", # Type of the collection ("calendar#acl").
- "etag": "A String", # ETag of the collection.
- }
-
-
-
- patch(calendarId, ruleId, body)
-
Updates an access control rule. This method supports patch semantics.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- ruleId: string, ACL rule identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-
- update(calendarId, ruleId, body)
-
Updates an access control rule.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- ruleId: string, ACL rule identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "scope": { # The scope of the rule.
- "type": "A String", # The type of the scope. Possible values are:
- # - "default" - The public scope. This is the default value.
- # - "user" - Limits the scope to a single user.
- # - "group" - Limits the scope to a group.
- # - "domain" - Limits the scope to a domain. Note: The permissions granted to the "default", or public, scope apply to any user, authenticated or not.
- "value": "A String", # The email address of a user or group, or the name of a domain, depending on the scope type. Omitted for type "default".
- },
- "kind": "calendar#aclRule", # Type of the resource ("calendar#aclRule").
- "etag": "A String", # ETag of the resource.
- "role": "A String", # The role assigned to the scope. Possible values are:
- # - "none" - Provides no access.
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the ACL rule.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.calendarList.html b/docs/dyn/calendar_v3.calendarList.html
deleted file mode 100644
index 4e608df..0000000
--- a/docs/dyn/calendar_v3.calendarList.html
+++ /dev/null
@@ -1,451 +0,0 @@
-
-
-
-
Deletes an entry on the user's calendar list.
-
-Args:
- calendarId: string, Calendar identifier. (required)
-
-
-
-
- get(calendarId)
-
Returns an entry on the user's calendar list.
-
-Args:
- calendarId: string, Calendar identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
- insert(body, colorRgbFormat=None)
-
Adds an entry to the user's calendar list.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
- colorRgbFormat: boolean, Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
Returns entries on the user's calendar list.
-
-Args:
- minAccessRole: string, The minimum access role for the user in the returned entires. Optional. The default is no restriction.
- Allowed values
- freeBusyReader - The user can read free/busy information.
- owner - The user can read and modify events and access control lists.
- reader - The user can read events that are not private.
- writer - The user can read and modify events.
- maxResults: integer, Maximum number of entries returned on one result page. Optional.
- pageToken: string, Token specifying which result page to return. Optional.
- showHidden: boolean, Whether to show hidden entries. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token used to access the next page of this result.
- "items": [ # Calendars that are present on the user's calendar list.
- {
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- },
- ],
- "kind": "calendar#calendarList", # Type of the collection ("calendar#calendarList").
- "etag": "A String", # ETag of the collection.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(calendarId, body, colorRgbFormat=None)
-
Updates an entry on the user's calendar list. This method supports patch semantics.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
- colorRgbFormat: boolean, Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
- update(calendarId, body, colorRgbFormat=None)
-
Updates an entry on the user's calendar list.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
- colorRgbFormat: boolean, Whether to use the 'foregroundColor' and 'backgroundColor' fields to write the calendar colors (RGB). If this feature is used, the index-based 'colorId' field will be set to the best matching option automatically. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendarListEntry", # Type of the resource ("calendar#calendarListEntry").
- "foregroundColor": "A String", # The foreground color of the calendar in the format '#ffffff'. This property supersedes the index-based colorId property. Optional.
- "defaultReminders": [ # The default reminders that the authenticated user has for this calendar.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Optional. Read-only.
- "colorId": "A String", # The color of the calendar. This is an ID referring to an entry in the "calendar" section of the colors definition (see the "colors" endpoint). Optional.
- "selected": True or False, # Whether the calendar content shows up in the calendar UI. Optional. The default is False.
- "primary": True or False, # Whether the calendar is the primary calendar of the authenticated user. Read-only. Optional. The default is False.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional. Read-only.
- "backgroundColor": "A String", # The main color of the calendar in the format '#0088aa'. This property supersedes the index-based colorId property. Optional.
- "summaryOverride": "A String", # The summary that the authenticated user has set for this calendar. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional. Read-only.
- "hidden": True or False, # Whether the calendar has been hidden from the list. Optional. The default is False.
- "accessRole": "A String", # The effective access role that the authenticated user has on the calendar. Read-only. Possible values are:
- # - "freeBusyReader" - Provides read access to free/busy information.
- # - "reader" - Provides read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - Provides read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - Provides ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.calendars.html b/docs/dyn/calendar_v3.calendars.html
deleted file mode 100644
index d6d1524..0000000
--- a/docs/dyn/calendar_v3.calendars.html
+++ /dev/null
@@ -1,236 +0,0 @@
-
-
-
-
Clears a primary calendar. This operation deletes all data associated with the primary calendar of an account and cannot be undone.
-
-Args:
- calendarId: string, Calendar identifier. (required)
-
Returns metadata for a calendar.
-
-Args:
- calendarId: string, Calendar identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
- insert(body)
-
Creates a secondary calendar.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
- patch(calendarId, body)
-
Updates metadata for a calendar. This method supports patch semantics.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
- update(calendarId, body)
-
Updates metadata for a calendar.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#calendar", # Type of the resource ("calendar#calendar").
- "description": "A String", # Description of the calendar. Optional.
- "summary": "A String", # Title of the calendar.
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the calendar as free-form text. Optional.
- "timeZone": "A String", # The time zone of the calendar. Optional.
- "id": "A String", # Identifier of the calendar.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.channels.html b/docs/dyn/calendar_v3.channels.html
deleted file mode 100644
index c65da65..0000000
--- a/docs/dyn/calendar_v3.channels.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.colors.html b/docs/dyn/calendar_v3.colors.html
deleted file mode 100644
index ecbf926..0000000
--- a/docs/dyn/calendar_v3.colors.html
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
Returns the color definitions for calendars and events.
-
Method Details
-
- get()
-
Returns the color definitions for calendars and events.
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "calendar": { # Palette of calendar colors, mapping from the color ID to its definition. An 'calendarListEntry' resource refers to one of these color IDs in its 'color' field. Read-only.
- "a_key": { # A calendar color defintion.
- "foreground": "A String", # The foreground color that can be used to write on top of a background with 'background' color.
- "background": "A String", # The background color associated with this color definition.
- },
- },
- "updated": "A String", # Last modification time of the color palette (as a RFC 3339 timestamp). Read-only.
- "event": { # Palette of event colors, mapping from the color ID to its definition. An 'event' resource may refer to one of these color IDs in its 'color' field. Read-only.
- "a_key": { # An event color definition.
- "foreground": "A String", # The foreground color that can be used to write on top of a background with 'background' color.
- "background": "A String", # The background color associated with this color definition.
- },
- },
- "kind": "calendar#colors", # Type of the resource ("calendar#colors").
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.events.html b/docs/dyn/calendar_v3.events.html
deleted file mode 100644
index ab55b93..0000000
--- a/docs/dyn/calendar_v3.events.html
+++ /dev/null
@@ -1,2023 +0,0 @@
-
-
-
-
Deletes an event.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- eventId: string, Event identifier. (required)
- sendNotifications: boolean, Whether to send notifications about the deletion of the event. Optional. The default is False.
-
Returns an event.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- eventId: string, Event identifier. (required)
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
-
-
-
- import_(calendarId, body)
-
Imports an event. This operation is used to add a private copy of an existing event to a calendar.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Creates an event.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
-
- sendNotifications: boolean, Whether to send notifications about the creation of the new event. Optional. The default is False.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Returns instances of the specified recurring event.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- eventId: string, Recurring event identifier. (required)
- timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
- showDeleted: boolean, Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events will still be included if 'singleEvents' is False. Optional. The default is False.
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- pageToken: string, Token specifying which result page to return. Optional.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
- maxResults: integer, Maximum number of events returned on one result page. Optional.
- timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
- timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
- originalStart: string, The original start time of the instance in the result. Optional.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available.
- "kind": "calendar#events", # Type of the collection ("calendar#events").
- "defaultReminders": [ # The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have 'reminders.useDefault' set to 'true').
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Read-only.
- "items": [ # List of events on the calendar.
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- },
- ],
- "updated": "A String", # Last modification time of the calendar (as a RFC 3339 timestamp). Read-only.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the collection.
- "timeZone": "A String", # The time zone of the calendar. Read-only.
- "accessRole": "A String", # The user's access role for this calendar. Read-only. Possible values are:
- # - "none" - The user has no access.
- # - "freeBusyReader" - The user has read access to free/busy information.
- # - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Returns events on the specified calendar.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- orderBy: string, The order of the events returned in the result. Optional. The default is an unspecified, stable order.
- Allowed values
- startTime - Order by the start date/time (ascending). This is only available when querying single events (i.e. the parameter "singleEvents" is True)
- updated - Order by last modification time (ascending).
- showHiddenInvitations: boolean, Whether to include hidden invitations in the result. Optional. The default is False.
- timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
- pageToken: string, Token specifying which result page to return. Optional.
- updatedMin: string, Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
- singleEvents: boolean, Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- showDeleted: boolean, Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
- iCalUID: string, Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
- maxResults: integer, Maximum number of events returned on one result page. Optional.
- timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
- q: string, Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
- timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token used to access the next page of this result. Omitted if no further results are available.
- "kind": "calendar#events", # Type of the collection ("calendar#events").
- "defaultReminders": [ # The default reminders on the calendar for the authenticated user. These reminders apply to all events on this calendar that do not explicitly override them (i.e. do not have 'reminders.useDefault' set to 'true').
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "description": "A String", # Description of the calendar. Read-only.
- "items": [ # List of events on the calendar.
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- },
- ],
- "updated": "A String", # Last modification time of the calendar (as a RFC 3339 timestamp). Read-only.
- "summary": "A String", # Title of the calendar. Read-only.
- "etag": "A String", # ETag of the collection.
- "timeZone": "A String", # The time zone of the calendar. Read-only.
- "accessRole": "A String", # The user's access role for this calendar. Read-only. Possible values are:
- # - "none" - The user has no access.
- # - "freeBusyReader" - The user has read access to free/busy information.
- # - "reader" - The user has read access to the calendar. Private events will appear to users with reader access, but event details will be hidden.
- # - "writer" - The user has read and write access to the calendar. Private events will appear to users with writer access, and event details will be visible.
- # - "owner" - The user has ownership of the calendar. This role has all of the permissions of the writer role with the additional ability to see and manipulate ACLs.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Moves an event to another calendar, i.e. changes an event's organizer.
-
-Args:
- calendarId: string, Calendar identifier of the source calendar where the event currently is on. (required)
- eventId: string, Event identifier. (required)
- destination: string, Calendar identifier of the target calendar where the event is to be moved to. (required)
- sendNotifications: boolean, Whether to send notifications about the change of the event's organizer. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Updates an event. This method supports patch semantics.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- eventId: string, Event identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
-
- sendNotifications: boolean, Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Creates an event based on a simple text string.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- text: string, The text describing the event to be created. (required)
- sendNotifications: boolean, Whether to send notifications about the creation of the event. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Updates an event.
-
-Args:
- calendarId: string, Calendar identifier. (required)
- eventId: string, Event identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
-
- sendNotifications: boolean, Whether to send notifications about the event update (e.g. attendee's responses, title changes, etc.). Optional. The default is False.
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
-
-Returns:
- An object of the form:
-
- {
- "creator": { # The creator of the event. Read-only.
- "self": True or False, # Whether the creator corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The creator's name, if available.
- "email": "A String", # The creator's email address, if available.
- "id": "A String", # The creator's Profile ID, if available.
- },
- "organizer": { # The organizer of the event. If the organizer is also an attendee, this is indicated with a separate entry in 'attendees' with the 'organizer' field set to True. To change the organizer, use the "move" operation. Read-only, except when importing an event.
- "self": True or False, # Whether the organizer corresponds to the calendar on which this copy of the event appears. Read-only. The default is False.
- "displayName": "A String", # The organizer's name, if available.
- "email": "A String", # The organizer's email address, if available.
- "id": "A String", # The organizer's Profile ID, if available.
- },
- "summary": "A String", # Title of the event.
- "id": "A String", # Identifier of the event.
- "hangoutLink": "A String", # An absolute link to the Google+ hangout associated with this event. Read-only.
- "attendees": [ # The attendees of the event.
- {
- "comment": "A String", # The attendee's response comment. Optional.
- "displayName": "A String", # The attendee's name, if available. Optional.
- "responseStatus": "A String", # The attendee's response status. Possible values are:
- # - "needsAction" - The attendee has not responded to the invitation.
- # - "declined" - The attendee has declined the invitation.
- # - "tentative" - The attendee has tentatively accepted the invitation.
- # - "accepted" - The attendee has accepted the invitation.
- "self": True or False, # Whether this entry represents the calendar on which this copy of the event appears. Read-only. The default is False.
- "id": "A String", # The attendee's Profile ID, if available.
- "additionalGuests": 42, # Number of additional guests. Optional. The default is 0.
- "resource": True or False, # Whether the attendee is a resource. Read-only. The default is False.
- "organizer": True or False, # Whether the attendee is the organizer of the event. Read-only. The default is False.
- "optional": True or False, # Whether this is an optional attendee. Optional. The default is False.
- "email": "A String", # The attendee's email address, if available. This field must be present when adding an attendee.
- },
- ],
- "start": { # The (inclusive) start time of the event. For a recurring event, this is the start time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "htmlLink": "A String", # An absolute link to this event in the Google Calendar Web UI. Read-only.
- "recurrence": [ # List of RRULE, EXRULE, RDATE and EXDATE lines for a recurring event. This field is omitted for single events or instances of recurring events.
- "A String",
- ],
- "source": { # Source of an event from which it was created; for example a web page, an email message or any document identifiable by an URL using HTTP/HTTPS protocol. Accessible only by the creator of the event.
- "url": "A String", # URL of the source pointing to a resource. URL's protocol must be HTTP or HTTPS.
- "title": "A String", # Title of the source; for example a title of a web page or an email subject.
- },
- "etag": "A String", # ETag of the resource.
- "location": "A String", # Geographic location of the event as free-form text. Optional.
- "recurringEventId": "A String", # For an instance of a recurring event, this is the event ID of the recurring event itself. Immutable.
- "gadget": { # A gadget that extends this event.
- "preferences": { # Preferences.
- "a_key": "A String", # The preference name and corresponding value.
- },
- "title": "A String", # The gadget's title.
- "height": 42, # The gadget's height in pixels. Optional.
- "width": 42, # The gadget's width in pixels. Optional.
- "link": "A String", # The gadget's URL.
- "type": "A String", # The gadget's type.
- "display": "A String", # The gadget's display mode. Optional. Possible values are:
- # - "icon" - The gadget displays next to the event's title in the calendar view.
- # - "chip" - The gadget displays when the event is clicked.
- "iconLink": "A String", # The gadget's icon URL.
- },
- "status": "A String", # Status of the event. Optional. Possible values are:
- # - "confirmed" - The event is confirmed. This is the default status.
- # - "tentative" - The event is tentatively confirmed.
- # - "cancelled" - The event is cancelled.
- "updated": "A String", # Last modification time of the event (as a RFC 3339 timestamp). Read-only.
- "description": "A String", # Description of the event. Optional.
- "iCalUID": "A String", # Event ID in the iCalendar format.
- "extendedProperties": { # Extended properties of the event.
- "shared": { # Properties that are shared between copies of the event on other attendees' calendars.
- "a_key": "A String", # The name of the shared property and the corresponding value.
- },
- "private": { # Properties that are private to the copy of the event that appears on this calendar.
- "a_key": "A String", # The name of the private property and the corresponding value.
- },
- },
- "endTimeUnspecified": True or False, # Whether the end time is actually unspecified. An end time is still provided for compatibility reasons, even if this attribute is set to True. The default is False.
- "sequence": 42, # Sequence number as per iCalendar.
- "visibility": "A String", # Visibility of the event. Optional. Possible values are:
- # - "default" - Uses the default visibility for events on the calendar. This is the default value.
- # - "public" - The event is public and event details are visible to all readers of the calendar.
- # - "private" - The event is private and only event attendees may view event details.
- # - "confidential" - The event is private. This value is provided for compatibility reasons.
- "guestsCanModify": True or False, # Whether attendees other than the organizer can modify the event. Optional. The default is False.
- "end": { # The (exclusive) end time of the event. For a recurring event, this is the end time of the first instance.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "attendeesOmitted": True or False, # Whether attendees may have been omitted from the event's representation. When retrieving an event, this may be due to a restriction specified by the 'maxAttendee' query parameter. When updating an event, this can be used to only update the participant's response. Optional. The default is False.
- "kind": "calendar#event", # Type of the resource ("calendar#event").
- "locked": True or False, # Whether this is a locked event copy where no changes can be made to the main event fields "summary", "description", "location", "start", "end" or "recurrence". The default is False. Read-Only.
- "created": "A String", # Creation time of the event (as a RFC 3339 timestamp). Read-only.
- "colorId": "A String", # The color of the event. This is an ID referring to an entry in the "event" section of the colors definition (see the "colors" endpoint). Optional.
- "anyoneCanAddSelf": True or False, # Whether anyone can invite themselves to the event. Optional. The default is False.
- "reminders": { # Information about the event's reminders for the authenticated user.
- "overrides": [ # If the event doesn't use the default reminders, this lists the reminders specific to the event, or, if not set, indicates that no reminders are set for this event.
- {
- "minutes": 42, # Number of minutes before the start of the event when the reminder should trigger.
- "method": "A String", # The method used by this reminder. Possible values are:
- # - "email" - Reminders are sent via email.
- # - "sms" - Reminders are sent via SMS.
- # - "popup" - Reminders are sent via a UI popup.
- },
- ],
- "useDefault": True or False, # Whether the default reminders of the calendar apply to the event.
- },
- "guestsCanSeeOtherGuests": True or False, # Whether attendees other than the organizer can see who the event's attendees are. Optional. The default is True.
- "originalStartTime": { # For an instance of a recurring event, this is the time at which this event would start according to the recurrence data in the recurring event identified by recurringEventId. Immutable.
- "date": "A String", # The date, in the format "yyyy-mm-dd", if this is an all-day event.
- "timeZone": "A String", # The name of the time zone in which the time is specified (e.g. "Europe/Zurich"). Optional. The default is the time zone of the calendar.
- "dateTime": "A String", # The time, as a combined date-time value (formatted according to RFC 3339). A time zone offset is required unless a time zone is explicitly specified in 'timeZone'.
- },
- "guestsCanInviteOthers": True or False, # Whether attendees other than the organizer can invite others to the event. Optional. The default is True.
- "transparency": "A String", # Whether the event blocks time on the calendar. Optional. Possible values are:
- # - "opaque" - The event blocks time on the calendar. This is the default value.
- # - "transparent" - The event does not block time on the calendar.
- "privateCopy": True or False, # Whether this is a private event copy where changes are not shared with other copies on other calendars. Optional. Immutable. The default is False.
- }
Subscribe to changes in events collection
-
-Args:
- calendarId: string, Calendar identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
- orderBy: string, The order of the events returned in the result. Optional. The default is an unspecified, stable order.
- Allowed values
- startTime - Order by the start date/time (ascending). This is only available when querying single events (i.e. the parameter "singleEvents" is True)
- updated - Order by last modification time (ascending).
- showHiddenInvitations: boolean, Whether to include hidden invitations in the result. Optional. The default is False.
- timeMin: string, Lower bound (inclusive) for an event's end time to filter by. Optional. The default is not to filter by end time.
- pageToken: string, Token specifying which result page to return. Optional.
- updatedMin: string, Lower bound for an event's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
- singleEvents: boolean, Whether to expand recurring events into instances and only return single one-off events and instances of recurring events, but not the underlying recurring events themselves. Optional. The default is False.
- alwaysIncludeEmail: boolean, Whether to always include a value in the "email" field for the organizer, creator and attendees, even if no real email is available (i.e. a generated, non-working value will be provided). The use of this option is discouraged and should only be used by clients which cannot handle the absence of an email address value in the mentioned places. Optional. The default is False.
- showDeleted: boolean, Whether to include deleted events (with 'status' equals 'cancelled') in the result. Cancelled instances of recurring events (but not the underlying recurring event) will still be included if 'showDeleted' and 'singleEvents' are both False. If 'showDeleted' and 'singleEvents' are both True, only single instances of deleted events (but not the underlying recurring events) are returned. Optional. The default is False.
- maxAttendees: integer, The maximum number of attendees to include in the response. If there are more than the specified number of attendees, only the participant is returned. Optional.
- iCalUID: string, Specifies iCalendar UID (iCalUID) of events to be included in the response. Optional.
- maxResults: integer, Maximum number of events returned on one result page. Optional.
- timeMax: string, Upper bound (exclusive) for an event's start time to filter by. Optional. The default is not to filter by start time.
- q: string, Free text search terms to find events that match these terms in any field, except for extended properties. Optional.
- timeZone: string, Time zone used in the response. Optional. The default is the time zone of the calendar.
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.freebusy.html b/docs/dyn/calendar_v3.freebusy.html
deleted file mode 100644
index fcedb03..0000000
--- a/docs/dyn/calendar_v3.freebusy.html
+++ /dev/null
@@ -1,150 +0,0 @@
-
-
-
-
Returns free/busy information for a set of calendars.
-
Method Details
-
- query(body)
-
Returns free/busy information for a set of calendars.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "calendarExpansionMax": 42, # Maximal number of calendars for which FreeBusy information is to be provided. Optional.
- "groupExpansionMax": 42, # Maximal number of calendar identifiers to be provided for a single group. Optional. An error will be returned for a group with more members than this value.
- "timeMax": "A String", # The end of the interval for the query.
- "items": [ # List of calendars and/or groups to query.
- {
- "id": "A String", # The identifier of a calendar or a group.
- },
- ],
- "timeMin": "A String", # The start of the interval for the query.
- "timeZone": "A String", # Time zone used in the response. Optional. The default is UTC.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "timeMax": "A String", # The end of the interval.
- "kind": "calendar#freeBusy", # Type of the resource ("calendar#freeBusy").
- "calendars": { # List of free/busy information for calendars.
- "a_key": { # Free/busy expansions for a single calendar.
- "busy": [ # List of time ranges during which this calendar should be regarded as busy.
- {
- "start": "A String", # The (inclusive) start of the time period.
- "end": "A String", # The (exclusive) end of the time period.
- },
- ],
- "errors": [ # Optional error(s) (if computation for the calendar failed).
- {
- "domain": "A String", # Domain, or broad category, of the error.
- "reason": "A String", # Specific reason for the error. Some of the possible values are:
- # - "groupTooBig" - The group of users requested is too large for a single query.
- # - "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query.
- # - "notFound" - The requested resource was not found.
- # - "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list.
- },
- ],
- },
- },
- "timeMin": "A String", # The start of the interval.
- "groups": { # Expansion of groups.
- "a_key": { # List of calendars that are members of this group.
- "errors": [ # Optional error(s) (if computation for the group failed).
- {
- "domain": "A String", # Domain, or broad category, of the error.
- "reason": "A String", # Specific reason for the error. Some of the possible values are:
- # - "groupTooBig" - The group of users requested is too large for a single query.
- # - "tooManyCalendarsRequested" - The number of calendars requested is too large for a single query.
- # - "notFound" - The requested resource was not found.
- # - "internalError" - The API service has encountered an internal error. Additional error types may be added in the future, so clients should gracefully handle additional error statuses not included in this list.
- },
- ],
- "calendars": [ # List of calendars' identifiers within a group.
- "A String",
- ],
- },
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/calendar_v3.html b/docs/dyn/calendar_v3.html
deleted file mode 100644
index 1681f9d..0000000
--- a/docs/dyn/calendar_v3.html
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
Returns all user settings for the authenticated user.
-
Method Details
-
- get(setting)
-
Returns a single user setting.
-
-Args:
- setting: string, Name of the user setting. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "calendar#setting", # Type of the resource ("calendar#setting").
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Name of the user setting.
- "value": "A String", # Value of the user setting. The format of the value depends on the ID of the setting.
- }
-
-
-
- list()
-
Returns all user settings for the authenticated user.
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "items": [ # List of user settings.
- {
- "kind": "calendar#setting", # Type of the resource ("calendar#setting").
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Name of the user setting.
- "value": "A String", # Value of the user setting. The format of the value depends on the ID of the setting.
- },
- ],
- "kind": "calendar#settings", # Type of the collection ("calendar#settings").
- "etag": "A String", # Etag of the collection.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/civicinfo_us_v1.elections.html b/docs/dyn/civicinfo_us_v1.elections.html
deleted file mode 100644
index af9b880..0000000
--- a/docs/dyn/civicinfo_us_v1.elections.html
+++ /dev/null
@@ -1,294 +0,0 @@
-
-
-
-
Looks up information relevant to a voter based on the voter's registered address.
-
Method Details
-
- electionQuery()
-
List of available elections to query.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # The list of elections available for this version of the API.
- "kind": "civicinfo#electionsQueryResponse", # The kind, fixed to "civicinfo#electionsQueryResponse".
- "elections": [ # A list of available elections
- { # Information about the election that was queried.
- "electionDay": "A String", # Day of the election in YYYY-MM-DD format.
- "id": "A String", # The unique ID of this election.
- "name": "A String", # A displayable name for the election.
- },
- ],
- }
Looks up information relevant to a voter based on the voter's registered address.
-
-Args:
- electionId: string, The unique ID of the election to look up. A list of election IDs can be obtained at.https://www.googleapis.com/civicinfo/{version}/elections (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A request for information about a voter.
- "address": "A String", # The registered address of the voter to look up.
- }
-
- officialOnly: boolean, If set to true, only data from official state sources will be returned.
-
-Returns:
- An object of the form:
-
- { # The result of a voter info lookup query.
- "status": "A String", # The result of the request. One of: success, noStreetSegmentFound, addressUnparseable, noAddressParameter, multipleStreetSegmentsFound, electionOver, electionUnknown, internalLookupFailure
- "earlyVoteSites": [ # Locations where the voter is eligible to vote early, prior to election day
- { # A location where a voter can vote. This may be an early vote site or an election day voting location.
- "startDate": "A String", # The first date that this early vote site may be used. This field is not populated for polling locations.
- "pollingHours": "A String", # A description of when this location is open.
- "endDate": "A String", # The last date that this early vote site may be used. This field is not populated for polling locations.
- "name": "A String", # The name of the early vote site. This field is not populated for polling locations.
- "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use)
- "voterServices": "A String", # The services provided by this early vote site. This field is not populated for polling locations.
- "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources.
- { # Contains information about the data source for the element containing it.
- "official": True or False, # Whether this data comes from an official government source.
- "name": "A String", # The name of the data source.
- },
- ],
- "address": { # A simple representation of an address. # The address of the location
- "city": "A String", # The city or town for the address.
- "zip": "A String", # The US Postal Zip Code of the address.
- "line3": "A String", # The third line of the address, if needed.
- "line2": "A String", # The second line the address, if needed.
- "line1": "A String", # The street name and number of this address.
- "locationName": "A String", # The name of the location.
- "state": "A String", # The US two letter state abbreviation of the address.
- },
- "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.
- },
- ],
- "kind": "civicinfo#voterInfoResponse", # The kind, fixed to "civicinfo#voterInfoResponse".
- "normalizedInput": { # A simple representation of an address. # The normalized version of the requested address
- "city": "A String", # The city or town for the address.
- "zip": "A String", # The US Postal Zip Code of the address.
- "line3": "A String", # The third line of the address, if needed.
- "line2": "A String", # The second line the address, if needed.
- "line1": "A String", # The street name and number of this address.
- "locationName": "A String", # The name of the location.
- "state": "A String", # The US two letter state abbreviation of the address.
- },
- "state": [ # Local Election Information for the state that the voter votes in. For the US, there will only be one element in this array.
- { # Describes information about a regional election administrative area.
- "local_jurisdiction": # Object with schema name: AdministrationRegion # The city or county that provides election information for this voter. This object can have the same elements as state.
- "sources": [ # A list of sources for this area. If multiple sources are listed the data has been aggregated from those sources.
- { # Contains information about the data source for the element containing it.
- "official": True or False, # Whether this data comes from an official government source.
- "name": "A String", # The name of the data source.
- },
- ],
- "electionAdministrationBody": { # Information about an election administrative body (e.g. County Board of Elections). # The election administration body for this area.
- "absenteeVotingInfoUrl": "A String", # A URL provided by this administrative body for information on absentee voting.
- "votingLocationFinderUrl": "A String", # A URL provided by this administrative body for looking up where to vote.
- "name": "A String", # The name of this election administrative body.
- "electionRegistrationConfirmationUrl": "A String", # A URL provided by this administrative body for confirming that the voter is registered to vote.
- "correspondenceAddress": { # A simple representation of an address. # The mailing address of this administrative body.
- "city": "A String", # The city or town for the address.
- "zip": "A String", # The US Postal Zip Code of the address.
- "line3": "A String", # The third line of the address, if needed.
- "line2": "A String", # The second line the address, if needed.
- "line1": "A String", # The street name and number of this address.
- "locationName": "A String", # The name of the location.
- "state": "A String", # The US two letter state abbreviation of the address.
- },
- "electionRegistrationUrl": "A String", # A URL provided by this administrative body for looking up how to register to vote.
- "electionOfficials": [ # The election officials for this election administrative body.
- { # Information about individual election officials.
- "title": "A String", # The title of the election official.
- "emailAddress": "A String", # The email address of the election official.
- "name": "A String", # The full name of the election official.
- "officePhoneNumber": "A String", # The office phone number of the election official.
- "faxNumber": "A String", # The fax number of the election official.
- },
- ],
- "electionInfoUrl": "A String", # A URL provided by this administrative body for looking up general election information.
- "electionRulesUrl": "A String", # A URL provided by this administrative body describing election rules to the voter.
- "voter_services": [ # A description of the services this administrative body may provide.
- "A String",
- ],
- "ballotInfoUrl": "A String", # A URL provided by this administrative body to give contest information to the voter.
- "hoursOfOperation": "A String", # A description of the hours of operation for this administrative body.
- "physicalAddress": { # A simple representation of an address. # The physical address of this administrative body.
- "city": "A String", # The city or town for the address.
- "zip": "A String", # The US Postal Zip Code of the address.
- "line3": "A String", # The third line of the address, if needed.
- "line2": "A String", # The second line the address, if needed.
- "line1": "A String", # The street name and number of this address.
- "locationName": "A String", # The name of the location.
- "state": "A String", # The US two letter state abbreviation of the address.
- },
- },
- "name": "A String", # The name of the jurisdiction.
- "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.
- },
- ],
- "election": { # Information about the election that was queried. # The election that was queried.
- "electionDay": "A String", # Day of the election in YYYY-MM-DD format.
- "id": "A String", # The unique ID of this election.
- "name": "A String", # A displayable name for the election.
- },
- "pollingLocations": [ # Locations where the voter is eligible to vote on election day. For states with mail-in voting only, these locations will be nearby drop box locations. Drop box locations are free to the voter and may be used instead of placing the ballot in the mail.
- { # A location where a voter can vote. This may be an early vote site or an election day voting location.
- "startDate": "A String", # The first date that this early vote site may be used. This field is not populated for polling locations.
- "pollingHours": "A String", # A description of when this location is open.
- "endDate": "A String", # The last date that this early vote site may be used. This field is not populated for polling locations.
- "name": "A String", # The name of the early vote site. This field is not populated for polling locations.
- "notes": "A String", # Notes about this location (e.g. accessibility ramp or entrance to use)
- "voterServices": "A String", # The services provided by this early vote site. This field is not populated for polling locations.
- "sources": [ # A list of sources for this location. If multiple sources are listed the data has been aggregated from those sources.
- { # Contains information about the data source for the element containing it.
- "official": True or False, # Whether this data comes from an official government source.
- "name": "A String", # The name of the data source.
- },
- ],
- "address": { # A simple representation of an address. # The address of the location
- "city": "A String", # The city or town for the address.
- "zip": "A String", # The US Postal Zip Code of the address.
- "line3": "A String", # The third line of the address, if needed.
- "line2": "A String", # The second line the address, if needed.
- "line1": "A String", # The street name and number of this address.
- "locationName": "A String", # The name of the location.
- "state": "A String", # The US two letter state abbreviation of the address.
- },
- "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.
- },
- ],
- "contests": [ # Contests that will appear on the voter's ballot
- { # Information about a contest that appears on a voter's ballot.
- "numberVotingFor": "A String", # The number of candidates that a voter may vote for in this contest.
- "office": "A String", # The name of the office for this contest.
- "district": { # Describes the geographic scope of a contest. # Information about the electoral district that this contest is in.
- "scope": "A String", # The geographic scope of this district. If unspecified the district's geography is not known. One of: national, statewide, congressional, stateUpper, stateLower, countywide, judicial, schoolBoard, cityWide, township, countyCouncil, cityCouncil, ward, special
- "id": "A String", # An identifier for this district, relative to its scope. For example, the 34th State Senate district would have id "34" and a scope of stateUpper.
- "name": "A String", # The name of the district.
- },
- "level": "A String", # The level of office for this contest. One of: federal, state, county, city, other
- "type": "A String", # The type of contest. Usually this will be 'General', 'Primary', or 'Run-off' for contests with candidates. For referenda this will be 'Referendum'.
- "ballotPlacement": "A String", # A number specifying the position of this contest on the voter's ballot.
- "sources": [ # A list of sources for this contest. If multiple sources are listed, the data has been aggregated from those sources.
- { # Contains information about the data source for the element containing it.
- "official": True or False, # Whether this data comes from an official government source.
- "name": "A String", # The name of the data source.
- },
- ],
- "referendumSubtitle": "A String", # A brief description of the referendum. This field is only populated for contests of type 'Referendum'.
- "primaryParty": "A String", # If this is a partisan election, the name of the party it is for.
- "candidates": [ # The candidate choices for this contest.
- { # Information about a candidate running for elected office.
- "name": "A String", # The candidate's name.
- "photoUrl": "A String", # A URL for a photo of the candidate.
- "candidateUrl": "A String", # The URL for the candidate's campaign web site.
- "channels": [ # A list of known (social) media channels for this candidate.
- { # A social media or web channel for a candidate.
- "type": "A String", # The type of channel. The following is a list of types of channels, but is not exhaustive. More channel types may be added at a later time. One of: GooglePlus, YouTube, Facebook, Twitter
- "id": "A String", # The unique public identifier for the candidate's channel.
- },
- ],
- "phone": "A String", # The voice phone number for the candidate's campaign office.
- "orderOnBallot": "A String", # The order the candidate appears on the ballot for this contest.
- "party": "A String", # The full name of the party the candidate is a member of.
- "email": "A String", # The email address for the candidate's campaign.
- },
- ],
- "numberElected": "A String", # The number of candidates that will be elected to office in this contest.
- "referendumUrl": "A String", # A link to the referendum. This field is only populated for contests of type 'Referendum'.
- "electorateSpecifications": "A String", # A description of any additional eligibility requirements for voting in this contest.
- "referendumTitle": "A String", # The title of the referendum (e.g. 'Proposition 42'). This field is only populated for contests of type 'Referendum'.
- "id": "A String", # An ID for this object. IDs may change in future requests and should not be cached. Access to this field requires special access that can be requested from the Request more link on the Quotas page.
- "special": "A String", # "Yes" or "No" depending on whether this a contest being held outside the normal election cycle.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/civicinfo_us_v1.html b/docs/dyn/civicinfo_us_v1.html
deleted file mode 100644
index c970005..0000000
--- a/docs/dyn/civicinfo_us_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Deletes the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- disk: string, Name of the persistent disk resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, disk)
-
Returns the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- disk: string, Name of the persistent disk resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a persistent disk resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent disk resources.
- {
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#diskList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.firewalls.html b/docs/dyn/compute_v1beta12.firewalls.html
deleted file mode 100644
index 7620760..0000000
--- a/docs/dyn/compute_v1beta12.firewalls.html
+++ /dev/null
@@ -1,463 +0,0 @@
-
-
-
-
Updates the specified firewall resource with the data included in the request.
-
Method Details
-
- delete(project, firewall)
-
Deletes the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, firewall)
-
Returns the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a firewall resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of firewall resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The firewall resources.
- {
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#firewallList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request. This method supports patch semantics.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- update(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.html b/docs/dyn/compute_v1beta12.html
deleted file mode 100644
index 7e6583c..0000000
--- a/docs/dyn/compute_v1beta12.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
Deletes the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, image)
-
Returns the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates an image resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of image resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The disk image resources.
- {
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#imageList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.instances.html b/docs/dyn/compute_v1beta12.instances.html
deleted file mode 100644
index d6ecd92..0000000
--- a/docs/dyn/compute_v1beta12.instances.html
+++ /dev/null
@@ -1,516 +0,0 @@
-
-
-
-
Adds an access config to an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- instance: string, Instance name. (required)
- network_interface: string, Network interface name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If left blank, the external IP will be drawn from a shared ephemeral pool.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- delete(project, instance)
-
Deletes the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- instance: string, Name of the instance resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Deletes an access config from an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- instance: string, Instance name. (required)
- access_config: string, Access config name. (required)
- network_interface: string, Network interface name. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, instance)
-
Returns the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- instance: string, Name of the instance resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If left blank, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- }
-
-
-
- insert(project, body)
-
Creates an instance resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If left blank, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of instance resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # A list of instance resources.
- {
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If left blank, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- },
- ],
- "kind": "compute#instanceList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.kernels.html b/docs/dyn/compute_v1beta12.kernels.html
deleted file mode 100644
index 882347b..0000000
--- a/docs/dyn/compute_v1beta12.kernels.html
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
-
Returns the specified kernel resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- kernel: string, Name of the kernel resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of kernel resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The kernel resources.
- {
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#kernelList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.machineTypes.html b/docs/dyn/compute_v1beta12.machineTypes.html
deleted file mode 100644
index 72875ef..0000000
--- a/docs/dyn/compute_v1beta12.machineTypes.html
+++ /dev/null
@@ -1,181 +0,0 @@
-
-
-
-
Returns the specified machine type resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- machineType: string, Name of the machine type resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "name": "A String", # Name of the resource.
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "hostCpus": 42, # Count of physical CPUs reserved on the virtual machine host. Deprecated.
- }
Retrieves the list of machine type resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The machine type resources.
- {
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "name": "A String", # Name of the resource.
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "hostCpus": 42, # Count of physical CPUs reserved on the virtual machine host. Deprecated.
- },
- ],
- "kind": "compute#machineTypeList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.networks.html b/docs/dyn/compute_v1beta12.networks.html
deleted file mode 100644
index e53a539..0000000
--- a/docs/dyn/compute_v1beta12.networks.html
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
Deletes the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, network)
-
Returns the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a network resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of network resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The network resources.
- {
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#networkList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.operations.html b/docs/dyn/compute_v1beta12.operations.html
deleted file mode 100644
index d1e03c2..0000000
--- a/docs/dyn/compute_v1beta12.operations.html
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
Deletes the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, operation)
-
Retrieves the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.projects.html b/docs/dyn/compute_v1beta12.projects.html
deleted file mode 100644
index 9ee9619..0000000
--- a/docs/dyn/compute_v1beta12.projects.html
+++ /dev/null
@@ -1,145 +0,0 @@
-
-
-
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
Method Details
-
- get(project)
-
Returns the specified project resource.
-
-Args:
- project: string, Name of the project resource to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#project", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "commonInstanceMetadata": { # Metadata key/value pairs available to all instances contained in this project.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- "externalIpAddresses": [ # Internet available IP addresses available for use in this project.
- "A String",
- ],
- "quotas": [ # Quotas assigned to this project.
- {
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
-
-
-
- setCommonInstanceMetadata(project, body)
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 15000 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must be unique.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
-}
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.snapshots.html b/docs/dyn/compute_v1beta12.snapshots.html
deleted file mode 100644
index db3e417..0000000
--- a/docs/dyn/compute_v1beta12.snapshots.html
+++ /dev/null
@@ -1,266 +0,0 @@
-
-
-
-
Deletes the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, snapshot)
-
Returns the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a persistent disk snapshot resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk snapshot resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent snapshot resources.
- {
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#snapshotList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta12.zones.html b/docs/dyn/compute_v1beta12.zones.html
deleted file mode 100644
index 0e13d05..0000000
--- a/docs/dyn/compute_v1beta12.zones.html
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
Returns the specified zone resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of zone resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The zone resources.
- {
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#zoneList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.disks.html b/docs/dyn/compute_v1beta13.disks.html
deleted file mode 100644
index fe02715..0000000
--- a/docs/dyn/compute_v1beta13.disks.html
+++ /dev/null
@@ -1,272 +0,0 @@
-
-
-
-
Deletes the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- disk: string, Name of the persistent disk resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, disk)
-
Returns the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- disk: string, Name of the persistent disk resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a persistent disk resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent disk resources.
- {
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL for the zone where the persistent disk resides; provided by the client when the disk is created. A persistent disk must reside in the same zone as the instance to which it is attached.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#diskList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.firewalls.html b/docs/dyn/compute_v1beta13.firewalls.html
deleted file mode 100644
index efc64e9..0000000
--- a/docs/dyn/compute_v1beta13.firewalls.html
+++ /dev/null
@@ -1,463 +0,0 @@
-
-
-
-
Updates the specified firewall resource with the data included in the request.
-
Method Details
-
- delete(project, firewall)
-
Deletes the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, firewall)
-
Returns the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a firewall resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of firewall resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The firewall resources.
- {
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#firewallList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request. This method supports patch semantics.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- update(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80,"443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.html b/docs/dyn/compute_v1beta13.html
deleted file mode 100644
index 709b17a..0000000
--- a/docs/dyn/compute_v1beta13.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
Deletes the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, image)
-
Returns the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates an image resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of image resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The disk image resources.
- {
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "diskSnapshot": { # Not yet implemented.
- "source": "A String", # URL of the disk snapshot.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#imageList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.instances.html b/docs/dyn/compute_v1beta13.instances.html
deleted file mode 100644
index 69782a2..0000000
--- a/docs/dyn/compute_v1beta13.instances.html
+++ /dev/null
@@ -1,537 +0,0 @@
-
-
-
-
Adds an access config to an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- instance: string, Instance name. (required)
- network_interface: string, Network interface name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- delete(project, instance)
-
Deletes the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- instance: string, Name of the instance resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Deletes an access config from an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- instance: string, Instance name. (required)
- access_config: string, Access config name. (required)
- network_interface: string, Network interface name. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, instance)
-
Returns the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- instance: string, Name of the instance resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPED", "TERMINATED", and "STOPPING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- }
-
-
-
- getSerialPortOutput(project, instance)
-
Returns the specified instance's serial port output.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
-
-Returns:
- An object of the form:
-
- { # An instance serial console output.
- "kind": "compute#serialPortOutput", # Type of the resource.
- "selfLink": "A String", # Server defined URL for the resource.
- "contents": "A String", # The contents of the console output.
- }
-
-
-
- insert(project, body)
-
Creates an instance resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPED", "TERMINATED", and "STOPPING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
-}
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of instance resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # A list of instance resources.
- {
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPED", "TERMINATED", and "STOPPING" (output only).
- "kind": "compute#instance", # Type of the resource.
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone resource describing where this instance should be hosted; provided by the client when the instance is created.
- "tags": [ # An optional set of tags applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client when the instance is created. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "image": "A String", # An optional URL of the disk image resource to be to be installed on this instance; provided by the client when the instance is created. If not specified, the server will choose a default image.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- {
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "deleteOnTerminate": True or False, # Persistent disk only; If true, delete the disk and all its data when the associated instance is deleted. This property defaults to false if not specified.
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- {
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "kind": "compute#serviceAccount", # Type of the resource.
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "network": "A String", # URL of the network resource attached to this interface.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- {
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to this instance. If not specified, one will be assigned from the available range.
- "kind": "compute#networkInterface", # Type of the resource.
- "name": "A String", # Name of the resource, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- },
- ],
- "kind": "compute#instanceList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.kernels.html b/docs/dyn/compute_v1beta13.kernels.html
deleted file mode 100644
index 705c8c2..0000000
--- a/docs/dyn/compute_v1beta13.kernels.html
+++ /dev/null
@@ -1,153 +0,0 @@
-
-
-
-
Returns the specified kernel resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- kernel: string, Name of the kernel resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of kernel resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The kernel resources.
- {
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#kernelList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.machineTypes.html b/docs/dyn/compute_v1beta13.machineTypes.html
deleted file mode 100644
index 7ca9042..0000000
--- a/docs/dyn/compute_v1beta13.machineTypes.html
+++ /dev/null
@@ -1,179 +0,0 @@
-
-
-
-
Returns the specified machine type resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- machineType: string, Name of the machine type resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of machine type resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The machine type resources.
- {
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#machineTypeList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.networks.html b/docs/dyn/compute_v1beta13.networks.html
deleted file mode 100644
index 18ba234..0000000
--- a/docs/dyn/compute_v1beta13.networks.html
+++ /dev/null
@@ -1,260 +0,0 @@
-
-
-
-
Deletes the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, network)
-
Returns the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a network resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of network resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The network resources.
- {
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#networkList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.operations.html b/docs/dyn/compute_v1beta13.operations.html
deleted file mode 100644
index b76e938..0000000
--- a/docs/dyn/compute_v1beta13.operations.html
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
Deletes the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, operation)
-
Retrieves the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.projects.html b/docs/dyn/compute_v1beta13.projects.html
deleted file mode 100644
index 2def9ff..0000000
--- a/docs/dyn/compute_v1beta13.projects.html
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
Method Details
-
- get(project)
-
Returns the specified project resource.
-
-Args:
- project: string, Name of the project resource to retrieve. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "compute#project", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "commonInstanceMetadata": { # Metadata key/value pairs available to all instances contained in this project.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- },
- "externalIpAddresses": [ # Internet available IP addresses available for use in this project.
- "A String",
- ],
- "quotas": [ # Quotas assigned to this project.
- {
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
-
-
-
- setCommonInstanceMetadata(project, body)
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.snapshots.html b/docs/dyn/compute_v1beta13.snapshots.html
deleted file mode 100644
index 4164b48..0000000
--- a/docs/dyn/compute_v1beta13.snapshots.html
+++ /dev/null
@@ -1,266 +0,0 @@
-
-
-
-
Deletes the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to delete. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, snapshot)
-
Returns the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a persistent disk snapshot resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource.
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk snapshot resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent snapshot resources.
- {
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#snapshotList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta13.zones.html b/docs/dyn/compute_v1beta13.zones.html
deleted file mode 100644
index 8945826..0000000
--- a/docs/dyn/compute_v1beta13.zones.html
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
Returns the specified zone resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone resource to return. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "A String",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of zone resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The zone resources.
- {
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "A String",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#zoneList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.disks.html b/docs/dyn/compute_v1beta14.disks.html
deleted file mode 100644
index 8481565..0000000
--- a/docs/dyn/compute_v1beta14.disks.html
+++ /dev/null
@@ -1,303 +0,0 @@
-
-
-
-
Deletes the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- disk: string, Name of the persistent disk resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, zone, disk)
-
Returns the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- disk: string, Name of the persistent disk resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, zone, body, sourceImage=None)
-
Creates a persistent disk resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
- sourceImage: string, Optional. Source image to restore onto a disk.
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of persistent disk resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent disk resources.
- { # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#diskList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.firewalls.html b/docs/dyn/compute_v1beta14.firewalls.html
deleted file mode 100644
index cc78cc4..0000000
--- a/docs/dyn/compute_v1beta14.firewalls.html
+++ /dev/null
@@ -1,515 +0,0 @@
-
-
-
-
Updates the specified firewall resource with the data included in the request.
-
Method Details
-
- delete(project, firewall)
-
Deletes the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, firewall)
-
Returns the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a firewall resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of firewall resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of firewall resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The firewall resources.
- { # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#firewallList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request. This method supports patch semantics.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- update(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.globalOperations.html b/docs/dyn/compute_v1beta14.globalOperations.html
deleted file mode 100644
index 25f356c..0000000
--- a/docs/dyn/compute_v1beta14.globalOperations.html
+++ /dev/null
@@ -1,234 +0,0 @@
-
-
-
-
Deletes the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, operation)
-
Retrieves the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of operation resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.html b/docs/dyn/compute_v1beta14.html
deleted file mode 100644
index 12615b7..0000000
--- a/docs/dyn/compute_v1beta14.html
+++ /dev/null
@@ -1,137 +0,0 @@
-
-
-
-
Deletes the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- deprecate(project, image, body)
-
Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Image name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Deprecation status for a public resource.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, image)
-
Returns the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A disk image resource.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates an image resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A disk image resource.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of image resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of disk image resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The disk image resources.
- { # A disk image resource.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#imageList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.instances.html b/docs/dyn/compute_v1beta14.instances.html
deleted file mode 100644
index 9542441..0000000
--- a/docs/dyn/compute_v1beta14.instances.html
+++ /dev/null
@@ -1,882 +0,0 @@
-
-
-
-
Adds an access config to an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- network_interface: string, Network interface name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- attachDisk(project, zone, instance, body)
-
Attaches a disk resource to an instance.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- delete(project, zone, instance)
-
Deletes the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Deletes an access config from an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- access_config: string, Access config name. (required)
- network_interface: string, Network interface name. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Detaches a disk from an instance.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- deviceName: string, Disk device name to detach. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, zone, instance)
-
Returns the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Reserved for future use.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface. If not specified, one will be assigned from the available range.
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- }
-
-
-
- getSerialPortOutput(project, zone, instance)
-
Returns the specified instance's serial port output.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
-
-Returns:
- An object of the form:
-
- { # An instance serial console output.
- "kind": "compute#serialPortOutput", # Type of the resource.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "contents": "A String", # The contents of the console output.
- }
-
-
-
- insert(project, zone, body)
-
Creates an instance resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Reserved for future use.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface. If not specified, one will be assigned from the available range.
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of instance resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of instance resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # A list of instance resources.
- { # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Reserved for future use.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value.
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "EPHEMERAL" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address to assign to the instance for this network interface. If not specified, one will be assigned from the available range.
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- },
- ],
- "kind": "compute#instanceList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- setMetadata(project, zone, instance, body)
-
Sets metadata for the specified instance to the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A metadata key/value entry.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- setTags(project, zone, instance, body)
-
Sets tags for the specified instance to the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A set of instance tags.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.kernels.html b/docs/dyn/compute_v1beta14.kernels.html
deleted file mode 100644
index b76f817..0000000
--- a/docs/dyn/compute_v1beta14.kernels.html
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
-
Returns the specified kernel resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- kernel: string, Name of the kernel resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A kernel resource.
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this kernel.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of kernel resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of kernel resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The kernel resources.
- { # A kernel resource.
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this kernel.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#kernelList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.machineTypes.html b/docs/dyn/compute_v1beta14.machineTypes.html
deleted file mode 100644
index 91c7d6c..0000000
--- a/docs/dyn/compute_v1beta14.machineTypes.html
+++ /dev/null
@@ -1,193 +0,0 @@
-
-
-
-
Returns the specified machine type resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- machineType: string, Name of the machine type resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A machine type resource.
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this machine type.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of machine type resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of machine type resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The machine type resources.
- { # A machine type resource.
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "ephemeralDisks": [ # List of extended ephemeral disks assigned to the instance.
- {
- "diskGb": 42, # Size of the ephemeral disk, defined in GB.
- },
- ],
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this machine type.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "availableZone": [ # The zones that this machine type can run in.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#machineTypeList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.networks.html b/docs/dyn/compute_v1beta14.networks.html
deleted file mode 100644
index 4f652ed..0000000
--- a/docs/dyn/compute_v1beta14.networks.html
+++ /dev/null
@@ -1,286 +0,0 @@
-
-
-
-
Deletes the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, network)
-
Returns the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a network resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of network resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of network resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The network resources.
- { # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#networkList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.projects.html b/docs/dyn/compute_v1beta14.projects.html
deleted file mode 100644
index 2944cba..0000000
--- a/docs/dyn/compute_v1beta14.projects.html
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
Method Details
-
- get(project)
-
Returns the specified project resource.
-
-Args:
- project: string, Name of the project resource to retrieve. (required)
-
-Returns:
- An object of the form:
-
- { # A project resource. Projects can be created only in the APIs Console. Unless marked otherwise, values can only be modified in the console.
- "kind": "compute#project", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "commonInstanceMetadata": { # A metadata key/value entry. # Metadata key/value pairs available to all instances contained in this project.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- "externalIpAddresses": [ # Internet available IP addresses available for use in this project.
- "A String",
- ],
- "quotas": [ # Quotas assigned to this project.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
-
-
-
- setCommonInstanceMetadata(project, body)
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A metadata key/value entry.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.snapshots.html b/docs/dyn/compute_v1beta14.snapshots.html
deleted file mode 100644
index e140952..0000000
--- a/docs/dyn/compute_v1beta14.snapshots.html
+++ /dev/null
@@ -1,292 +0,0 @@
-
-
-
-
Deletes the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, snapshot)
-
Returns the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a persistent disk snapshot resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk snapshot resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of persistent disk snapshot resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent snapshot resources.
- { # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created.
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#snapshotList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.zoneOperations.html b/docs/dyn/compute_v1beta14.zoneOperations.html
deleted file mode 100644
index 6609793..0000000
--- a/docs/dyn/compute_v1beta14.zoneOperations.html
+++ /dev/null
@@ -1,237 +0,0 @@
-
-
-
-
Deletes the specified zone-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, zone, operation)
-
Retrieves the specified zone-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of operation resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- { # An operation resource, used to manage asynchronous API requests.
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta14.zones.html b/docs/dyn/compute_v1beta14.zones.html
deleted file mode 100644
index 7e46c27..0000000
--- a/docs/dyn/compute_v1beta14.zones.html
+++ /dev/null
@@ -1,205 +0,0 @@
-
-
-
-
Returns the specified zone resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A zone resource.
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "A String",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this zone.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "quotas": [ # Quotas assigned to this zone.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of zone resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of zone resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The zone resources.
- { # A zone resource.
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "availableMachineType": [ # The machine types that can be used in this zone (output only).
- "A String",
- ],
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this zone.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "quotas": [ # Quotas assigned to this zone.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#zoneList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.addresses.html b/docs/dyn/compute_v1beta15.addresses.html
deleted file mode 100644
index 0eacb0b..0000000
--- a/docs/dyn/compute_v1beta15.addresses.html
+++ /dev/null
@@ -1,367 +0,0 @@
-
-
-
-
Retrieves the list of addresses grouped by scope.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": { # A map of scoped address lists.
- "a_key": { # Name of the scope containing this set of addresses.
- "warning": { # Informational warning which replaces the list of addresses when the list is empty.
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- "addresses": [ # List of addresses contained in this scope.
- { # A reserved address resource.
- "status": "A String", # The status of the address (output only).
- "kind": "compute#address", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "region": "A String", # URL of the region where the address resides (output only).
- "user": "A String", # URL of the resource currently using this address (output only).
- "address": "A String", # The IP address represented by this resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- },
- },
- "kind": "compute#addressAggregatedList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- delete(project, region, address)
-
Deletes the specified address resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- address: string, Name of the address resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, region, address)
-
Returns the specified address resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- address: string, Name of the address resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A reserved address resource.
- "status": "A String", # The status of the address (output only).
- "kind": "compute#address", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "region": "A String", # URL of the region where the address resides (output only).
- "user": "A String", # URL of the resource currently using this address (output only).
- "address": "A String", # The IP address represented by this resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, region, body)
-
Creates an address resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A reserved address resource.
- "status": "A String", # The status of the address (output only).
- "kind": "compute#address", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "region": "A String", # URL of the region where the address resides (output only).
- "user": "A String", # URL of the resource currently using this address (output only).
- "address": "A String", # The IP address represented by this resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of address resources contained within the specified region.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of address resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The address resources.
- { # A reserved address resource.
- "status": "A String", # The status of the address (output only).
- "kind": "compute#address", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "region": "A String", # URL of the region where the address resides (output only).
- "user": "A String", # URL of the resource currently using this address (output only).
- "address": "A String", # The IP address represented by this resource.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#addressList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.disks.html b/docs/dyn/compute_v1beta15.disks.html
deleted file mode 100644
index 47cb29c..0000000
--- a/docs/dyn/compute_v1beta15.disks.html
+++ /dev/null
@@ -1,452 +0,0 @@
-
-
-
-
Retrieves the list of disks grouped by scope.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": { # A map of scoped disk lists.
- "a_key": { # Name of the scope containing this set of disks.
- "disks": [ # List of disks contained in this scope.
- { # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "warning": { # Informational warning which replaces the list of disks when the list is empty.
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- },
- },
- "kind": "compute#diskAggregatedList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- createSnapshot(project, zone, disk, body)
-
A description of how to use this function
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- disk: string, Name of the persistent disk resource to delete. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created (output only).
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- delete(project, zone, disk)
-
Deletes the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- disk: string, Name of the persistent disk resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, zone, disk)
-
Returns the specified persistent disk resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- disk: string, Name of the persistent disk resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, zone, body, sourceImage=None)
-
Creates a persistent disk resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
- sourceImage: string, Optional. Source image to restore onto a disk.
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of persistent disk resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of persistent disk resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent disk resources.
- { # A persistent disk resource.
- "status": "A String", # The status of disk creation (output only).
- "sourceSnapshot": "A String", # The source snapshot used to create this disk. Once the source snapshot has been deleted from the system, this field will be cleared, and will not be set even if a snapshot with the same name has been re-created.
- "kind": "compute#disk", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sizeGb": "A String", # Size of the persistent disk, specified in GB. This parameter is optional when creating a disk from a disk image or a snapshot, otherwise it is required.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "sourceSnapshotId": "A String", # The 'id' value of the snapshot used to create this disk. This value may be used to determine whether the disk was created from the current or a previous instance of a given disk snapshot.
- "zone": "A String", # URL of the zone where the disk resides (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "options": "A String", # Internal use only.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#diskList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.firewalls.html b/docs/dyn/compute_v1beta15.firewalls.html
deleted file mode 100644
index 678a63f..0000000
--- a/docs/dyn/compute_v1beta15.firewalls.html
+++ /dev/null
@@ -1,524 +0,0 @@
-
-
-
-
Updates the specified firewall resource with the data included in the request.
-
Method Details
-
- delete(project, firewall)
-
Deletes the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, firewall)
-
Returns the specified firewall resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- #
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a firewall resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- #
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of firewall resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of firewall resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The firewall resources.
- { # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- #
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#firewallList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request. This method supports patch semantics.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- #
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- update(project, firewall, body)
-
Updates the specified firewall resource with the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- firewall: string, Name of the firewall resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A firewall resource.
- "kind": "compute#firewall", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceTags": [ # A list of instance tags which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "sourceRanges": [ # A list of IP address blocks expressed in CIDR format which this rule applies to. One or both of sourceRanges and sourceTags may be set; an inbound connection is allowed if either the range or the tag of the source matches.
- "A String",
- ],
- "network": "A String", # URL of the network to which this firewall is applied; provided by the client when the firewall is created.
- "targetTags": [ # A list of instance tags indicating sets of instances located on network which may make network connections as specified in allowed. If no targetTags are specified, the firewall rule applies to all instances on the specified network.
- "A String",
- ],
- "allowed": [ # The list of rules specified by this firewall. Each rule specifies a protocol and port-range tuple that describes a permitted connection.
- {
- "IPProtocol": "A String", # Required; this is the IP protocol that is allowed for this rule. This can either be a well known protocol string (tcp, udp or icmp) or the IP protocol number.
- "ports": [ # An optional list of ports which are allowed. It is an error to specify this for any protocol that isn't UDP or TCP. Each entry must be either an integer or a range. If not specified, connections through any port are allowed.
- #
- # Example inputs include: ["22"], ["80","443"] and ["12345-12349"].
- "A String",
- ],
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.globalOperations.html b/docs/dyn/compute_v1beta15.globalOperations.html
deleted file mode 100644
index b647562..0000000
--- a/docs/dyn/compute_v1beta15.globalOperations.html
+++ /dev/null
@@ -1,336 +0,0 @@
-
-
-
-
Retrieves the list of all operations grouped by scope.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": { # A map of scoped operation lists.
- "a_key": { # Name of the scope containing this set of operations.
- "operations": [ # List of operations contained in this scope.
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "warning": { # Informational warning which replaces the list of operations when the list is empty.
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- },
- },
- "kind": "compute#operationAggregatedList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- delete(project, operation)
-
Deletes the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, operation)
-
Retrieves the specified operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of operation resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.html b/docs/dyn/compute_v1beta15.html
deleted file mode 100644
index dcf75f8..0000000
--- a/docs/dyn/compute_v1beta15.html
+++ /dev/null
@@ -1,162 +0,0 @@
-
-
-
-
Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.
-
Method Details
-
- patch(project, httpHealthCheck, body)
-
Updates a HttpHealthCheck resource in the specified project using the data included in the request. This method supports patch semantics.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- httpHealthCheck: string, Name of the HttpHealthCheck resource to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An HttpHealthCheck resource. This resource defines a template for how individual VMs should be checked for health, via HTTP.
- "kind": "compute#httpHealthCheck", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "timeoutSec": 42, # How long (in seconds) to wait before claiming failure. The default value is 5 seconds.
- "checkIntervalSec": 42, # How often (in seconds) to send a health check. The default value is 5 seconds.
- "port": 42, # The TCP port number for the HTTP health check request. The default value is 80.
- "healthyThreshold": 42, # A so-far unhealthy VM will be marked healthy after this many consecutive successes. The default value is 2.
- "host": "A String", # The value of the host header in the HTTP health check request. If left empty (default value), the public IP on behalf of which this health check is performed will be used.
- "requestPath": "A String", # The request path of the HTTP health check request. The default value is "/".
- "unhealthyThreshold": 42, # A so-far healthy VM will be marked unhealthy after this many consecutive failures. The default value is 2.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.images.html b/docs/dyn/compute_v1beta15.images.html
deleted file mode 100644
index 13555d5..0000000
--- a/docs/dyn/compute_v1beta15.images.html
+++ /dev/null
@@ -1,397 +0,0 @@
-
-
-
-
Deletes the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- deprecate(project, image, body)
-
Sets the deprecation status of an image. If no message body is given, clears the deprecation status instead.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Image name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Deprecation status for a public resource.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, image)
-
Returns the specified image resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- image: string, Name of the image resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A disk image resource.
- "status": "A String", # Status of the image (output only). It will be one of the following READY - after image has been successfully created and is ready for use FAILED - if creating the image fails for some reason PENDING - the image creation is in progress An image can be used to create other resources suck as instances only after the image has been successfully created and the status is set to READY.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates an image resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A disk image resource.
- "status": "A String", # Status of the image (output only). It will be one of the following READY - after image has been successfully created and is ready for use FAILED - if creating the image fails for some reason PENDING - the image creation is in progress An image can be used to create other resources suck as instances only after the image has been successfully created and the status is set to READY.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of image resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of disk image resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The disk image resources.
- { # A disk image resource.
- "status": "A String", # Status of the image (output only). It will be one of the following READY - after image has been successfully created and is ready for use FAILED - if creating the image fails for some reason PENDING - the image creation is in progress An image can be used to create other resources suck as instances only after the image has been successfully created and the status is set to READY.
- "kind": "compute#image", # Type of the resource.
- "description": "A String", # Textual description of the resource; provided by the client when the resource is created.
- "rawDisk": { # The raw disk image parameters.
- "containerType": "TAR", # The format used to encode and transmit the block device. Should be TAR. This is just a container and transmission format and not a runtime format. Provided by the client when the disk image is created.
- "source": "A String", # The full Google Cloud Storage URL where the disk image is stored; provided by the client when the disk image is created.
- "sha1Checksum": "A String", # An optional SHA1 checksum of the disk image before unpackaging; provided by the client when the disk image is created.
- },
- "preferredKernel": "A String", # An optional URL of the preferred kernel for use with this disk image. If not specified, a server defined default kernel will be used.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this image.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "sourceType": "RAW", # Must be "RAW"; provided by the client when the disk image is created.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#imageList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.instances.html b/docs/dyn/compute_v1beta15.instances.html
deleted file mode 100644
index 4a6f91d..0000000
--- a/docs/dyn/compute_v1beta15.instances.html
+++ /dev/null
@@ -1,1072 +0,0 @@
-
-
-
-
Adds an access config to an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- networkInterface: string, Network interface name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
A description of how to use this function
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": { # A map of scoped instance lists.
- "a_key": { # Name of the scope containing this set of instances.
- "instances": [ # List of instances contained in this scope.
- { # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Allows this instance to send packets with source IP addresses other than its own and receive packets with destination IP addresses other than its own. If this instance will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value (output only).
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address assigned to the instance for this network interface (output only).
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- },
- ],
- "warning": { # Informational warning which replaces the list of instances when the list is empty.
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- },
- },
- "kind": "compute#instanceAggregatedList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- attachDisk(project, zone, instance, body)
-
Attaches a disk resource to an instance.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value (output only).
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- delete(project, zone, instance)
-
Deletes the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Deletes an access config from an instance's network interface.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- accessConfig: string, Access config name. (required)
- networkInterface: string, Network interface name. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Detaches a disk from an instance.
-
-Args:
- project: string, Project name. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Instance name. (required)
- deviceName: string, Disk device name to detach. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, zone, instance)
-
Returns the specified instance resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Allows this instance to send packets with source IP addresses other than its own and receive packets with destination IP addresses other than its own. If this instance will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value (output only).
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address assigned to the instance for this network interface (output only).
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- }
-
-
-
- getSerialPortOutput(project, zone, instance)
-
Returns the specified instance's serial port output.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
-
-Returns:
- An object of the form:
-
- { # An instance serial console output.
- "kind": "compute#serialPortOutput", # Type of the resource.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "contents": "A String", # The contents of the console output.
- }
-
-
-
- insert(project, zone, body)
-
Creates an instance resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Allows this instance to send packets with source IP addresses other than its own and receive packets with destination IP addresses other than its own. If this instance will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value (output only).
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address assigned to the instance for this network interface (output only).
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of instance resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of instance resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # A list of instance resources.
- { # An instance resource.
- "status": "A String", # Instance status. One of the following values: "PROVISIONING", "STAGING", "RUNNING", "STOPPING", "STOPPED", "TERMINATED" (output only).
- "kernel": "A String", # URL of the kernel resource to use when booting. In case of booting from persistent disk, this parameter is required. When booting from a disk image, it is optional, but may be provided to use a different kernel than the one associated with the image.
- "kind": "compute#instance", # Type of the resource.
- "canIpForward": True or False, # Allows this instance to send packets with source IP addresses other than its own and receive packets with destination IP addresses other than its own. If this instance will be used as an IP gateway or it will be set as the next-hop in a Route resource, say true. If unsure, leave this set to false.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "zone": "A String", # URL of the zone where the instance resides (output only).
- "tags": { # A set of instance tags. # A list of tags to be applied to this instance. Used to identify valid sources or targets for network firewalls. Provided by the client on instance creation. The tags can be later modified by the setTags method. Each tag within the list must comply with RFC1035.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- },
- "image": "A String", # An optional URL of the disk image resource to be installed on this instance; provided by the client when the instance is created. Alternatively to passing the image, the client may choose to boot from a persistent disk, by setting boot=true flag on one of the entries in disks[] collection.
- "disks": [ # Array of disks associated with this instance. Persistent disks must be created before you can assign them.
- { # An instance-attached disk resource.
- "deviceName": "A String", # Persistent disk only; must be unique within the instance when specified. This represents a unique device name that is reflected into the /dev/ tree of a Linux operating system running within the instance. If not specified, a default will be chosen by the system.
- "kind": "compute#attachedDisk", # Type of the resource.
- "index": 42, # A zero-based index to assign to this disk, where 0 is reserved for the boot disk. If not specified, the server will choose an appropriate value (output only).
- "boot": True or False, # Indicates that this is a boot disk. VM will use the first partition of the disk for its root filesystem.
- "source": "A String", # Persistent disk only; the URL of the persistent disk resource.
- "mode": "A String", # The mode in which to attach this disk, either "READ_WRITE" or "READ_ONLY".
- "type": "A String", # Type of the disk, either "SCRATCH" or "PERSISTENT". Note that persistent disks must be created before you can specify them here.
- },
- ],
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "statusMessage": "A String", # An optional, human-readable explanation of the status (output only).
- "machineType": "A String", # URL of the machine type resource describing which machine type to use to host the instance; provided by the client when the instance is created.
- "serviceAccounts": [ # A list of service accounts each with specified scopes, for which access tokens are to be made available to the instance through metadata queries.
- { # A service account.
- "scopes": [ # The list of scopes to be made available for this service account.
- "A String",
- ],
- "email": "A String", # Email address of the service account.
- },
- ],
- "networkInterfaces": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # A network interface resource attached to an instance.
- "accessConfigs": [ # Array of configurations for this interface. This specifies how this interface is configured to interact with other network services, such as connecting to the internet. Currently, ONE_TO_ONE_NAT is the only access config supported. If there are no accessConfigs specified, then this instance will have no external internet access.
- { # An access configuration attached to an instance's network interface.
- "kind": "compute#accessConfig", # Type of the resource.
- "type": "ONE_TO_ONE_NAT", # Type of configuration. Must be set to "ONE_TO_ONE_NAT". This configures port-for-port NAT to the internet.
- "name": "A String", # Name of this access configuration.
- "natIP": "A String", # An external IP address associated with this instance. Specify an unused static IP address available to the project. If not specified, the external IP will be drawn from a shared ephemeral pool.
- },
- ],
- "networkIP": "A String", # An optional IPV4 internal network address assigned to the instance for this network interface (output only).
- "name": "A String", # Name of the network interface, determined by the server; for network devices, these are e.g. eth0, eth1, etc. (output only).
- "network": "A String", # URL of the network resource attached to this interface.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- "metadata": { # A metadata key/value entry. # Metadata key/value pairs assigned to this instance. Consists of custom metadata or predefined keys; see Instance documentation for more information.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- },
- ],
- "kind": "compute#instanceList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- reset(project, zone, instance)
-
Performs a hard reset on the instance.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- setMetadata(project, zone, instance, body)
-
Sets metadata for the specified instance to the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A metadata key/value entry.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- setTags(project, zone, instance, body)
-
Sets tags for the specified instance to the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- instance: string, Name of the instance scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A set of instance tags.
- "items": [ # An array of tags. Each tag must be 1-63 characters long, and comply with RFC1035.
- "A String",
- ],
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the tags stored in this object. This field is used optimistic locking. An up-to-date tags fingerprint must be provided in order to modify tags.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.kernels.html b/docs/dyn/compute_v1beta15.kernels.html
deleted file mode 100644
index 561f447..0000000
--- a/docs/dyn/compute_v1beta15.kernels.html
+++ /dev/null
@@ -1,167 +0,0 @@
-
-
-
-
Returns the specified kernel resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- kernel: string, Name of the kernel resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A kernel resource.
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this kernel.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of kernel resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of kernel resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The kernel resources.
- { # A kernel resource.
- "kind": "compute#kernel", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this kernel.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#kernelList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.machineTypes.html b/docs/dyn/compute_v1beta15.machineTypes.html
deleted file mode 100644
index 3e89462..0000000
--- a/docs/dyn/compute_v1beta15.machineTypes.html
+++ /dev/null
@@ -1,274 +0,0 @@
-
-
-
-
Retrieves the list of machine type resources grouped by scope.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": { # A map of scoped machine type lists.
- "a_key": { # Name of the scope containing this set of machine types.
- "machineTypes": [ # List of machine types contained in this scope.
- { # A machine type resource.
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "zone": "A String", # Url of the zone where the machine type resides (output only).
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this machine type.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "scratchDisks": [ # List of extended scratch disks assigned to the instance.
- {
- "diskGb": 42, # Size of the scratch disk, defined in GB.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "warning": { # Informational warning which replaces the list of machine types when the list is empty.
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- },
- },
- "kind": "compute#machineTypeAggregatedList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- get(project, zone, machineType)
-
Returns the specified machine type resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- machineType: string, Name of the machine type resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A machine type resource.
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "zone": "A String", # Url of the zone where the machine type resides (output only).
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this machine type.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "scratchDisks": [ # List of extended scratch disks assigned to the instance.
- {
- "diskGb": 42, # Size of the scratch disk, defined in GB.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of machine type resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of machine type resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The machine type resources.
- { # A machine type resource.
- "guestCpus": 42, # Count of CPUs exposed to the instance.
- "imageSpaceGb": 42, # Space allotted for the image, defined in GB.
- "kind": "compute#machineType", # Type of the resource.
- "maximumPersistentDisksSizeGb": "A String", # Maximum total persistent disks size (GB) allowed.
- "description": "A String", # An optional textual description of the resource.
- "zone": "A String", # Url of the zone where the machine type resides (output only).
- "maximumPersistentDisks": 42, # Maximum persistent disks allowed.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this machine type.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "memoryMb": 42, # Physical memory assigned to the instance, defined in MB.
- "scratchDisks": [ # List of extended scratch disks assigned to the instance.
- {
- "diskGb": 42, # Size of the scratch disk, defined in GB.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#machineTypeList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.networks.html b/docs/dyn/compute_v1beta15.networks.html
deleted file mode 100644
index 997837a..0000000
--- a/docs/dyn/compute_v1beta15.networks.html
+++ /dev/null
@@ -1,288 +0,0 @@
-
-
-
-
Deletes the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, network)
-
Returns the specified network resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- network: string, Name of the network resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-
- insert(project, body)
-
Creates a network resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of network resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of network resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The network resources.
- { # A network resource.
- "kind": "compute#network", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "IPv4Range": "A String", # Required; The range of internal addresses that are legal on this network. This range is a CIDR specification, for example: 192.168.0.0/16. Provided by the client when the network is created.
- "gatewayIPv4": "A String", # An optional address that is used for default routing to other networks. This must be within the range specified by IPv4Range, and is typically the first usable address in that range. If not specified, the default value is the first usable address in IPv4Range.
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#networkList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.projects.html b/docs/dyn/compute_v1beta15.projects.html
deleted file mode 100644
index 9881429..0000000
--- a/docs/dyn/compute_v1beta15.projects.html
+++ /dev/null
@@ -1,190 +0,0 @@
-
-
-
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
Method Details
-
- get(project)
-
Returns the specified project resource.
-
-Args:
- project: string, Name of the project resource to retrieve. (required)
-
-Returns:
- An object of the form:
-
- { # A project resource. Projects can be created only in the APIs Console. Unless marked otherwise, values can only be modified in the console.
- "kind": "compute#project", # Type of the resource.
- "description": "A String", # An optional textual description of the resource.
- "commonInstanceMetadata": { # A metadata key/value entry. # Metadata key/value pairs available to all instances contained in this project.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
- },
- "quotas": [ # Quotas assigned to this project.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
-
-
-
- setCommonInstanceMetadata(project, body)
-
Sets metadata common to all instances within the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A metadata key/value entry.
- "items": [ # Array of key/value pairs. The total size of all keys and values must be less than 512 KB.
- {
- "value": "A String", # Value for the metadata entry. These are free-form strings, and only have meaning as interpreted by the image running in the instance. The only restriction placed on values is that their size must be less than or equal to 32768 bytes.
- "key": "A String", # Key for the metadata entry. Keys must conform to the following regexp: [a-zA-Z0-9-_]+, and be less than 128 bytes in length. This is reflected as part of a URL in the metadata server. Additionally, to avoid ambiguity, keys must not conflict with any other metadata keys for the project.
- },
- ],
- "kind": "compute#metadata", # Type of the resource.
- "fingerprint": "A String", # Fingerprint of this resource. A hash of the metadata's contents. This field is used for optimistic locking. An up-to-date metadata fingerprint must be provided in order to modify metadata.
-}
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.regionOperations.html b/docs/dyn/compute_v1beta15.regionOperations.html
deleted file mode 100644
index 5d637ff..0000000
--- a/docs/dyn/compute_v1beta15.regionOperations.html
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
Deletes the specified region-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, region, operation)
-
Retrieves the specified region-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the zone scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified region.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of operation resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.regions.html b/docs/dyn/compute_v1beta15.regions.html
deleted file mode 100644
index ecf4adc..0000000
--- a/docs/dyn/compute_v1beta15.regions.html
+++ /dev/null
@@ -1,189 +0,0 @@
-
-
-
-
Returns the specified region resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- region: string, Name of the region resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # Region resource.
- "status": "A String", # Status of the region, "UP" or "DOWN".
- "kind": "compute#region", # Type of the resource.
- "description": "A String", # Textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this region.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "quotas": [ # Quotas assigned to this region.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "zones": [ # A list of zones homed in this region, in the form of resource URLs.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of region resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of region resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The region resources.
- { # Region resource.
- "status": "A String", # Status of the region, "UP" or "DOWN".
- "kind": "compute#region", # Type of the resource.
- "description": "A String", # Textual description of the resource.
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this region.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "quotas": [ # Quotas assigned to this region.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "zones": [ # A list of zones homed in this region, in the form of resource URLs.
- "A String",
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#regionList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.routes.html b/docs/dyn/compute_v1beta15.routes.html
deleted file mode 100644
index 298d541..0000000
--- a/docs/dyn/compute_v1beta15.routes.html
+++ /dev/null
@@ -1,348 +0,0 @@
-
-
-
-
Deletes the specified route resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- route: string, Name of the route resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, route)
-
Returns the specified route resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- route: string, Name of the route resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # The route resource. A Route is a rule that specifies how certain packets should be handled by the virtual network. Routes are associated with VMs by tag and the set of Routes for a particular VM is called its routing table. For each packet leaving a VM, the system searches that VM's routing table for a single best matching Route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the Route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching Routes. The packet is then forwarded as specified by the next_hop field of the winning Route -- either to another VM destination, a VM gateway or a GCE operated gateway. Packets that do not match any Route in the sending VM's routing table will be dropped.
- "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets.
- "priority": 42, # Breaks ties between Routes of equal specificity. Routes with smaller values win when tied with routes with larger values.
- "kind": "compute#route", # Type of the resource.
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "tags": [ # A list of instance tags to which this route applies.
- "A String",
- ],
- "nextHopInstance": "A String", # The URL to an instance that should handle matching packets.
- "warnings": [ # If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets.
- "network": "A String", # URL of the network to which this route is applied; provided by the client when the route is created.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "destRange": "A String", # Which packets does this route apply to?
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- }
-
-
-
- insert(project, body)
-
Creates a route resource in the specified project using the data included in the request.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # The route resource. A Route is a rule that specifies how certain packets should be handled by the virtual network. Routes are associated with VMs by tag and the set of Routes for a particular VM is called its routing table. For each packet leaving a VM, the system searches that VM's routing table for a single best matching Route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the Route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching Routes. The packet is then forwarded as specified by the next_hop field of the winning Route -- either to another VM destination, a VM gateway or a GCE operated gateway. Packets that do not match any Route in the sending VM's routing table will be dropped.
- "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets.
- "priority": 42, # Breaks ties between Routes of equal specificity. Routes with smaller values win when tied with routes with larger values.
- "kind": "compute#route", # Type of the resource.
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "tags": [ # A list of instance tags to which this route applies.
- "A String",
- ],
- "nextHopInstance": "A String", # The URL to an instance that should handle matching packets.
- "warnings": [ # If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets.
- "network": "A String", # URL of the network to which this route is applied; provided by the client when the route is created.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "destRange": "A String", # Which packets does this route apply to?
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- }
-
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of route resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of route resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The route resources.
- { # The route resource. A Route is a rule that specifies how certain packets should be handled by the virtual network. Routes are associated with VMs by tag and the set of Routes for a particular VM is called its routing table. For each packet leaving a VM, the system searches that VM's routing table for a single best matching Route. Routes match packets by destination IP address, preferring smaller or more specific ranges over larger ones. If there is a tie, the system selects the Route with the smallest priority value. If there is still a tie, it uses the layer three and four packet headers to select just one of the remaining matching Routes. The packet is then forwarded as specified by the next_hop field of the winning Route -- either to another VM destination, a VM gateway or a GCE operated gateway. Packets that do not match any Route in the sending VM's routing table will be dropped.
- "nextHopGateway": "A String", # The URL to a gateway that should handle matching packets.
- "priority": 42, # Breaks ties between Routes of equal specificity. Routes with smaller values win when tied with routes with larger values.
- "kind": "compute#route", # Type of the resource.
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- "tags": [ # A list of instance tags to which this route applies.
- "A String",
- ],
- "nextHopInstance": "A String", # The URL to an instance that should handle matching packets.
- "warnings": [ # If potential misconfigurations are detected for this route, this field will be populated with warning messages.
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "nextHopNetwork": "A String", # The URL of the local network if it should handle matching packets.
- "network": "A String", # URL of the network to which this route is applied; provided by the client when the route is created.
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "destRange": "A String", # Which packets does this route apply to?
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "nextHopIp": "A String", # The network IP address of an instance that should handle matching packets.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- },
- ],
- "kind": "compute#routeList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.snapshots.html b/docs/dyn/compute_v1beta15.snapshots.html
deleted file mode 100644
index 54bfd27..0000000
--- a/docs/dyn/compute_v1beta15.snapshots.html
+++ /dev/null
@@ -1,220 +0,0 @@
-
-
-
-
Deletes the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to delete. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
-
-
-
- get(project, snapshot)
-
Returns the specified persistent disk snapshot resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- snapshot: string, Name of the persistent disk snapshot resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created (output only).
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- }
Retrieves the list of persistent disk snapshot resources contained within the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of persistent disk snapshot resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The persistent snapshot resources.
- { # A persistent disk snapshot resource.
- "status": "A String", # The status of the persistent disk snapshot (output only).
- "kind": "compute#snapshot", # Type of the resource.
- "description": "A String", # An optional textual description of the resource; provided by the client when the resource is created.
- "sourceDisk": "A String", # The source disk used to create this snapshot. Once the source disk has been deleted from the system, this field will be cleared, and will not be set even if a disk with the same name has been re-created (output only).
- "sourceDiskId": "A String", # The 'id' value of the disk used to create this snapshot. This value may be used to determine whether the snapshot was taken from the current or a previous instance of a given disk name.
- "diskSizeGb": "A String", # Size of the persistent disk snapshot, specified in GB (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource; provided by the client when the resource is created. The name must be 1-63 characters long, and comply with RFC1035.
- },
- ],
- "kind": "compute#snapshotList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.zoneOperations.html b/docs/dyn/compute_v1beta15.zoneOperations.html
deleted file mode 100644
index 7eeed52..0000000
--- a/docs/dyn/compute_v1beta15.zoneOperations.html
+++ /dev/null
@@ -1,239 +0,0 @@
-
-
-
-
Deletes the specified zone-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- operation: string, Name of the operation resource to delete. (required)
-
-
-
-
- get(project, zone, operation)
-
Retrieves the specified zone-specific operation resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- operation: string, Name of the operation resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- }
Retrieves the list of operation resources contained within the specified zone.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of operation resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The operation resources.
- { # An operation resource, used to manage asynchronous API requests.
- "targetId": "A String", # Unique target id which identifies a particular incarnation of the target (output only).
- "clientOperationId": "A String", # An optional identifier specified by the client when the mutation was initiated. Must be unique for all operation resources in the project (output only).
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "zone": "A String", # URL of the zone where the operation resides (output only).
- "operationType": "A String", # Type of the operation. Examples include "insert", "update", and "delete" (output only).
- "httpErrorMessage": "A String", # If operation fails, the HTTP error message returned, e.g. NOT FOUND. (output only).
- "progress": 42, # An optional progress indicator that ranges from 0 to 100. There is no requirement that this be linear or support any granularity of operations. This should not be used to guess at when the operation will be complete. This number should be monotonically increasing as the operation progresses (output only).
- "httpErrorStatusCode": 42, # If operation fails, the HTTP error status code returned, e.g. 404. (output only).
- "statusMessage": "A String", # An optional textual description of the current status of the operation (output only).
- "status": "A String", # Status of the operation. Can be one of the following: "PENDING", "RUNNING", or "DONE" (output only).
- "insertTime": "A String", # The time that this operation was requested. This is in RFC 3339 format (output only).
- "warnings": [ # If warning messages generated during processing of this operation, this field will be populated (output only).
- {
- "message": "A String", # Optional human-readable details for this warning.
- "code": "A String", # The warning type identifier for this warning.
- "data": [ # Metadata for this warning in 'key: value' format.
- {
- "value": "A String", # A warning data value corresponding to the key.
- "key": "A String", # A key for the warning data.
- },
- ],
- },
- ],
- "user": "A String", # User who requested the operation, for example "user@example.com" (output only).
- "startTime": "A String", # The time that this operation was started by the server. This is in RFC 3339 format (output only).
- "kind": "compute#operation", # Type of the resource.
- "name": "A String", # Name of the resource (output only).
- "region": "A String", # URL of the region where the operation resides (output only).
- "error": { # If errors occurred during processing of this operation, this field will be populated (output only).
- "errors": [ # The array of errors encountered while processing this operation.
- {
- "message": "A String", # An optional, human-readable error message.
- "code": "A String", # The error type identifier for this error.
- "location": "A String", # Indicates the field in the request which caused the error. This property is optional.
- },
- ],
- },
- "endTime": "A String", # The time that this operation was completed. This is in RFC 3339 format (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "targetLink": "A String", # URL of the resource the operation is mutating (output only).
- },
- ],
- "kind": "compute#operationList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/compute_v1beta15.zones.html b/docs/dyn/compute_v1beta15.zones.html
deleted file mode 100644
index d94f06f..0000000
--- a/docs/dyn/compute_v1beta15.zones.html
+++ /dev/null
@@ -1,201 +0,0 @@
-
-
-
-
Returns the specified zone resource.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- zone: string, Name of the zone resource to return. (required)
-
-Returns:
- An object of the form:
-
- { # A zone resource.
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this zone.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "region": "A String", # Full URL reference to the region which hosts the zone (output only).
- "quotas": [ # Quotas assigned to this zone.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- }
Retrieves the list of zone resources available to the specified project.
-
-Args:
- project: string, Name of the project scoping this request. (required)
- maxResults: integer, Optional. Maximum count of results to be returned. Maximum and default value is 100.
- pageToken: string, Optional. Tag returned by a previous list request truncated by maxResults. Used to continue a previous list request.
- filter: string, Optional. Filter expression for filtering listed resources.
-
-Returns:
- An object of the form:
-
- { # Contains a list of zone resources.
- "nextPageToken": "A String", # A token used to continue a truncated list request (output only).
- "items": [ # The zone resources.
- { # A zone resource.
- "status": "A String", # Status of the zone. "UP" or "DOWN".
- "kind": "compute#zone", # Type of the resource.
- "description": "A String", # Textual description of the resource.
- "maintenanceWindows": [ # Scheduled maintenance windows for the zone. When the zone is in a maintenance window, all resources which reside in the zone will be unavailable.
- {
- "endTime": "A String", # End time of the maintenance window, in RFC 3339 format.
- "beginTime": "A String", # Begin time of the maintenance window, in RFC 3339 format.
- "name": "A String", # Name of the maintenance window.
- "description": "A String", # Textual description of the maintenance window.
- },
- ],
- "deprecated": { # Deprecation status for a public resource. # The deprecation status associated with this zone.
- "deleted": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DELETED.
- "deprecated": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to DEPRECATED.
- "state": "A String", # The deprecation state. Can be "DEPRECATED", "OBSOLETE", or "DELETED". Operations which create a new resource using a "DEPRECATED" resource will return successfully, but with a warning indicating the deprecated resource and recommending its replacement. New uses of "OBSOLETE" or "DELETED" resources will result in an error.
- "obsolete": "A String", # An optional RFC3339 timestamp on or after which the deprecation state of this resource will be changed to OBSOLETE.
- "replacement": "A String", # A URL of the suggested replacement for the deprecated resource. The deprecated resource and its replacement must be resources of the same kind.
- },
- "region": "A String", # Full URL reference to the region which hosts the zone (output only).
- "quotas": [ # Quotas assigned to this zone.
- { # A quotas entry.
- "usage": 3.14, # Current usage of this metric.
- "metric": "A String", # Name of the quota metric.
- "limit": 3.14, # Quota limit for this metric.
- },
- ],
- "creationTimestamp": "A String", # Creation timestamp in RFC3339 text format (output only).
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for the resource (output only).
- "name": "A String", # Name of the resource.
- },
- ],
- "kind": "compute#zoneList", # Type of resource.
- "id": "A String", # Unique identifier for the resource; defined by the server (output only).
- "selfLink": "A String", # Server defined URL for this resource (output only).
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/coordinate_v1.customFieldDef.html b/docs/dyn/coordinate_v1.customFieldDef.html
deleted file mode 100644
index 24dac73..0000000
--- a/docs/dyn/coordinate_v1.customFieldDef.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
Retrieves a list of custom field definitions for a team.
-
Method Details
-
- list(teamId)
-
Retrieves a list of custom field definitions for a team.
-
-Args:
- teamId: string, Team ID (required)
-
-Returns:
- An object of the form:
-
- { # Collection of custom field definitions for a team.
- "items": [ # Collection of custom field definitions in a team.
- { # Custom field definition.
- "kind": "coordinate#customFieldDef", # Identifies this object as a custom field definition.
- "name": "A String", # Custom field name.
- "enabled": True or False, # Whether the field is enabled.
- "requiredForCheckout": True or False, # Whether the field is required for checkout.
- "type": "A String", # Custom field type.
- "id": "A String", # Custom field id.
- },
- ],
- "kind": "coordinate#customFieldDefList", # Identifies this object as a collection of custom field definitions in a team.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/coordinate_v1.html b/docs/dyn/coordinate_v1.html
deleted file mode 100644
index 1db6a5e..0000000
--- a/docs/dyn/coordinate_v1.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Updates a job. Fields that are set in the job state will be updated.
-
Method Details
-
- get(teamId, jobId)
-
Retrieves a job, including all the changes made to the job.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
-
-Returns:
- An object of the form:
-
- { # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
Inserts a new job. Only the state field of the job should be set.
-
-Args:
- teamId: string, Team ID (required)
- address: string, Job address as newline (Unix) separated string (required)
- lat: number, The latitude coordinate of this job's location. (required)
- lng: number, The longitude coordinate of this job's location. (required)
- title: string, Job title (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
-
- customerName: string, Customer name
- assignee: string, Assignee email address, or empty string to unassign.
- customerPhoneNumber: string, Customer phone number
- note: string, Job note as newline (Unix) separated string
- customField: string, Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' (repeated)
-
-Returns:
- An object of the form:
-
- { # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
Retrieves jobs created or modified since the given timestamp.
-
-Args:
- teamId: string, Team ID (required)
- pageToken: string, Continuation token
- minModifiedTimestampMs: string, Minimum time a job was modified in milliseconds since epoch.
- maxResults: integer, Maximum number of results to return in one page.
-
-Returns:
- An object of the form:
-
- { # Response from a List Jobs request.
- "nextPageToken": "A String", # A token to provide to get the next page of results.
- "items": [ # Jobs in the collection.
- { # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "kind": "coordinate#jobList", # Identifies this object as a list of jobs.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates a job. Fields that are set in the job state will be updated. This method supports patch semantics.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
-
- customerName: string, Customer name
- assignee: string, Assignee email address, or empty string to unassign.
- customerPhoneNumber: string, Customer phone number
- lng: number, The longitude coordinate of this job's location.
- note: string, Job note as newline (Unix) separated string
- title: string, Job title
- progress: string, Job progress
- Allowed values
- COMPLETED - Completed
- IN_PROGRESS - In progress
- NOT_ACCEPTED - Not accepted
- NOT_STARTED - Not started
- OBSOLETE - Obsolete
- address: string, Job address as newline (Unix) separated string
- lat: number, The latitude coordinate of this job's location.
- customField: string, Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' (repeated)
-
-Returns:
- An object of the form:
-
- { # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
Updates a job. Fields that are set in the job state will be updated.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
-
- customerName: string, Customer name
- assignee: string, Assignee email address, or empty string to unassign.
- customerPhoneNumber: string, Customer phone number
- lng: number, The longitude coordinate of this job's location.
- note: string, Job note as newline (Unix) separated string
- title: string, Job title
- progress: string, Job progress
- Allowed values
- COMPLETED - Completed
- IN_PROGRESS - In progress
- NOT_ACCEPTED - Not accepted
- NOT_STARTED - Not started
- OBSOLETE - Obsolete
- address: string, Job address as newline (Unix) separated string
- lat: number, The latitude coordinate of this job's location.
- customField: string, Map from custom field id (from /team//custom_fields) to the field value. For example '123=Alice' (repeated)
-
-Returns:
- An object of the form:
-
- { # A job.
- "kind": "coordinate#job", # Identifies this object as a job.
- "jobChange": [ # List of job changes since it was created. The first change corresponds to the state of the job when it was created.
- { # Change to a job. For example assigning the job to a different worker.
- "timestamp": "A String", # Time at which this change was applied.
- "kind": "coordinate#jobChange", # Identifies this object as a job change.
- "state": { # Current state of a job. # Change applied to the job. Only the fields that were changed are set.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- },
- ],
- "id": "A String", # Job id.
- "state": { # Current state of a job. # Current job state.
- "kind": "coordinate#jobState", # Identifies this object as a job state.
- "customerName": "A String", # Customer name.
- "title": "A String", # Job title.
- "note": [ # Note added to the job.
- "A String",
- ],
- "assignee": "A String", # Email address of the assignee.
- "customerPhoneNumber": "A String", # Customer phone number.
- "location": { # Location of a job. # Job location.
- "lat": 3.14, # Latitude.
- "kind": "coordinate#location", # Identifies this object as a location.
- "addressLine": [ # Address.
- "A String",
- ],
- "lng": 3.14, # Longitude.
- },
- "progress": "A String", # Job progress.
- "customFields": { # Collection of custom fields. # Custom fields.
- "kind": "coordinate#customFields", # Identifies this object as a collection of custom fields.
- "customField": [ # Collection of custom fields.
- { # Custom field.
- "kind": "coordinate#customField", # Identifies this object as a custom field.
- "customFieldId": "A String", # Custom field id.
- "value": "A String", # Custom field value.
- },
- ],
- },
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/coordinate_v1.location.html b/docs/dyn/coordinate_v1.location.html
deleted file mode 100644
index 131ec9d..0000000
--- a/docs/dyn/coordinate_v1.location.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
Retrieves a list of locations for a worker.
-
-Args:
- teamId: string, Team ID (required)
- workerEmail: string, Worker email address. (required)
- startTimestampMs: string, Start timestamp in milliseconds since the epoch. (required)
- pageToken: string, Continuation token
- maxResults: integer, Maximum number of results to return in one page.
-
-Returns:
- An object of the form:
-
- { # Response from a List Locations request.
- "nextPageToken": "A String", # A token to provide to get the next page of results.
- "items": [ # Locations in the collection.
- { # Recorded location of a worker.
- "latitude": 3.14, # Latitude.
- "collectionTime": "A String", # The collection time in milliseconds since the epoch.
- "confidenceRadius": 3.14, # The location accuracy in meters. This is the radius of a 95% confidence interval around the location measurement.
- "kind": "coordinate#locationRecord", # Identifies this object as a location.
- "longitude": 3.14, # Longitude.
- },
- ],
- "kind": "coordinate#locationList", # Identifies this object as a list of locations.
- "tokenPagination": { # Pagination information. # Pagination information for token pagination.
- "nextPageToken": "A String", # A token to provide to get the next page of results.
- "previousPageToken": "A String", # A token to provide to get the previous page of results.
- "kind": "coordinate#tokenPagination", # Identifies this object as pagination information.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/coordinate_v1.schedule.html b/docs/dyn/coordinate_v1.schedule.html
deleted file mode 100644
index 7a68369..0000000
--- a/docs/dyn/coordinate_v1.schedule.html
+++ /dev/null
@@ -1,177 +0,0 @@
-
-
-
-
Replaces the schedule of a job with the provided schedule.
-
Method Details
-
- get(teamId, jobId)
-
Retrieves the schedule for a job.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
-
-Returns:
- An object of the form:
-
- { # Job schedule.
- "duration": "A String", # Job duration in milliseconds.
- "kind": "coordinate#schedule", # Identifies this object as a job schedule.
- "allDay": True or False, # Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- "startTime": "A String", # Scheduled start time in milliseconds since epoch.
- "endTime": "A String", # Scheduled end time in milliseconds since epoch.
- }
Replaces the schedule of a job with the provided schedule. This method supports patch semantics.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Job schedule.
- "duration": "A String", # Job duration in milliseconds.
- "kind": "coordinate#schedule", # Identifies this object as a job schedule.
- "allDay": True or False, # Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- "startTime": "A String", # Scheduled start time in milliseconds since epoch.
- "endTime": "A String", # Scheduled end time in milliseconds since epoch.
- }
-
- allDay: boolean, Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- startTime: string, Scheduled start time in milliseconds since epoch.
- duration: string, Job duration in milliseconds.
- endTime: string, Scheduled end time in milliseconds since epoch.
-
-Returns:
- An object of the form:
-
- { # Job schedule.
- "duration": "A String", # Job duration in milliseconds.
- "kind": "coordinate#schedule", # Identifies this object as a job schedule.
- "allDay": True or False, # Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- "startTime": "A String", # Scheduled start time in milliseconds since epoch.
- "endTime": "A String", # Scheduled end time in milliseconds since epoch.
- }
Replaces the schedule of a job with the provided schedule.
-
-Args:
- teamId: string, Team ID (required)
- jobId: string, Job number (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Job schedule.
- "duration": "A String", # Job duration in milliseconds.
- "kind": "coordinate#schedule", # Identifies this object as a job schedule.
- "allDay": True or False, # Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- "startTime": "A String", # Scheduled start time in milliseconds since epoch.
- "endTime": "A String", # Scheduled end time in milliseconds since epoch.
- }
-
- allDay: boolean, Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- startTime: string, Scheduled start time in milliseconds since epoch.
- duration: string, Job duration in milliseconds.
- endTime: string, Scheduled end time in milliseconds since epoch.
-
-Returns:
- An object of the form:
-
- { # Job schedule.
- "duration": "A String", # Job duration in milliseconds.
- "kind": "coordinate#schedule", # Identifies this object as a job schedule.
- "allDay": True or False, # Whether the job is scheduled for the whole day. Time of day in start/end times is ignored if this is true.
- "startTime": "A String", # Scheduled start time in milliseconds since epoch.
- "endTime": "A String", # Scheduled end time in milliseconds since epoch.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/coordinate_v1.worker.html b/docs/dyn/coordinate_v1.worker.html
deleted file mode 100644
index 0e3da77..0000000
--- a/docs/dyn/coordinate_v1.worker.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Retrieves a list of workers in a team.
-
-Args:
- teamId: string, Team ID (required)
-
-Returns:
- An object of the form:
-
- { # Response from a List Workers request.
- "items": [ # Workers in the collection.
- { # A worker in a Coordinate team.
- "kind": "coordinate#worker", # Identifies this object as a worker.
- "id": "A String", # Worker email address.
- },
- ],
- "kind": "coordinate#workerList", # Identifies this object as a list of workers.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/customsearch_v1.cse.html b/docs/dyn/customsearch_v1.cse.html
deleted file mode 100644
index 20fd034..0000000
--- a/docs/dyn/customsearch_v1.cse.html
+++ /dev/null
@@ -1,331 +0,0 @@
-
-
-
-
Returns metadata about the search performed, metadata about the custom search engine used for the search, and the search results.
-
-Args:
- q: string, Query (required)
- dateRestrict: string, Specifies all search results are from a time period
- hl: string, Sets the user interface language.
- orTerms: string, Provides additional search terms to check for in a document, where each document in the search results must contain at least one of the additional search terms
- highRange: string, Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
- num: integer, Number of search results to return
- cr: string, Country restrict(s).
- imgType: string, Returns images of a type, which can be one of: clipart, face, lineart, news, and photo.
- Allowed values
- clipart - clipart
- face - face
- lineart - lineart
- news - news
- photo - photo
- relatedSite: string, Specifies that all search results should be pages that are related to the specified URL
- filter: string, Controls turning on or off the duplicate content filter.
- Allowed values
- 0 - Turns off duplicate content filter.
- 1 - Turns on duplicate content filter.
- gl: string, Geolocation of end user.
- searchType: string, Specifies the search type: image.
- Allowed values
- image - custom image search
- fileType: string, Returns images of a specified type. Some of the allowed values are: bmp, gif, png, jpg, svg, pdf, ...
- start: integer, The index of the first result to return
- imgDominantColor: string, Returns images of a specific dominant color: yellow, green, teal, blue, purple, pink, white, gray, black and brown.
- Allowed values
- black - black
- blue - blue
- brown - brown
- gray - gray
- green - green
- pink - pink
- purple - purple
- teal - teal
- white - white
- yellow - yellow
- lr: string, The language restriction for the search results
- Allowed values
- lang_ar - Arabic
- lang_bg - Bulgarian
- lang_ca - Catalan
- lang_cs - Czech
- lang_da - Danish
- lang_de - German
- lang_el - Greek
- lang_en - English
- lang_es - Spanish
- lang_et - Estonian
- lang_fi - Finnish
- lang_fr - French
- lang_hr - Croatian
- lang_hu - Hungarian
- lang_id - Indonesian
- lang_is - Icelandic
- lang_it - Italian
- lang_iw - Hebrew
- lang_ja - Japanese
- lang_ko - Korean
- lang_lt - Lithuanian
- lang_lv - Latvian
- lang_nl - Dutch
- lang_no - Norwegian
- lang_pl - Polish
- lang_pt - Portuguese
- lang_ro - Romanian
- lang_ru - Russian
- lang_sk - Slovak
- lang_sl - Slovenian
- lang_sr - Serbian
- lang_sv - Swedish
- lang_tr - Turkish
- lang_zh-CN - Chinese (Simplified)
- lang_zh-TW - Chinese (Traditional)
- siteSearch: string, Specifies all search results should be pages from a given site
- cref: string, The URL of a linked custom search engine
- sort: string, The sort expression to apply to the results
- hq: string, Appends the extra query terms to the query.
- c2coff: string, Turns off the translation between zh-CN and zh-TW.
- googlehost: string, The local Google domain to use to perform the search.
- safe: string, Search safety level
- Allowed values
- high - Enables highest level of safe search filtering.
- medium - Enables moderate safe search filtering.
- off - Disables safe search filtering.
- exactTerms: string, Identifies a phrase that all documents in the search results must contain
- lowRange: string, Creates a range in form as_nlo value..as_nhi value and attempts to append it to query
- imgSize: string, Returns images of a specified size, where size can be one of: icon, small, medium, large, xlarge, xxlarge, and huge.
- Allowed values
- huge - huge
- icon - icon
- large - large
- medium - medium
- small - small
- xlarge - xlarge
- xxlarge - xxlarge
- imgColorType: string, Returns black and white, grayscale, or color images: mono, gray, and color.
- Allowed values
- color - color
- gray - gray
- mono - mono
- rights: string, Filters based on licensing. Supported values include: cc_publicdomain, cc_attribute, cc_sharealike, cc_noncommercial, cc_nonderived and combinations of these.
- excludeTerms: string, Identifies a word or phrase that should not appear in any documents in the search results
- linkSite: string, Specifies that all search results should contain a link to a particular URL
- cx: string, The custom search engine ID to scope this search query
- siteSearchFilter: string, Controls whether to include or exclude results from the site named in the as_sitesearch parameter
- Allowed values
- e - exclude
- i - include
-
-Returns:
- An object of the form:
-
- {
- "promotions": [
- {
- "title": "A String",
- "displayLink": "A String",
- "htmlTitle": "A String",
- "link": "A String",
- "bodyLines": [
- {
- "url": "A String",
- "htmlTitle": "A String",
- "link": "A String",
- "title": "A String",
- },
- ],
- "image": {
- "source": "A String",
- "width": 42,
- "height": 42,
- },
- },
- ],
- "kind": "customsearch#search",
- "url": {
- "type": "application/json",
- "template": "https://www.googleapis.com/customsearch/v1?q={searchTerms}&num={count?}&start={startIndex?}&lr={language?}&safe={safe?}&cx={cx?}&cref={cref?}&sort={sort?}&filter={filter?}&gl={gl?}&cr={cr?}&googlehost={googleHost?}&c2coff={disableCnTwTranslation?}&hq={hq?}&hl={hl?}&siteSearch={siteSearch?}&siteSearchFilter={siteSearchFilter?}&exactTerms={exactTerms?}&excludeTerms={excludeTerms?}&linkSite={linkSite?}&orTerms={orTerms?}&relatedSite={relatedSite?}&dateRestrict={dateRestrict?}&lowRange={lowRange?}&highRange={highRange?}&searchType={searchType}&fileType={fileType?}&rights={rights?}&imgSize={imgSize?}&imgType={imgType?}&imgColorType={imgColorType?}&imgDominantColor={imgDominantColor?}&alt=json",
- },
- "items": [
- {
- "snippet": "A String",
- "kind": "customsearch#result",
- "labels": [
- {
- "displayName": "A String",
- "name": "A String",
- },
- ],
- "title": "A String",
- "displayLink": "A String",
- "cacheId": "A String",
- "formattedUrl": "A String",
- "htmlFormattedUrl": "A String",
- "pagemap": {
- "a_key": [
- {
- "a_key": "",
- },
- ],
- },
- "htmlTitle": "A String",
- "htmlSnippet": "A String",
- "link": "A String",
- "image": {
- "thumbnailWidth": 42,
- "byteSize": 42,
- "height": 42,
- "width": 42,
- "contextLink": "A String",
- "thumbnailLink": "A String",
- "thumbnailHeight": 42,
- },
- "mime": "A String",
- "fileFormat": "A String",
- },
- ],
- "context": {
- "facets": [
- [
- {
- "anchor": "A String",
- "label": "A String",
- },
- ],
- ],
- "title": "A String",
- },
- "queries": {
- "a_key": [
- {
- "sort": "A String",
- "hl": "A String",
- "orTerms": "A String",
- "highRange": "A String",
- "cx": "A String",
- "startPage": 42,
- "disableCnTwTranslation": "A String",
- "cr": "A String",
- "imgType": "A String",
- "gl": "A String",
- "relatedSite": "A String",
- "searchType": "A String",
- "title": "A String",
- "googleHost": "A String",
- "fileType": "A String",
- "imgDominantColor": "A String",
- "siteSearch": "A String",
- "cref": "A String",
- "dateRestrict": "A String",
- "safe": "A String",
- "outputEncoding": "A String",
- "hq": "A String",
- "searchTerms": "A String",
- "exactTerms": "A String",
- "language": "A String",
- "inputEncoding": "A String",
- "totalResults": "A String",
- "lowRange": "A String",
- "count": 42,
- "imgSize": "A String",
- "imgColorType": "A String",
- "rights": "A String",
- "startIndex": 42,
- "excludeTerms": "A String",
- "filter": "A String",
- "linkSite": "A String",
- "siteSearchFilter": "A String",
- },
- ],
- },
- "spelling": {
- "correctedQuery": "A String",
- "htmlCorrectedQuery": "A String",
- },
- "searchInformation": {
- "formattedSearchTime": "A String",
- "formattedTotalResults": "A String",
- "totalResults": "A String",
- "searchTime": 3.14,
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/customsearch_v1.html b/docs/dyn/customsearch_v1.html
deleted file mode 100644
index 803bdc1..0000000
--- a/docs/dyn/customsearch_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Allocate IDs for incomplete keys (useful for referencing an entity before it is inserted).
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "keys": [ # A list of keys with incomplete key paths to allocate IDs for. No key may be reserved/read-only.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "keys": [ # The keys specified in the request (in the same order), each with its key path completed with a newly allocated ID.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- }
-
-
-
- beginTransaction(datasetId, body)
-
Begin a new transaction.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "isolationLevel": "A String", # The transaction isolation level. Either snapshot or serializable. The default isolation level is snapshot isolation, which means that another transaction may not concurrently modify the data that is modified by this transaction. Optionally, a transaction can request to be made serializable which means that another transaction cannot concurrently modify the data that is read or modified by this transaction.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- "transaction": "A String", # The transaction identifier (always present).
- }
-
-
-
- blindWrite(datasetId, body)
-
Create, delete or modify some entities outside a transaction.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "mutation": { # The mutation to perform.
- "insert": [ # Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "force": True or False, # Ignore a user specified read-only period. Optional.
- "insertAutoId": [ # Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "update": [ # Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "delete": [ # Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "upsert": [ # Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- "mutationResult": { # The result of performing the mutation (always present).
- "insertAutoIdKeys": [ # Keys for insertAutoId entities. One per entity from the request, in the same order.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "indexUpdates": 42, # Number of index writes.
- },
- }
-
-
-
- commit(datasetId, body)
-
Commit a transaction, optionally creating, deleting or modifying some entities.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "transaction": "A String", # The transaction identifier, returned by a call to beginTransaction.
- "mutation": { # The mutation to perform as part of this transaction. Optional.
- "insert": [ # Entities to insert. Each inserted entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "force": True or False, # Ignore a user specified read-only period. Optional.
- "insertAutoId": [ # Insert entities with a newly allocated ID. Each inserted entity's key must omit the final identifier in its path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "update": [ # Entities to update. Each updated entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- "delete": [ # Keys of entities to delete. Each key must have a complete key path and must not be reserved/read-only.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "upsert": [ # Entities to upsert. Each upserted entity's key must have a complete path and must not be reserved/read-only.
- {
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- "mutationResult": { # The result of performing the mutation (if any).
- "insertAutoIdKeys": [ # Keys for insertAutoId entities. One per entity from the request, in the same order.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "indexUpdates": 42, # Number of index writes.
- },
- }
-
-
-
- lookup(datasetId, body)
-
Look up some entities by key.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "keys": [ # Keys of entities to look up from the datastore.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "readOptions": { # Options for this lookup request. Optional.
- "transaction": "A String", # The transaction to use. Optional.
- "readConsistency": "A String", # The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "deferred": [ # A list of keys that were not looked up due to resource constraints.
- {
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- ],
- "missing": [ # Entities not found, with only the key populated.
- {
- "entity": { # The resulting entity.
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- },
- ],
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- "found": [ # Entities found.
- {
- "entity": { # The resulting entity.
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- },
- ],
- }
-
-
-
- rollback(datasetId, body)
-
Roll back a transaction.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "transaction": "A String", # The transaction identifier, returned by a call to beginTransaction.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- }
-
-
-
- runQuery(datasetId, body)
-
Query for entities.
-
-Args:
- datasetId: string, Identifies the dataset. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "query": { # The query to run. Either this field or field gql_query must be set, but not both.
- "startCursor": "A String", # A starting point for the query results. Optional. Query cursors are returned in query result batches.
- "kinds": [ # The kinds to query (if empty, returns entities from all kinds).
- {
- "name": "A String", # The name of the kind.
- },
- ],
- "projection": [ # The projection to return. If not set the entire entity is returned.
- {
- "aggregationFunction": "A String", # The aggregation function to apply to the property. Optional. Can only be used when grouping by at least one property. Must then be set on all properties in the projection that are not being grouped by. Aggregation functions: first selects the first result as determined by the query's order.
- "property": { # The property to project.
- "name": "A String", # The name of the property.
- },
- },
- ],
- "order": [ # The order to apply to the query results (if empty, order is unspecified).
- {
- "direction": "A String", # The direction to order by. One of ascending or descending. Optional, defaults to ascending.
- "property": { # The property to order by.
- "name": "A String", # The name of the property.
- },
- },
- ],
- "filter": { # The filter to apply (optional).
- "compositeFilter": { # A composite filter.
- "operator": "A String", # The operator for combining multiple filters. Only "and" is currently supported.
- "filters": [ # The list of filters to combine. Must contain at least one filter.
- # Object with schema name: Filter
- ],
- },
- "propertyFilter": { # A filter on a property.
- "operator": "A String", # The operator to filter by. One of lessThan, lessThanOrEqual, greaterThan, greaterThanOrEqual, equal, or hasAncestor.
- "property": { # The property to filter by.
- "name": "A String", # The name of the property.
- },
- "value": { # The value to compare the property to.
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- },
- },
- "limit": 42, # The maximum number of results to return. Applies after all other constraints. Optional.
- "offset": 42, # The number of results to skip. Applies before limit, but after all other constraints (optional, defaults to 0).
- "endCursor": "A String", # An ending point for the query results. Optional. Query cursors are returned in query result batches.
- "groupBy": [ # The properties to group by (if empty, no grouping is applied to the result set).
- {
- "name": "A String", # The name of the property.
- },
- ],
- },
- "partitionId": { # Entities are partitioned into subsets, identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- "gqlQuery": { # The GQL query to run. Either this field or field query must be set, but not both.
- "queryString": "A String",
- "nameArgs": [ # A named argument must set field GqlQueryArg.name. No two named arguments may have the same name. For each non-reserved named binding site in the query string, there must be a named argument with that name, but not necessarily the inverse.
- {
- "cursor": "A String",
- "name": "A String", # Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__". Must not be "".
- "value": {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- },
- ],
- "allowLiteral": True or False, # When false, the query string must not contain a literal.
- "numberArgs": [ # Numbered binding site @1 references the first numbered argument, effectively using 1-based indexing, rather than the usual 0. A numbered argument must NOT set field GqlQueryArg.name. For each binding site numbered i in query_string, there must be an ith numbered argument. The inverse must also be true.
- {
- "cursor": "A String",
- "name": "A String", # Must match regex "[A-Za-z_$][A-Za-z_$0-9]*". Must not match regex "__.*__". Must not be "".
- "value": {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- },
- ],
- },
- "readOptions": { # The options for this query.
- "transaction": "A String", # The transaction to use. Optional.
- "readConsistency": "A String", # The read consistency to use. One of default, strong, or eventual. Cannot be set when transaction is set. Lookup and ancestor queries default to strong, global queries default to eventual and cannot be set to strong. Optional. Default is default.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "header": {
- "kind": "datastore#responseHeader", # The kind, fixed to "datastore#responseHeader".
- },
- "batch": { # A batch of query results (always present).
- "moreResults": "A String", # The state of the query after the current batch. One of notFinished, moreResultsAfterLimit, noMoreResults.
- "entityResults": [ # The results for this batch.
- {
- "entity": { # The resulting entity.
- "properties": { # The entity's properties.
- "a_key": { # The name of the property. Properties with names matching regex "__.*__" are reserved. A reserved property name is forbidden in certain documented contexts. The name cannot be "".
- "multi": True or False, # If this property contains a list of values. Input values may explicitly set multi to false, but otherwise false is always represented by omitting multi.
- "values": [ # The value(s) of the property. When multi is false there is always exactly one value. When multi is true there are always one or more values. Each value can have only one value property populated. For example, you cannot have a values list of { values: [ { integerValue: 22, stringValue: "a" } ] }, but you can have { multi: true, values: [ { integerValue: 22 }, { stringValue: "a" } ] }.
- {
- "entityValue": # Object with schema name: Entity # An entity value. May have no key. May have a key with an incomplete key path. May have a reserved/read-only key.
- "doubleValue": 3.14, # A double value.
- "integerValue": "A String", # An integer value.
- "meaning": 42, # The meaning field is reserved and should not be used.
- "dateTimeValue": "A String", # A timestamp value.
- "keyValue": { # A key value.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- "stringValue": "A String", # A UTF-8 encoded string value.
- "indexed": True or False, # If the value should be indexed.
- #
- # The indexed property may be set for a null value. When indexed is true, stringValue is limited to 500 characters and the blob value is limited to 500 bytes. Input values by default have indexed set to true; however, you can explicitly set indexed to true if you want. (An output value never has indexed explicitly set to true.) If a value is itself an entity, it cannot have indexed set to true.
- "blobValue": "A String", # A blob value.
- "booleanValue": True or False, # A boolean value.
- "blobKeyValue": "A String", # A blob key value.
- },
- ],
- },
- },
- "key": { # The entity's key.
- #
- # An entity must have a key, unless otherwise documented (for example, an entity in Value.entityValue may have no key). An entity's kind is its key's path's last element's kind, or null if it has no key.
- "path": [ # The entity path. An entity path consists of one or more elements composed of a kind and a string or numerical identifier, which identify entities. The first element identifies a root entity, the second element identifies a child of the root entity, the third element a child of the second entity, and so forth. The entities identified by all prefixes of the path are called the element's ancestors. An entity path is always fully complete: ALL of the entity's ancestors are required to be in the path along with the entity identifier itself. The only exception is that in some documented cases, the identifier in the last path element (for the entity) itself may be omitted. A path can never be empty.
- { # A (kind, ID/name) pair used to construct a key path.
- #
- # At most one of name or ID may be set. If either is set, the element is complete. If neither is set, the element is incomplete.
- "kind": "A String", # The kind of the entity. Kinds matching regex "__.*__" are reserved/read-only. Cannot be "".
- "id": "A String", # The ID of the entity. Always > 0.
- "name": "A String", # The name of the entity. Names matching regex "__.*__" are reserved/read-only. Cannot be "".
- },
- ],
- "partitionId": { # Entities are partitioned into subsets, currently identified by a dataset (usually implicitly specified by the project) and namespace ID. Queries are scoped to a single partition.
- "namespace": "A String", # The namespace.
- "datasetId": "A String", # The dataset ID.
- },
- },
- },
- },
- ],
- "skippedResults": 42, # The number of results skipped because of Query.offset.
- "endCursor": "A String", # A cursor that points to the position after the last result in the batch. May be absent.
- "entityResultType": "A String", # The result type for every entity in entityResults. full for full entities, projection for entities with only projected properties, keyOnly for entities with only a key.
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/datastore_v1beta1.html b/docs/dyn/datastore_v1beta1.html
deleted file mode 100644
index 8156786..0000000
--- a/docs/dyn/datastore_v1beta1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Retrieves list of report dimension values for a list of filters.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a DimensionValuesRequest.
- "dimensionName": "A String", # The name of the dimension for which values should be requested.
- "startDate": "A String", # The start date of the date range for which to retrieve dimension values. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dimensionValueRequest", # The kind of request this is, in this case dfareporting#dimensionValueRequest.
- "endDate": "A String", # The end date of the date range for which to retrieve dimension values. A string of the format: "yyyy-MM-dd".
- "filters": [ # The list of filters by which to filter values. The filters are ANDed.
- { # Represents a dimension filter.
- "dimensionName": "A String", # The name of the dimension to filter.
- "kind": "dfareporting#dimensionFilter", # The kind of resource this is, in this case dfareporting#dimensionFilter.
- "value": "A String", # The value of the dimension to filter.
- },
- ],
- }
-
- pageToken: string, The value of the nextToken from the previous result page.
- maxResults: integer, Maximum number of results to return.
-
-Returns:
- An object of the form:
-
- { # Represents the list of DimensionValue resources.
- "nextPageToken": "A String", # Continuation token used to page through dimension values. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The dimension values returned in this response.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "kind": "dfareporting#dimensionValueList", # The kind of list this is, in this case dfareporting#dimensionValueList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_1.files.html b/docs/dyn/dfareporting_v1_1.files.html
deleted file mode 100644
index f707f05..0000000
--- a/docs/dyn/dfareporting_v1_1.files.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Lists files for a user profile.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by file ID.
- LAST_MODIFIED_TIME - Sort by 'lastmodifiedAt' field.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
-
-Returns:
- An object of the form:
-
- { # Represents the list of File resources.
- "nextPageToken": "A String", # Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The files returned in this response.
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- },
- ],
- "kind": "dfareporting#fileList", # The kind of list this is, in this case dfareporting#fileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_1.html b/docs/dyn/dfareporting_v1_1.html
deleted file mode 100644
index 4e7619f..0000000
--- a/docs/dyn/dfareporting_v1_1.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Retrieves a report file.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the report. (required)
- fileId: string, The ID of the report file. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- }
Lists files for a report.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the parent report. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by file ID.
- LAST_MODIFIED_TIME - Sort by 'lastmodifiedAt' field.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
-
-Returns:
- An object of the form:
-
- { # Represents the list of File resources.
- "nextPageToken": "A String", # Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The files returned in this response.
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- },
- ],
- "kind": "dfareporting#fileList", # The kind of list this is, in this case dfareporting#fileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_1.reports.html b/docs/dyn/dfareporting_v1_1.reports.html
deleted file mode 100644
index be6fba0..0000000
--- a/docs/dyn/dfareporting_v1_1.reports.html
+++ /dev/null
@@ -1,3781 +0,0 @@
-
-
-
-
Deletes a report by its ID.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
-
-
-
-
- get(profileId, reportId)
-
Retrieves a report by its ID.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
- insert(profileId, body)
-
Creates a report.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
Retrieves list of reports.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by report ID.
- LAST_MODIFIED_TIME - Sort by 'lastModifiedTime' field.
- NAME - Sort by name of reports.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
-
-Returns:
- An object of the form:
-
- { # Represents the list of reports.
- "nextPageToken": "A String", # Continuation token used to page through reports. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The reports returned in this response.
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- },
- ],
- "kind": "dfareporting#reportList", # The kind of list this is, in this case dfareporting#reportList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(profileId, reportId, body)
-
Updates a report. This method supports patch semantics.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
- run(profileId, reportId, synchronous=None)
-
Runs a report.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the report. (required)
- synchronous: boolean, If set and true, tries to run the report synchronously.
-
-Returns:
- An object of the form:
-
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- }
-
-
-
- update(profileId, reportId, body)
-
Updates a report.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT" (support for additional options will be added later)
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "dimensionName": "A String", # The name of the dimension.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "etag": "A String", # The eTag of this response for caching purposes.
- "id": "A String", # The ID associated with the value if available.
- "value": "A String", # The value of the dimension.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_1.userProfiles.html b/docs/dyn/dfareporting_v1_1.userProfiles.html
deleted file mode 100644
index 141450f..0000000
--- a/docs/dyn/dfareporting_v1_1.userProfiles.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
Gets one user profile by ID.
-
-Args:
- profileId: string, The user profile ID. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a UserProfile resource.
- "userName": "A String", # The user name.
- "kind": "dfareporting#userProfile", # The kind of resource this is, in this case dfareporting#userProfile.
- "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
- "accountName": "A String", # The account name this profile belongs to.
- "etag": "A String", # The eTag of this response for caching purposes.
- "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
- "profileId": "A String", # The unique ID of the user profile.
- "accountId": "A String", # The account ID to which this profile belongs.
- }
-
-
-
- list()
-
Retrieves list of user profiles for a user.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # Represents the list of user profiles.
- "items": [ # The user profiles returned in this response.
- { # Represents a UserProfile resource.
- "userName": "A String", # The user name.
- "kind": "dfareporting#userProfile", # The kind of resource this is, in this case dfareporting#userProfile.
- "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
- "accountName": "A String", # The account name this profile belongs to.
- "etag": "A String", # The eTag of this response for caching purposes.
- "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
- "profileId": "A String", # The unique ID of the user profile.
- "accountId": "A String", # The account ID to which this profile belongs.
- },
- ],
- "kind": "dfareporting#userProfileList", # The kind of list this is, in this case dfareporting#userProfileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.dimensionValues.html b/docs/dyn/dfareporting_v1_3.dimensionValues.html
deleted file mode 100644
index f9ed90f..0000000
--- a/docs/dyn/dfareporting_v1_3.dimensionValues.html
+++ /dev/null
@@ -1,148 +0,0 @@
-
-
-
-
Retrieves list of report dimension values for a list of filters.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a DimensionValuesRequest.
- "dimensionName": "A String", # The name of the dimension for which values should be requested.
- "startDate": "A String", # The start date of the date range for which to retrieve dimension values. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dimensionValueRequest", # The kind of request this is, in this case dfareporting#dimensionValueRequest.
- "endDate": "A String", # The end date of the date range for which to retrieve dimension values. A string of the format: "yyyy-MM-dd".
- "filters": [ # The list of filters by which to filter values. The filters are ANDed.
- { # Represents a dimension filter.
- "dimensionName": "A String", # The name of the dimension to filter.
- "kind": "dfareporting#dimensionFilter", # The kind of resource this is, in this case dfareporting#dimensionFilter.
- "value": "A String", # The value of the dimension to filter.
- },
- ],
- }
-
- pageToken: string, The value of the nextToken from the previous result page.
- maxResults: integer, Maximum number of results to return.
-
-Returns:
- An object of the form:
-
- { # Represents the list of DimensionValue resources.
- "nextPageToken": "A String", # Continuation token used to page through dimension values. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The dimension values returned in this response.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "kind": "dfareporting#dimensionValueList", # The kind of list this is, in this case dfareporting#dimensionValueList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.files.html b/docs/dyn/dfareporting_v1_3.files.html
deleted file mode 100644
index 2b67078..0000000
--- a/docs/dyn/dfareporting_v1_3.files.html
+++ /dev/null
@@ -1,243 +0,0 @@
-
-
-
-
Retrieves a report file by its report ID and file ID.
-
-Args:
- reportId: string, The ID of the report. (required)
- fileId: string, The ID of the report file. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- }
-
-
-
- get_media(reportId, fileId)
-
Retrieves a report file by its report ID and file ID.
-
-Args:
- reportId: string, The ID of the report. (required)
- fileId: string, The ID of the report file. (required)
-
-Returns:
- The media object as a string.
-
-
Lists files for a user profile.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by file ID.
- LAST_MODIFIED_TIME - Sort by 'lastmodifiedAt' field.
- scope: string, The scope that defines which results are returned, default is 'MINE'.
- Allowed values
- ALL - All files in account.
- MINE - My files.
- SHARED_WITH_ME - Files shared with me.
-
-Returns:
- An object of the form:
-
- { # Represents the list of File resources.
- "nextPageToken": "A String", # Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The files returned in this response.
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- },
- ],
- "kind": "dfareporting#fileList", # The kind of list this is, in this case dfareporting#fileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.html b/docs/dyn/dfareporting_v1_3.html
deleted file mode 100644
index 1787adb..0000000
--- a/docs/dyn/dfareporting_v1_3.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.
-
Method Details
-
- query(profileId, body)
-
Returns the fields that are compatible to be selected in the respective sections of a report criteria, given the fields already selected in the input report and user permissions.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a response to the queryCompatibleFields method.
- "kind": "dfareporting#compatibleFields", # The kind of resource this is, in this case dfareporting#compatibleFields.
- "reachReportCompatibleFields": { # Represents fields that are compatible to be selected for a report of type "REACH". # Contains items that are compatible to be selected for a report of type "REACH".
- "kind": "dfareporting#reachReportCompatibleFields", # The kind of resource this is, in this case dfareporting#reachReportCompatibleFields.
- "dimensions": [ # Dimensions which are compatible to be selected in the "dimensions" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "reachByFrequencyMetrics": [ # Metrics which are compatible to be selected in the "reachByFrequencyMetricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "pivotedActivityMetrics": [ # Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "dimensionFilters": [ # Dimensions which are compatible to be selected in the "dimensionFilters" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "metrics": [ # Metrics which are compatible to be selected in the "metricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- },
- "pathToConversionReportCompatibleFields": { # Represents fields that are compatible to be selected for a report of type "PATH_TO_CONVERSION". # Contains items that are compatible to be selected for a report of type "PATH_TO_CONVERSION".
- "metrics": [ # Metrics which are compatible to be selected in the "metricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "perInteractionDimensions": [ # Per-interaction dimensions which are compatible to be selected in the "perInteractionDimensions" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "kind": "dfareporting#pathToConversionReportCompatibleFields", # The kind of resource this is, in this case dfareporting#pathToConversionReportCompatibleFields.
- "conversionDimensions": [ # Conversion dimensions which are compatible to be selected in the "conversionDimensions" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "customFloodlightVariables": [ # Custom floodlight variables which are compatible to be selected in the "customFloodlightVariables" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- },
- "crossDimensionReachReportCompatibleFields": { # Represents fields that are compatible to be selected for a report of type "CROSS_DIMENSION_REACH". # Contains items that are compatible to be selected for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # Dimensions which are compatible to be selected in the "breakdown" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "metrics": [ # Metrics which are compatible to be selected in the "metricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "kind": "dfareporting#crossDimensionReachReportCompatibleFields", # The kind of resource this is, in this case dfareporting#crossDimensionReachReportCompatibleFields.
- "overlapMetrics": [ # Metrics which are compatible to be selected in the "overlapMetricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "dimensionFilters": [ # Dimensions which are compatible to be selected in the "dimensionFilters" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- },
- "floodlightReportCompatibleFields": { # Represents fields that are compatible to be selected for a report of type "FlOODLIGHT". # Contains items that are compatible to be selected for a report of type "FLOODLIGHT".
- "metrics": [ # Metrics which are compatible to be selected in the "metricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "kind": "dfareporting#floodlightReportCompatibleFields", # The kind of resource this is, in this case dfareporting#floodlightReportCompatibleFields.
- "dimensionFilters": [ # Dimensions which are compatible to be selected in the "dimensionFilters" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "dimensions": [ # Dimensions which are compatible to be selected in the "dimensions" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- },
- "reportCompatibleFields": { # Represents fields that are compatible to be selected for a report of type "STANDARD". # Contains items that are compatible to be selected for a report of type "STANDARD".
- "metrics": [ # Metrics which are compatible to be selected in the "metricNames" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "kind": "dfareporting#reportCompatibleFields", # The kind of resource this is, in this case dfareporting#reportCompatibleFields.
- "pivotedActivityMetrics": [ # Metrics which are compatible to be selected as activity metrics to pivot on in the "activities" section of the report.
- { # Represents a metric.
- "kind": "dfareporting#metric", # The kind of resource this is, in this case dfareporting#metric.
- "name": "A String", # The metric name, e.g. dfa:impressions
- },
- ],
- "dimensionFilters": [ # Dimensions which are compatible to be selected in the "dimensionFilters" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- "dimensions": [ # Dimensions which are compatible to be selected in the "dimensions" section of the report.
- { # Represents a dimension.
- "kind": "dfareporting#dimension", # The kind of resource this is, in this case dfareporting#dimension.
- "name": "A String", # The dimension name, e.g. dfa:advertiser
- },
- ],
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.reports.files.html b/docs/dyn/dfareporting_v1_3.reports.files.html
deleted file mode 100644
index 60ba96a..0000000
--- a/docs/dyn/dfareporting_v1_3.reports.files.html
+++ /dev/null
@@ -1,241 +0,0 @@
-
-
-
-
Retrieves a report file.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the report. (required)
- fileId: string, The ID of the report file. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- }
-
-
-
- get_media(profileId, reportId, fileId)
-
Retrieves a report file.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the report. (required)
- fileId: string, The ID of the report file. (required)
-
-Returns:
- The media object as a string.
-
-
Lists files for a report.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the parent report. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by file ID.
- LAST_MODIFIED_TIME - Sort by 'lastmodifiedAt' field.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
-
-Returns:
- An object of the form:
-
- { # Represents the list of File resources.
- "nextPageToken": "A String", # Continuation token used to page through files. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The files returned in this response.
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- },
- ],
- "kind": "dfareporting#fileList", # The kind of list this is, in this case dfareporting#fileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.reports.html b/docs/dyn/dfareporting_v1_3.reports.html
deleted file mode 100644
index deb2bfa..0000000
--- a/docs/dyn/dfareporting_v1_3.reports.html
+++ /dev/null
@@ -1,4510 +0,0 @@
-
-
-
-
Deletes a report by its ID.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
-
-
-
-
- get(profileId, reportId)
-
Retrieves a report by its ID.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
- insert(profileId, body)
-
Creates a report.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
Retrieves list of reports.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- pageToken: string, The value of the nextToken from the previous result page.
- maxResults: integer, Maximum number of results to return.
- sortOrder: string, Order of sorted results, default is 'DESCENDING'.
- Allowed values
- ASCENDING - Ascending order.
- DESCENDING - Descending order.
- sortField: string, The field by which to sort the list.
- Allowed values
- ID - Sort by report ID.
- LAST_MODIFIED_TIME - Sort by 'lastModifiedTime' field.
- NAME - Sort by name of reports.
- scope: string, The scope that defines which results are returned, default is 'MINE'.
- Allowed values
- ALL - All reports in account.
- MINE - My reports.
-
-Returns:
- An object of the form:
-
- { # Represents the list of reports.
- "nextPageToken": "A String", # Continuation token used to page through reports. To retrieve the next page of results, set the next request's "pageToken" to the value of this field. The page token is only valid for a limited amount of time and should not be persisted.
- "items": [ # The reports returned in this response.
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- },
- ],
- "kind": "dfareporting#reportList", # The kind of list this is, in this case dfareporting#reportList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(profileId, reportId, body)
-
Updates a report. This method supports patch semantics.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
- run(profileId, reportId, synchronous=None)
-
Runs a report.
-
-Args:
- profileId: string, The DFA profile ID. (required)
- reportId: string, The ID of the report. (required)
- synchronous: boolean, If set and true, tries to run the report synchronously.
-
-Returns:
- An object of the form:
-
- { # Represents a File resource. A File contains the meta-data for a report run. It shows the status of the run and holds the urls to the generated report data if the run is finished and the status is "REPORT_AVAILABLE".
- "status": "A String", # The status of the report file, one of:
- # - "PROCESSING"
- # - "REPORT_AVAILABLE"
- # - "FAILED"
- # - "CANCELLED"
- "kind": "dfareporting#file", # The kind of resource this is, in this case dfareporting#file.
- "format": "A String", # The output format of the report. Only available once the file is available.
- "dateRange": { # Represents a date range. # The date range for which the file has report data. The date range will always be the absolute date range for which the report is run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "fileName": "A String", # The file name of the file.
- "etag": "A String", # The eTag of this response for caching purposes.
- "reportId": "A String", # The ID of the report this file was generated from.
- "urls": { # The urls where the completed report file can be downloaded.
- "browserUrl": "A String", # The url for downloading the report data through a browser.
- "apiUrl": "A String", # The url for downloading the report data through the API.
- },
- "lastModifiedTime": "A String", # The timestamp in milliseconds since epoch when this file was last modified.
- "id": "A String", # The unique ID of this report file.
- }
-
-
-
- update(profileId, reportId, body)
-
Updates a report.
-
-Args:
- profileId: string, The DFA user profile ID. (required)
- reportId: string, The ID of the report. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a Report resource.
- "pathToConversionCriteria": { # The report criteria for a report of type "PATH_TO_CONVERSION".
- "conversionDimensions": [ # The list of conversion dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "reportProperties": { # The properties of the report.
- "clicksLookbackWindow": 42, # DFA checks to see if a click interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "pivotOnInteractionPath": True or False, # Enable pivoting on interaction path.
- "impressionsLookbackWindow": 42, # DFA checks to see if an impression interaction occurred within the specified period of time before a conversion. By default the value is pulled from Floodlight or you can manually enter a custom value. Valid values: 1-90.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "maximumInteractionGap": 42, # The maximum amount of time that can take place between interactions (clicks or impressions) by the same user. Valid values: 1-90.
- "includeAttributedIPConversions": True or False, # Deprecated: has no effect.
- "maximumClickInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- "maximumImpressionInteractions": 42, # The maximum number of click interactions to include in the report. Advertisers currently paying for E2C reports get up to 200 (100 clicks, 100 impressions). If another advertiser in your network is paying for E2C, you can have up to 5 total exposures per report.
- },
- "perInteractionDimensions": [ # The list of per interaction dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "activityFilters": [ # The list of 'dfa:activity' values to filter on.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customFloodlightVariables": [ # The list of custom floodlight variables the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "kind": "dfareporting#report", # The kind of resource this is, in this case dfareporting#report.
- "subAccountId": "A String", # The subbaccount ID to which this report belongs if applicable.
- "name": "A String", # The name of the report.
- "schedule": { # The report's schedule. Can only be set if the report's 'dateRange' is a relative date range and the relative date range is not "TODAY".
- "startDate": "A String", # Start date of date range for which scheduled reports should be run.
- "runsOnDayOfMonth": "A String", # Enum to define for "MONTHLY" scheduled reports whether reports should be repeated on the same day of the month as "startDate" or the same day of the week of the month. Possible values are:
- # - DAY_OF_MONTH
- # - WEEK_OF_MONTH
- # Example: If 'startDate' is Monday, April 2nd 2012 (2012-04-02), "DAY_OF_MONTH" would run subsequent reports on the 2nd of every Month, and "WEEK_OF_MONTH" would run subsequent reports on the first Monday of the month.
- "every": 42, # Defines every how many days, weeks or months the report should be run. Needs to be set when "repeats" is either "DAILY", "WEEKLY" or "MONTHLY".
- "expirationDate": "A String", # The expiration date when the scheduled report stops running.
- "active": True or False, # Whether the schedule is active or not. Must be set to either true or false.
- "repeats": "A String", # The interval for which the report is repeated, one of:
- # - "DAILY", also requires field "every" to be set.
- # - "WEEKLY", also requires fields "every" and "repeatsOnWeekDays" to be set.
- # - "TWICE_A_MONTH"
- # - "MONTHLY", also requires fields "every" and "runsOnDayOfMonth" to be set.
- # - "QUARTERLY"
- # - "YEARLY"
- "repeatsOnWeekDays": [ # List of week days "WEEKLY" on which scheduled reports should run.
- "A String",
- ],
- },
- "format": "A String", # The output format of the report, one of:
- # - "CSV"
- # - "EXCEL" If not specified, default format is "CSV". Note that the actual format in the completed report file might differ if for instance the report's size exceeds the format's capabilities. "CSV" will then be the fallback format.
- "ownerProfileId": "A String", # The user profile id of the owner of this report.
- "reachCriteria": { # The report criteria for a report of type "REACH".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reachByFrequencyMetricNames": [ # The list of names of Reach By Frequency metrics the report should include.
- "A String",
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "floodlightCriteria": { # The report criteria for a report of type "FLOODLIGHT".
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "floodlightConfigId": { # Represents a DimensionValue resource. # The floodlight ID for which to show data in this report. All advertisers associated with that ID will automatically be added. The dimension of the value needs to be 'dfa:floodlightConfigId'.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- "customRichMediaEvents": [ # The list of custom rich media events to include.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "reportProperties": { # The properties of the report.
- "includeUnattributedIPConversions": True or False, # Include conversions that have no associated cookies and no exposures. It’s therefore impossible to know how the user was exposed to your ads during the lookback window prior to a conversion.
- "includeUnattributedCookieConversions": True or False, # Include conversions of users with a DoubleClick cookie but without an exposure. That means the user did not click or see an ad from the advertiser within the Floodlight group, or that the interaction happened outside the lookback window.
- "includeAttributedIPConversions": True or False, # Include conversions that have no cookie, but do have an exposure path.
- },
- },
- "activeGrpCriteria": { # The report criteria for a report of type "ACTIVE_GRP".
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- # A valid active GRP report needs to have exactly one DimensionValue for the United States in addition to any advertiser or campaign dimension values.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "dimensions": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- },
- "delivery": { # The report's email delivery settings.
- "message": "A String", # The message to be sent with each email.
- "emailOwnerDeliveryType": "A String", # The type of delivery for the owner to receive, if enabled. One of:
- # - "ATTACHMENT"
- # - "LINK"
- "recipients": [ # The list of recipients to which to email the report.
- { # Represents a recipient.
- "kind": "dfareporting#recipient", # The kind of resource this is, in this case dfareporting#recipient.
- "deliveryType": "A String", # The delivery type for the recipient, one of:
- # - "ATTACHMENT"
- # - "LINK"
- "email": "A String", # The email address of the recipient.
- },
- ],
- "emailOwner": True or False, # Whether the report should be emailed to the report owner.
- },
- "etag": "A String", # The eTag of this response for caching purposes.
- "criteria": { # The report criteria for a report of type "STANDARD".
- "activities": { # Represents an activity group. # Activity group.
- "kind": "dfareporting#activities", # The kind of resource this is, in this case dfareporting#activities.
- "filters": [ # List of activity filters. The dimension values need to be all either of type "dfa:activity" or "dfa:activityGroup".
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "metricNames": [ # List of names of floodlight activity metrics.
- "A String",
- ],
- },
- "dimensions": [ # The list of standard dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range for which this report should be run.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- # Filters for different dimensions are ANDed, filters for the same dimension are grouped together and ORed.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "customRichMediaEvents": { # Represents a Custom Rich Media Events group. # Custom Rich Media Events group.
- "kind": "dfareporting#customRichMediaEvents", # The kind of resource this is, in this case dfareporting#customRichMediaEvents.
- "filteredEventIds": [ # List of custom rich media event IDs. Dimension values must be all of type dfa:richMediaEventTypeIdAndName.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- },
- },
- "id": "A String", # The unique ID identifying this report resource.
- "lastModifiedTime": "A String", # The timestamp (in milliseconds since epoch) of when this report was last modified.
- "fileName": "A String", # The file name used when generating report files for this report.
- "type": "A String", # The type of the report, one of:
- # - STANDARD
- # - REACH
- # - ACTIVE_GRP
- # - PATH_TO_CONVERSION
- # - FLOODLIGHT
- # - CROSS_DIMENSION_REACH
- "crossDimensionReachCriteria": { # The report criteria for a report of type "CROSS_DIMENSION_REACH".
- "breakdown": [ # The list of dimensions the report should include.
- { # Represents a sorted dimension.
- "kind": "dfareporting#sortedDimension", # The kind of resource this is, in this case dfareporting#sortedDimension.
- "name": "A String", # The name of the dimension.
- "sortOrder": "A String", # An optional sort order for the dimension column, one of:
- # - "ASCENDING"
- # - "DESCENDING"
- },
- ],
- "overlapMetricNames": [ # The list of names of overlap metrics the report should include.
- "A String",
- ],
- "metricNames": [ # The list of names of metrics the report should include.
- "A String",
- ],
- "dateRange": { # Represents a date range. # The date range this report should be run for.
- "startDate": "A String", # The start date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "kind": "dfareporting#dateRange", # The kind of resource this is, in this case dfareporting#dateRange.
- "endDate": "A String", # The end date of the date range, inclusive. A string of the format: "yyyy-MM-dd".
- "relativeDateRange": "A String", # The date range relative to the date of when the report is run, one of:
- # - "TODAY"
- # - "YESTERDAY"
- # - "WEEK_TO_DATE"
- # - "MONTH_TO_DATE"
- # - "QUARTER_TO_DATE"
- # - "YEAR_TO_DATE"
- # - "PREVIOUS_WEEK"
- # - "PREVIOUS_MONTH"
- # - "PREVIOUS_QUARTER"
- # - "PREVIOUS_YEAR"
- # - "LAST_7_DAYS"
- # - "LAST_30_DAYS"
- # - "LAST_90_DAYS"
- # - "LAST_365_DAYS"
- # - "LAST_24_MONTHS"
- },
- "dimensionFilters": [ # The list of filters on which dimensions are filtered.
- { # Represents a DimensionValue resource.
- "kind": "dfareporting#dimensionValue", # The kind of resource this is, in this case dfareporting#dimensionValue.
- "value": "A String", # The value of the dimension.
- "dimensionName": "A String", # The name of the dimension.
- "etag": "A String", # The eTag of this response for caching purposes.
- "matchType": "A String", # Determines how the 'value' field is matched when filtering. One of:
- # - EXACT (default if not specified)
- # - CONTAINS
- # - BEGINS_WITH
- # - WILDCARD_EXPRESSION (allowing '*' as a placeholder for variable length character sequences, it can be escaped with a backslash.) Note, only paid search dimensions ('dfa:paidSearch*') allow a matchType other than EXACT.
- "id": "A String", # The ID associated with the value if available.
- },
- ],
- "pivoted": True or False, # Whether the report is pivoted or not. Defaults to true.
- "dimension": "A String", # The dimension option, one of:
- # - "ADVERTISER"
- # - "CAMPAIGN"
- # - "SITE_BY_ADVERTISER"
- # - "SITE_BY_CAMPAIGN"
- },
- "accountId": "A String", # The account ID to which this report belongs.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/dfareporting_v1_3.userProfiles.html b/docs/dyn/dfareporting_v1_3.userProfiles.html
deleted file mode 100644
index dc0cbc7..0000000
--- a/docs/dyn/dfareporting_v1_3.userProfiles.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
Gets one user profile by ID.
-
-Args:
- profileId: string, The user profile ID. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a UserProfile resource.
- "userName": "A String", # The user name.
- "kind": "dfareporting#userProfile", # The kind of resource this is, in this case dfareporting#userProfile.
- "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
- "accountName": "A String", # The account name this profile belongs to.
- "etag": "A String", # The eTag of this response for caching purposes.
- "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
- "profileId": "A String", # The unique ID of the user profile.
- "accountId": "A String", # The account ID to which this profile belongs.
- }
-
-
-
- list()
-
Retrieves list of user profiles for a user.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # Represents the list of user profiles.
- "items": [ # The user profiles returned in this response.
- { # Represents a UserProfile resource.
- "userName": "A String", # The user name.
- "kind": "dfareporting#userProfile", # The kind of resource this is, in this case dfareporting#userProfile.
- "subAccountId": "A String", # The sub account ID this profile belongs to if applicable.
- "accountName": "A String", # The account name this profile belongs to.
- "etag": "A String", # The eTag of this response for caching purposes.
- "subAccountName": "A String", # The sub account name this profile belongs to if applicable.
- "profileId": "A String", # The unique ID of the user profile.
- "accountId": "A String", # The account ID to which this profile belongs.
- },
- ],
- "kind": "dfareporting#userProfileList", # The kind of list this is, in this case dfareporting#userProfileList.
- "etag": "A String", # The eTag of this response for caching purposes.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/discovery_v1.apis.html b/docs/dyn/discovery_v1.apis.html
deleted file mode 100644
index a97b661..0000000
--- a/docs/dyn/discovery_v1.apis.html
+++ /dev/null
@@ -1,397 +0,0 @@
-
-
-
-
Retrieve the list of APIs supported at this endpoint.
-
Method Details
-
- getRest(api, version)
-
Retrieve the description of a particular version of an api.
-
-Args:
- api: string, The name of the API. (required)
- version: string, The version of the API. (required)
-
-Returns:
- An object of the form:
-
- {
- "protocol": "rest", # The protocol described by this document.
- "methods": { # API-level methods for this API.
- "a_key": { # An individual method description.
- "scopes": [ # OAuth 2.0 scopes applicable to this method.
- "A String",
- ],
- "description": "A String", # Description of this method.
- "parameters": { # Details for all parameters in this method.
- "a_key": { # Details for a single parameter in this method.
- "properties": { # If this is a schema for an object, list the schema for each property of this object.
- "a_key": # Object with schema name: JsonSchema # A single property of this object. The value is itself a JSON Schema object describing this property.
- },
- "required": True or False, # Whether the parameter is required.
- "type": "A String", # The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- "description": "A String", # A description of this object.
- "format": "A String", # An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
- "default": "A String", # The default value of this property (if one exists).
- "items": # Object with schema name: JsonSchema # If this is a schema for an array, this property is the schema for each element in the array.
- "enum": [ # Values this parameter may take (if it is an enum).
- "A String",
- ],
- "maximum": "A String", # The maximum value of this parameter.
- "id": "A String", # Unique identifier for this schema.
- "enumDescriptions": [ # The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
- "A String",
- ],
- "minimum": "A String", # The minimum value of this parameter.
- "readOnly": True or False, # The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
- "location": "A String", # Whether this parameter goes in the query or the path for REST requests.
- "pattern": "A String", # The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
- "additionalProperties": # Object with schema name: JsonSchema # If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
- "repeated": True or False, # Whether this parameter may appear multiple times.
- "annotations": { # Additional information about this property.
- "required": [ # A list of methods for which this property is required on requests.
- "A String",
- ],
- },
- "$ref": "A String", # A reference to another schema. The value of this property is the "id" of another schema.
- },
- },
- "supportsMediaUpload": True or False, # Whether this method supports media uploads.
- "etagRequired": True or False, # Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.
- "mediaUpload": { # Media upload parameters.
- "maxSize": "A String", # Maximum size of a media upload, such as "1MB", "2GB" or "3TB".
- "protocols": { # Supported upload protocols.
- "simple": { # Supports uploading as a single HTTP request.
- "path": "A String", # The URI path to be used for upload. Should be used in conjunction with the basePath property at the api-level.
- "multipart": true, # True if this endpoint supports upload multipart media.
- },
- "resumable": { # Supports the Resumable Media Upload protocol.
- "path": "A String", # The URI path to be used for upload. Should be used in conjunction with the basePath property at the api-level.
- "multipart": true, # True if this endpoint supports uploading multipart media.
- },
- },
- "accept": [ # MIME Media Ranges for acceptable media uploads to this method.
- "A String",
- ],
- },
- "request": { # The schema for the request.
- "parameterName": "A String", # parameter name.
- "$ref": "A String", # Schema ID for the request schema.
- },
- "response": { # The schema for the response.
- "$ref": "A String", # Schema ID for the response schema.
- },
- "httpMethod": "A String", # HTTP method used by this method.
- "supportsSubscription": True or False, # Whether this method supports subscriptions.
- "parameterOrder": [ # Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the "most-significant" parameter appears first.
- "A String",
- ],
- "path": "A String", # The URI path of this REST method. Should be used in conjunction with the basePath property at the api-level.
- "id": "A String", # A unique ID for this method. This property can be used to match methods between different versions of Discovery.
- "supportsMediaDownload": True or False, # Whether this method supports media downloads.
- },
- },
- "labels": [ # Labels for the status of this API, such as labs or deprecated.
- "A String",
- ],
- "ownerName": "A String", # The name of the owner of this API. See ownerDomain.
- "batchPath": "batch", # The path for REST batch requests.
- "id": "A String", # The ID of this API.
- "features": [ # A list of supported features for this API.
- "A String",
- ],
- "ownerDomain": "A String", # The domain of the owner of this API. Together with the ownerName and a packagePath values, this can be used to generate a library for this API which would have a unique fully qualified name.
- "rootUrl": "A String", # The root URL under which all API services live.
- "parameters": { # Common parameters that apply across all apis.
- "a_key": { # Description of a single parameter.
- "properties": { # If this is a schema for an object, list the schema for each property of this object.
- "a_key": # Object with schema name: JsonSchema # A single property of this object. The value is itself a JSON Schema object describing this property.
- },
- "required": True or False, # Whether the parameter is required.
- "type": "A String", # The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- "description": "A String", # A description of this object.
- "format": "A String", # An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
- "default": "A String", # The default value of this property (if one exists).
- "items": # Object with schema name: JsonSchema # If this is a schema for an array, this property is the schema for each element in the array.
- "enum": [ # Values this parameter may take (if it is an enum).
- "A String",
- ],
- "maximum": "A String", # The maximum value of this parameter.
- "id": "A String", # Unique identifier for this schema.
- "enumDescriptions": [ # The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
- "A String",
- ],
- "minimum": "A String", # The minimum value of this parameter.
- "readOnly": True or False, # The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
- "location": "A String", # Whether this parameter goes in the query or the path for REST requests.
- "pattern": "A String", # The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
- "additionalProperties": # Object with schema name: JsonSchema # If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
- "repeated": True or False, # Whether this parameter may appear multiple times.
- "annotations": { # Additional information about this property.
- "required": [ # A list of methods for which this property is required on requests.
- "A String",
- ],
- },
- "$ref": "A String", # A reference to another schema. The value of this property is the "id" of another schema.
- },
- },
- "icons": { # Links to 16x16 and 32x32 icons representing the API.
- "x32": "A String", # The URL of the 32x32 icon.
- "x16": "A String", # The URL of the 16x16 icon.
- },
- "baseUrl": "A String", # [DEPRECATED] The base URL for REST requests.
- "etag": "A String", # The ETag for this response.
- "version": "A String", # The version of this API.
- "servicePath": "A String", # The base path for all REST requests.
- "schemas": { # The schemas for this API.
- "a_key": { # An individual schema description.
- "properties": { # If this is a schema for an object, list the schema for each property of this object.
- "a_key": # Object with schema name: JsonSchema # A single property of this object. The value is itself a JSON Schema object describing this property.
- },
- "required": True or False, # Whether the parameter is required.
- "type": "A String", # The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- "description": "A String", # A description of this object.
- "format": "A String", # An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
- "default": "A String", # The default value of this property (if one exists).
- "items": # Object with schema name: JsonSchema # If this is a schema for an array, this property is the schema for each element in the array.
- "enum": [ # Values this parameter may take (if it is an enum).
- "A String",
- ],
- "maximum": "A String", # The maximum value of this parameter.
- "id": "A String", # Unique identifier for this schema.
- "enumDescriptions": [ # The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
- "A String",
- ],
- "minimum": "A String", # The minimum value of this parameter.
- "readOnly": True or False, # The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
- "location": "A String", # Whether this parameter goes in the query or the path for REST requests.
- "pattern": "A String", # The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
- "additionalProperties": # Object with schema name: JsonSchema # If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
- "repeated": True or False, # Whether this parameter may appear multiple times.
- "annotations": { # Additional information about this property.
- "required": [ # A list of methods for which this property is required on requests.
- "A String",
- ],
- },
- "$ref": "A String", # A reference to another schema. The value of this property is the "id" of another schema.
- },
- },
- "resources": { # The resources in this API.
- "a_key": { # An individual resource description. Contains methods and sub-resources related to this resource.
- "methods": { # Methods on this resource.
- "a_key": { # Description for any methods on this resource.
- "scopes": [ # OAuth 2.0 scopes applicable to this method.
- "A String",
- ],
- "description": "A String", # Description of this method.
- "parameters": { # Details for all parameters in this method.
- "a_key": { # Details for a single parameter in this method.
- "properties": { # If this is a schema for an object, list the schema for each property of this object.
- "a_key": # Object with schema name: JsonSchema # A single property of this object. The value is itself a JSON Schema object describing this property.
- },
- "required": True or False, # Whether the parameter is required.
- "type": "A String", # The value type for this schema. A list of values can be found here: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- "description": "A String", # A description of this object.
- "format": "A String", # An additional regular expression or key that helps constrain the value. For more details see: http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.23
- "default": "A String", # The default value of this property (if one exists).
- "items": # Object with schema name: JsonSchema # If this is a schema for an array, this property is the schema for each element in the array.
- "enum": [ # Values this parameter may take (if it is an enum).
- "A String",
- ],
- "maximum": "A String", # The maximum value of this parameter.
- "id": "A String", # Unique identifier for this schema.
- "enumDescriptions": [ # The descriptions for the enums. Each position maps to the corresponding value in the "enum" array.
- "A String",
- ],
- "minimum": "A String", # The minimum value of this parameter.
- "readOnly": True or False, # The value is read-only, generated by the service. The value cannot be modified by the client. If the value is included in a POST, PUT, or PATCH request, it is ignored by the service.
- "location": "A String", # Whether this parameter goes in the query or the path for REST requests.
- "pattern": "A String", # The regular expression this parameter must conform to. Uses Java 6 regex format: http://docs.oracle.com/javase/6/docs/api/java/util/regex/Pattern.html
- "additionalProperties": # Object with schema name: JsonSchema # If this is a schema for an object, this property is the schema for any additional properties with dynamic keys on this object.
- "repeated": True or False, # Whether this parameter may appear multiple times.
- "annotations": { # Additional information about this property.
- "required": [ # A list of methods for which this property is required on requests.
- "A String",
- ],
- },
- "$ref": "A String", # A reference to another schema. The value of this property is the "id" of another schema.
- },
- },
- "supportsMediaUpload": True or False, # Whether this method supports media uploads.
- "etagRequired": True or False, # Whether this method requires an ETag to be specified. The ETag is sent as an HTTP If-Match or If-None-Match header.
- "mediaUpload": { # Media upload parameters.
- "maxSize": "A String", # Maximum size of a media upload, such as "1MB", "2GB" or "3TB".
- "protocols": { # Supported upload protocols.
- "simple": { # Supports uploading as a single HTTP request.
- "path": "A String", # The URI path to be used for upload. Should be used in conjunction with the basePath property at the api-level.
- "multipart": true, # True if this endpoint supports upload multipart media.
- },
- "resumable": { # Supports the Resumable Media Upload protocol.
- "path": "A String", # The URI path to be used for upload. Should be used in conjunction with the basePath property at the api-level.
- "multipart": true, # True if this endpoint supports uploading multipart media.
- },
- },
- "accept": [ # MIME Media Ranges for acceptable media uploads to this method.
- "A String",
- ],
- },
- "request": { # The schema for the request.
- "parameterName": "A String", # parameter name.
- "$ref": "A String", # Schema ID for the request schema.
- },
- "response": { # The schema for the response.
- "$ref": "A String", # Schema ID for the response schema.
- },
- "httpMethod": "A String", # HTTP method used by this method.
- "supportsSubscription": True or False, # Whether this method supports subscriptions.
- "parameterOrder": [ # Ordered list of required parameters, serves as a hint to clients on how to structure their method signatures. The array is ordered such that the "most-significant" parameter appears first.
- "A String",
- ],
- "path": "A String", # The URI path of this REST method. Should be used in conjunction with the basePath property at the api-level.
- "id": "A String", # A unique ID for this method. This property can be used to match methods between different versions of Discovery.
- "supportsMediaDownload": True or False, # Whether this method supports media downloads.
- },
- },
- "resources": { # Sub-resources on this resource.
- "a_key": # Object with schema name: RestResource # Description for any sub-resources on this resource.
- },
- },
- },
- "revision": "A String", # The version of this API.
- "description": "A String", # The description of this API.
- "canonicalName": "A String", # Indicates how the API name should be capitalized and split into various parts. Useful for generating pretty class names.
- "auth": { # Authentication information.
- "oauth2": { # OAuth 2.0 authentication information.
- "scopes": { # Available OAuth 2.0 scopes.
- "a_key": { # The scope value.
- "description": "A String", # Description of scope.
- },
- },
- },
- },
- "packagePath": "A String", # The package of the owner of this API. See ownerDomain.
- "kind": "discovery#restDescription", # The kind for this response.
- "name": "A String", # The name of this API.
- "basePath": "A String", # [DEPRECATED] The base path for REST requests.
- "title": "A String", # The title of this API.
- "discoveryVersion": "v1", # Indicate the version of the Discovery API used to generate this doc.
- "documentationLink": "A String", # A link to human readable documentation for the API.
- }
-
-
-
- list(name=None, preferred=None)
-
Retrieve the list of APIs supported at this endpoint.
-
-Args:
- name: string, Only include APIs with the given name.
- preferred: boolean, Return only the preferred version of an API.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The individual directory entries. One entry per api/version pair.
- {
- "kind": "discovery#directoryItem", # The kind for this response.
- "labels": [ # Labels for the status of this API, such as labs or deprecated.
- "A String",
- ],
- "description": "A String", # The description of this API.
- "icons": { # Links to 16x16 and 32x32 icons representing the API.
- "x32": "A String", # The URL of the 32x32 icon.
- "x16": "A String", # The URL of the 16x16 icon.
- },
- "discoveryRestUrl": "A String", # The URL for the discovery REST document.
- "preferred": True or False, # True if this version is the preferred version to use.
- "name": "A String", # The name of the API.
- "discoveryLink": "A String", # A link to the discovery document.
- "version": "A String", # The version of the API.
- "title": "A String", # The title of this API.
- "id": "A String", # The id of this API.
- "documentationLink": "A String", # A link to human readable documentation for the API.
- },
- ],
- "discoveryVersion": "v1", # Indicate the version of the Discovery API used to generate this doc.
- "kind": "discovery#directoryList", # The kind for this response.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/discovery_v1.html b/docs/dyn/discovery_v1.html
deleted file mode 100644
index e4ac00f..0000000
--- a/docs/dyn/discovery_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Creates a query.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a query.
- "kind": "doubleclickbidmanager#query", # The kind, fixed to "doubleclickbidmanager#query".
- "schedule": { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
- "endTimeMs": "A String", # Run the query periodically until the specified time.
- "frequency": "A String", # How often the query is run.
- },
- "timezoneCode": "A String", # Canonical timezone code for report data time. Defaults to America/New_York.
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "queryId": "A String", # Query ID.
- "params": { # Parameters of a query or report. # Query parameters.
- "metrics": [ # Metrics to include as columns in your report.
- "A String",
- ],
- "includeInviteData": True or False, # Whether to include data from Invite Media.
- "type": "A String", # Report type.
- "groupBys": [ # Data is grouped by the filters listed in this field.
- "A String",
- ],
- "filters": [ # Filters used to match traffic data in your report.
- { # Filter used to match traffic data in your report.
- "type": "A String", # Filter type.
- "value": "A String", # Filter value.
- },
- ],
- },
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "metadata": { # Query metadata. # Query metadata.
- "googleCloudStoragePathForLatestReport": "A String", # The path to the location in Google Cloud Storage where the latest report is stored.
- "dataRange": "A String", # Range of report data.
- "format": "A String", # Format of the generated report.
- "googleDrivePathForLatestReport": "A String", # The path in Google Drive for the latest report.
- "sendNotification": True or False, # Whether to send an email notification when a report is ready. Default to false.
- "shareEmailAddress": [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
- "A String",
- ],
- "reportCount": 42, # Number of reports that have been generated for the query.
- "running": True or False, # Whether the latest report is currently running.
- "latestReportRunTimeMs": "A String", # The time when the latest report started to run.
- "title": "A String", # Query title. It is used to name the reports generated from this query.
- },
-}
-
-
-Returns:
- An object of the form:
-
- { # Represents a query.
- "kind": "doubleclickbidmanager#query", # The kind, fixed to "doubleclickbidmanager#query".
- "schedule": { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
- "endTimeMs": "A String", # Run the query periodically until the specified time.
- "frequency": "A String", # How often the query is run.
- },
- "timezoneCode": "A String", # Canonical timezone code for report data time. Defaults to America/New_York.
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "queryId": "A String", # Query ID.
- "params": { # Parameters of a query or report. # Query parameters.
- "metrics": [ # Metrics to include as columns in your report.
- "A String",
- ],
- "includeInviteData": True or False, # Whether to include data from Invite Media.
- "type": "A String", # Report type.
- "groupBys": [ # Data is grouped by the filters listed in this field.
- "A String",
- ],
- "filters": [ # Filters used to match traffic data in your report.
- { # Filter used to match traffic data in your report.
- "type": "A String", # Filter type.
- "value": "A String", # Filter value.
- },
- ],
- },
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "metadata": { # Query metadata. # Query metadata.
- "googleCloudStoragePathForLatestReport": "A String", # The path to the location in Google Cloud Storage where the latest report is stored.
- "dataRange": "A String", # Range of report data.
- "format": "A String", # Format of the generated report.
- "googleDrivePathForLatestReport": "A String", # The path in Google Drive for the latest report.
- "sendNotification": True or False, # Whether to send an email notification when a report is ready. Default to false.
- "shareEmailAddress": [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
- "A String",
- ],
- "reportCount": 42, # Number of reports that have been generated for the query.
- "running": True or False, # Whether the latest report is currently running.
- "latestReportRunTimeMs": "A String", # The time when the latest report started to run.
- "title": "A String", # Query title. It is used to name the reports generated from this query.
- },
- }
-
-
-
- deletequery(queryId)
-
Deletes a stored query as well as the associated stored reports.
-
-Args:
- queryId: string, Query ID to delete. (required)
-
-
-
-
- getquery(queryId)
-
Retrieves a stored query.
-
-Args:
- queryId: string, Query ID to retrieve. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a query.
- "kind": "doubleclickbidmanager#query", # The kind, fixed to "doubleclickbidmanager#query".
- "schedule": { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
- "endTimeMs": "A String", # Run the query periodically until the specified time.
- "frequency": "A String", # How often the query is run.
- },
- "timezoneCode": "A String", # Canonical timezone code for report data time. Defaults to America/New_York.
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "queryId": "A String", # Query ID.
- "params": { # Parameters of a query or report. # Query parameters.
- "metrics": [ # Metrics to include as columns in your report.
- "A String",
- ],
- "includeInviteData": True or False, # Whether to include data from Invite Media.
- "type": "A String", # Report type.
- "groupBys": [ # Data is grouped by the filters listed in this field.
- "A String",
- ],
- "filters": [ # Filters used to match traffic data in your report.
- { # Filter used to match traffic data in your report.
- "type": "A String", # Filter type.
- "value": "A String", # Filter value.
- },
- ],
- },
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "metadata": { # Query metadata. # Query metadata.
- "googleCloudStoragePathForLatestReport": "A String", # The path to the location in Google Cloud Storage where the latest report is stored.
- "dataRange": "A String", # Range of report data.
- "format": "A String", # Format of the generated report.
- "googleDrivePathForLatestReport": "A String", # The path in Google Drive for the latest report.
- "sendNotification": True or False, # Whether to send an email notification when a report is ready. Default to false.
- "shareEmailAddress": [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
- "A String",
- ],
- "reportCount": 42, # Number of reports that have been generated for the query.
- "running": True or False, # Whether the latest report is currently running.
- "latestReportRunTimeMs": "A String", # The time when the latest report started to run.
- "title": "A String", # Query title. It is used to name the reports generated from this query.
- },
- }
-
-
-
- listqueries()
-
Retrieves stored queries.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # List queries response.
- "kind": "doubleclickbidmanager#listQueriesResponse", # The kind, fixed to "doubleclickbidmanager#listQueriesResponse".
- "queries": [ # Retrieved queries.
- { # Represents a query.
- "kind": "doubleclickbidmanager#query", # The kind, fixed to "doubleclickbidmanager#query".
- "schedule": { # Information on how frequently and when to run a query. # Information on how often and when to run a query.
- "endTimeMs": "A String", # Run the query periodically until the specified time.
- "frequency": "A String", # How often the query is run.
- },
- "timezoneCode": "A String", # Canonical timezone code for report data time. Defaults to America/New_York.
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "queryId": "A String", # Query ID.
- "params": { # Parameters of a query or report. # Query parameters.
- "metrics": [ # Metrics to include as columns in your report.
- "A String",
- ],
- "includeInviteData": True or False, # Whether to include data from Invite Media.
- "type": "A String", # Report type.
- "groupBys": [ # Data is grouped by the filters listed in this field.
- "A String",
- ],
- "filters": [ # Filters used to match traffic data in your report.
- { # Filter used to match traffic data in your report.
- "type": "A String", # Filter type.
- "value": "A String", # Filter value.
- },
- ],
- },
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if metadata.dataRange is CUSTOM_DATES and ignored otherwise.
- "metadata": { # Query metadata. # Query metadata.
- "googleCloudStoragePathForLatestReport": "A String", # The path to the location in Google Cloud Storage where the latest report is stored.
- "dataRange": "A String", # Range of report data.
- "format": "A String", # Format of the generated report.
- "googleDrivePathForLatestReport": "A String", # The path in Google Drive for the latest report.
- "sendNotification": True or False, # Whether to send an email notification when a report is ready. Default to false.
- "shareEmailAddress": [ # List of email addresses which are sent email notifications when the report is finished. Separate from sendNotification.
- "A String",
- ],
- "reportCount": 42, # Number of reports that have been generated for the query.
- "running": True or False, # Whether the latest report is currently running.
- "latestReportRunTimeMs": "A String", # The time when the latest report started to run.
- "title": "A String", # Query title. It is used to name the reports generated from this query.
- },
- },
- ],
- }
-
-
-
- runquery(queryId, body)
-
Runs a stored query to generate a report.
-
-Args:
- queryId: string, Query ID to run. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to run a stored query to generate a report.
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report. Note, reportDataEndTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise.
- "timezoneCode": "A String", # Canonical timezone code for report data time. Defaults to America/New_York.
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report. Note, reportDataStartTimeMs is required if dataRange is CUSTOM_DATES and ignored otherwise.
- "dataRange": "A String", # Report data range used to generate the report.
- }
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/doubleclickbidmanager_v1.reports.html b/docs/dyn/doubleclickbidmanager_v1.reports.html
deleted file mode 100644
index b901d0c..0000000
--- a/docs/dyn/doubleclickbidmanager_v1.reports.html
+++ /dev/null
@@ -1,133 +0,0 @@
-
-
-
-
Retrieves stored reports.
-
-Args:
- queryId: string, Query ID with which the reports are associated. (required)
-
-Returns:
- An object of the form:
-
- { # List reports response.
- "kind": "doubleclickbidmanager#listReportsResponse", # The kind, fixed to "doubleclickbidmanager#listReportsResponse".
- "reports": [ # Retrieved reports.
- { # Represents a report.
- "params": { # Parameters of a query or report. # Report parameters.
- "metrics": [ # Metrics to include as columns in your report.
- "A String",
- ],
- "includeInviteData": True or False, # Whether to include data from Invite Media.
- "type": "A String", # Report type.
- "groupBys": [ # Data is grouped by the filters listed in this field.
- "A String",
- ],
- "filters": [ # Filters used to match traffic data in your report.
- { # Filter used to match traffic data in your report.
- "type": "A String", # Filter type.
- "value": "A String", # Filter value.
- },
- ],
- },
- "key": { # Key used to identify a report. # Key used to identify a report.
- "queryId": "A String", # Query ID.
- "reportId": "A String", # Report ID.
- },
- "metadata": { # Report metadata. # Report metadata.
- "status": { # Report status. # Report status.
- "failure": { # An explanation of a report failure. # If the report failed, this records the cause.
- "errorCode": "A String", # Error code that shows why the report was not created.
- },
- "state": "A String", # The state of the report.
- "finishTimeMs": "A String", # The time when this report either completed successfully or failed.
- "format": "A String", # The file type of the report.
- },
- "reportDataEndTimeMs": "A String", # The ending time for the data that is shown in the report.
- "googleCloudStoragePath": "A String", # The path to the location in Google Cloud Storage where the report is stored.
- "reportDataStartTimeMs": "A String", # The starting time for the data that is shown in the report.
- },
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.about.html b/docs/dyn/drive_v2.about.html
deleted file mode 100644
index 24a3664..0000000
--- a/docs/dyn/drive_v2.about.html
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
Gets the information about the current user along with Drive API settings
-
-Args:
- includeSubscribed: boolean, When calculating the number of remaining change IDs, whether to include shared files and public files the user has opened. When set to false, this counts only change IDs for owned files and any shared or public files that the user has explictly added to a folder in Drive.
- startChangeId: string, Change ID to start counting from when calculating number of remaining change IDs
- maxChangeIdCount: string, Maximum number of remaining change IDs to count
-
-Returns:
- An object of the form:
-
- { # An item with user information and settings.
- "kind": "drive#about", # This is always drive#about.
- "features": [ # List of additional features enabled on this account.
- {
- "featureName": "A String", # The name of the feature.
- "featureRate": 3.14, # The request limit rate for this feature, in queries per second.
- },
- ],
- "quotaBytesUsed": "A String", # The number of quota bytes used by Google Drive.
- "user": { # The JSON template for a user. # The authenticated user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "permissionId": "A String", # The current user's ID as visible in the permissions collection.
- "maxUploadSizes": [ # List of max upload sizes for each file type. The most specific type takes precedence.
- {
- "type": "A String", # The file type.
- "size": "A String", # The max upload size for this type.
- },
- ],
- "name": "A String", # The name of the current user.
- "remainingChangeIds": "A String", # The number of remaining change ids.
- "additionalRoleInfo": [ # Information about supported additional roles per file type. The most specific type takes precedence.
- {
- "roleSets": [ # The supported additional roles per primary role.
- {
- "primaryRole": "A String", # A primary permission role.
- "additionalRoles": [ # The supported additional roles with the primary role.
- "A String",
- ],
- },
- ],
- "type": "A String", # The content type that this additional role info applies to.
- },
- ],
- "etag": "A String", # The ETag of the item.
- "importFormats": [ # The allowable import formats.
- {
- "source": "A String", # The imported file's content type to convert from.
- "targets": [ # The possible content types to convert to.
- "A String",
- ],
- },
- ],
- "quotaBytesTotal": "A String", # The total number of quota bytes.
- "rootFolderId": "A String", # The id of the root folder.
- "largestChangeId": "A String", # The largest change id.
- "quotaBytesUsedInTrash": "A String", # The number of quota bytes used by trashed items.
- "exportFormats": [ # The allowable export formats.
- {
- "source": "A String", # The content type to convert from.
- "targets": [ # The possible content types to convert to.
- "A String",
- ],
- },
- ],
- "quotaBytesUsedAggregate": "A String", # The number of quota bytes used by all Google apps (Drive, Picasa, etc.).
- "domainSharingPolicy": "A String", # The domain sharing policy for the current user.
- "selfLink": "A String", # A link back to this item.
- "isCurrentAppInstalled": True or False, # A boolean indicating whether the authenticated app is installed by the authenticated user.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.apps.html b/docs/dyn/drive_v2.apps.html
deleted file mode 100644
index 000d852..0000000
--- a/docs/dyn/drive_v2.apps.html
+++ /dev/null
@@ -1,192 +0,0 @@
-
-
-
-
Gets a specific app.
-
-Args:
- appId: string, The ID of the app. (required)
-
-Returns:
- An object of the form:
-
- { # The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details.
- "kind": "drive#app", # This is always drive#app.
- "primaryFileExtensions": [ # The list of primary file extensions.
- "A String",
- ],
- "secondaryMimeTypes": [ # The list of secondary mime types.
- "A String",
- ],
- "name": "A String", # The name of the app.
- "icons": [ # The various icons for the app.
- {
- "category": "A String", # Category of the icon. Allowed values are:
- # - application - icon for the application
- # - document - icon for a file associated with the app
- # - documentShared - icon for a shared file associated with the app
- "iconUrl": "A String", # URL for the icon.
- "size": 42, # Size of the icon. Represented as the maximum of the width and height.
- },
- ],
- "shortDescription": "A String", # A short description of the app.
- "secondaryFileExtensions": [ # The list of secondary file extensions.
- "A String",
- ],
- "useByDefault": True or False, # Whether the app is selected as the default handler for the types it supports.
- "installed": True or False, # Whether the app is installed.
- "supportsMultiOpen": True or False, # Whether this app supports opening more than one file.
- "productUrl": "A String", # A link to the product listing for this app.
- "productId": "A String", # The ID of the product listing for this app.
- "authorized": True or False, # Whether the app is authorized to access data on the user's Drive.
- "supportsCreate": True or False, # Whether this app supports creating new objects.
- "supportsImport": True or False, # Whether this app supports importing Google Docs.
- "openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids.
- "longDescription": "A String", # A long description of the app.
- "primaryMimeTypes": [ # The list of primary mime types.
- "A String",
- ],
- "id": "A String", # The ID of the app.
- "objectType": "A String", # The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
- }
-
-
-
- list()
-
Lists a user's installed apps.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A list of third-party applications which the user has installed or given access to Google Drive.
- "items": [ # The actual list of apps.
- { # The apps resource provides a list of the apps that a user has installed, with information about each app's supported MIME types, file extensions, and other details.
- "kind": "drive#app", # This is always drive#app.
- "primaryFileExtensions": [ # The list of primary file extensions.
- "A String",
- ],
- "secondaryMimeTypes": [ # The list of secondary mime types.
- "A String",
- ],
- "name": "A String", # The name of the app.
- "icons": [ # The various icons for the app.
- {
- "category": "A String", # Category of the icon. Allowed values are:
- # - application - icon for the application
- # - document - icon for a file associated with the app
- # - documentShared - icon for a shared file associated with the app
- "iconUrl": "A String", # URL for the icon.
- "size": 42, # Size of the icon. Represented as the maximum of the width and height.
- },
- ],
- "shortDescription": "A String", # A short description of the app.
- "secondaryFileExtensions": [ # The list of secondary file extensions.
- "A String",
- ],
- "useByDefault": True or False, # Whether the app is selected as the default handler for the types it supports.
- "installed": True or False, # Whether the app is installed.
- "supportsMultiOpen": True or False, # Whether this app supports opening more than one file.
- "productUrl": "A String", # A link to the product listing for this app.
- "productId": "A String", # The ID of the product listing for this app.
- "authorized": True or False, # Whether the app is authorized to access data on the user's Drive.
- "supportsCreate": True or False, # Whether this app supports creating new objects.
- "supportsImport": True or False, # Whether this app supports importing Google Docs.
- "openUrlTemplate": "A String", # The template url for opening files with this app. The template will contain {ids} and/or {exportIds} to be replaced by the actual file ids.
- "longDescription": "A String", # A long description of the app.
- "primaryMimeTypes": [ # The list of primary mime types.
- "A String",
- ],
- "id": "A String", # The ID of the app.
- "objectType": "A String", # The type of object this app creates (e.g. Chart). If empty, the app name should be used instead.
- },
- ],
- "kind": "drive#appList", # This is always drive#appList.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.changes.html b/docs/dyn/drive_v2.changes.html
deleted file mode 100644
index f069e26..0000000
--- a/docs/dyn/drive_v2.changes.html
+++ /dev/null
@@ -1,504 +0,0 @@
-
-
-
-
Gets a specific change.
-
-Args:
- changeId: string, The ID of the change. (required)
-
-Returns:
- An object of the form:
-
- { # Representation of a change to a file.
- "kind": "drive#change", # This is always drive#change.
- "deleted": True or False, # Whether the file has been deleted.
- "file": { # The metadata for a file. # The updated state of the file. Present if the file has not been deleted.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- },
- "modificationDate": "A String", # The time of this modification.
- "id": "A String", # The ID of the change.
- "selfLink": "A String", # A link back to this change.
- "fileId": "A String", # The ID of the file associated with this change.
- }
Lists the changes for a user.
-
-Args:
- includeSubscribed: boolean, Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.
- includeDeleted: boolean, Whether to include deleted items.
- pageToken: string, Page token for changes.
- maxResults: integer, Maximum number of changes to return.
- startChangeId: string, Change ID to start listing changes from.
-
-Returns:
- An object of the form:
-
- { # A list of changes for a user.
- "nextPageToken": "A String", # The page token for the next page of changes.
- "kind": "drive#changeList", # This is always drive#changeList.
- "items": [ # The actual list of changes.
- { # Representation of a change to a file.
- "kind": "drive#change", # This is always drive#change.
- "deleted": True or False, # Whether the file has been deleted.
- "file": { # The metadata for a file. # The updated state of the file. Present if the file has not been deleted.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- },
- "modificationDate": "A String", # The time of this modification.
- "id": "A String", # The ID of the change.
- "selfLink": "A String", # A link back to this change.
- "fileId": "A String", # The ID of the file associated with this change.
- },
- ],
- "nextLink": "A String", # A link to the next page of changes.
- "etag": "A String", # The ETag of the list.
- "largestChangeId": "A String", # The current largest change ID.
- "selfLink": "A String", # A link back to this list.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Subscribe to changes for a user.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
- includeSubscribed: boolean, Whether to include shared files and public files the user has opened. When set to false, the list will include owned files plus any shared or public files the user has explictly added to a folder in Drive.
- includeDeleted: boolean, Whether to include deleted items.
- pageToken: string, Page token for changes.
- maxResults: integer, Maximum number of changes to return.
- startChangeId: string, Change ID to start listing changes from.
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.channels.html b/docs/dyn/drive_v2.channels.html
deleted file mode 100644
index 6eaf6f7..0000000
--- a/docs/dyn/drive_v2.channels.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.children.html b/docs/dyn/drive_v2.children.html
deleted file mode 100644
index 6babcde..0000000
--- a/docs/dyn/drive_v2.children.html
+++ /dev/null
@@ -1,194 +0,0 @@
-
-
-
-
Removes a child from a folder.
-
-Args:
- folderId: string, The ID of the folder. (required)
- childId: string, The ID of the child. (required)
-
-
-
-
- get(folderId, childId)
-
Gets a specific child reference.
-
-Args:
- folderId: string, The ID of the folder. (required)
- childId: string, The ID of the child. (required)
-
-Returns:
- An object of the form:
-
- { # A reference to a folder's child.
- "kind": "drive#childReference", # This is always drive#childReference.
- "childLink": "A String", # A link to the child.
- "id": "A String", # The ID of the child.
- "selfLink": "A String", # A link back to this reference.
- }
-
-
-
- insert(folderId, body)
-
Inserts a file into a folder.
-
-Args:
- folderId: string, The ID of the folder. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A reference to a folder's child.
- "kind": "drive#childReference", # This is always drive#childReference.
- "childLink": "A String", # A link to the child.
- "id": "A String", # The ID of the child.
- "selfLink": "A String", # A link back to this reference.
- }
-
-
-Returns:
- An object of the form:
-
- { # A reference to a folder's child.
- "kind": "drive#childReference", # This is always drive#childReference.
- "childLink": "A String", # A link to the child.
- "id": "A String", # The ID of the child.
- "selfLink": "A String", # A link back to this reference.
- }
Lists a folder's children.
-
-Args:
- folderId: string, The ID of the folder. (required)
- q: string, Query string for searching children.
- pageToken: string, Page token for children.
- maxResults: integer, Maximum number of children to return.
-
-Returns:
- An object of the form:
-
- { # A list of children of a file.
- "nextPageToken": "A String", # The page token for the next page of children.
- "kind": "drive#childList", # This is always drive#childList.
- "items": [ # The actual list of children.
- { # A reference to a folder's child.
- "kind": "drive#childReference", # This is always drive#childReference.
- "childLink": "A String", # A link to the child.
- "id": "A String", # The ID of the child.
- "selfLink": "A String", # A link back to this reference.
- },
- ],
- "nextLink": "A String", # A link to the next page of children.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.comments.html b/docs/dyn/drive_v2.comments.html
deleted file mode 100644
index 5d95ed3..0000000
--- a/docs/dyn/drive_v2.comments.html
+++ /dev/null
@@ -1,627 +0,0 @@
-
-
-
-
Deletes a comment.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
-
-
-
-
- get(fileId, commentId, includeDeleted=None)
-
Gets a comment by ID.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- includeDeleted: boolean, If set, this will succeed when retrieving a deleted comment, and will include any deleted replies.
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-
- insert(fileId, body)
-
Creates a new comment on the given file.
-
-Args:
- fileId: string, The ID of the file. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
Lists a file's comments.
-
-Args:
- fileId: string, The ID of the file. (required)
- includeDeleted: boolean, If set, all comments and replies, including deleted comments and replies (with content stripped) will be returned.
- pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- updatedMin: string, Only discussions that were updated after this timestamp will be returned. Formatted as an RFC 3339 timestamp.
- maxResults: integer, The maximum number of discussions to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a list of comments on a file in Google Drive.
- "nextPageToken": "A String", # The token to use to request the next page of results.
- "items": [ # List of comments.
- { # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- },
- ],
- "kind": "drive#commentList", # This is always drive#commentList.
- "selfLink": "A String", # A link back to this list.
- "nextLink": "A String", # A link to the next page of comments.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(fileId, commentId, body)
-
Updates an existing comment. This method supports patch semantics.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-
- update(fileId, commentId, body)
-
Updates an existing comment.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a comment on a file in Google Drive.
- "status": "A String", # The status of this comment. Status can be changed by posting a reply to a comment with the desired status.
- # - "open" - The comment is still open.
- # - "resolved" - The comment has been resolved by one of its replies.
- "selfLink": "A String", # A link back to this comment.
- "kind": "drive#comment", # This is always drive#comment.
- "author": { # The JSON template for a user. # The user who wrote this comment.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this comment has been deleted. If a comment has been deleted the content will be cleared and this will only represent a comment that once existed.
- "replies": [ # Replies to this post.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "htmlContent": "A String", # HTML formatted content for this comment.
- "content": "A String", # The plain text content used to create this comment. This is not HTML safe and should only be used as a starting point to make edits to a comment's content.
- "modifiedDate": "A String", # The date when this comment or any of its replies were last modified.
- "context": { # The context of the file which is being commented on.
- "type": "A String", # The MIME type of the context snippet.
- "value": "A String", # Data representation of the segment of the file being commented on. In the case of a text file for example, this would be the actual text that the comment is about.
- },
- "createdDate": "A String", # The date when this comment was first created.
- "commentId": "A String", # The ID of the comment.
- "anchor": "A String", # A region of the document represented as a JSON string. See anchor documentation for details on how to define and interpret anchor properties.
- "fileTitle": "A String", # The title of the file which this comment is addressing.
- "fileId": "A String", # The file which this comment is addressing.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.files.html b/docs/dyn/drive_v2.files.html
deleted file mode 100644
index acbcd80..0000000
--- a/docs/dyn/drive_v2.files.html
+++ /dev/null
@@ -1,2320 +0,0 @@
-
-
-
-
Creates a copy of the specified file.
-
-Args:
- fileId: string, The ID of the file to copy. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
-}
-
- pinned: boolean, Whether to pin the head revision of the new copy.
- convert: boolean, Whether to convert this file to the corresponding Google Docs format.
- visibility: string, The visibility of the new file. This parameter is only relevant when the source is not a native Google Doc and convert=false.
- Allowed values
- DEFAULT - The visibility of the new file is determined by the user's default visibility/sharing policies.
- PRIVATE - The new file will be visible to only the owner.
- ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- timedTextLanguage: string, The language of the timed text.
- timedTextTrackName: string, The timed text track name.
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
-
-
-
- delete(fileId)
-
Permanently deletes a file by ID. Skips the trash.
-
-Args:
- fileId: string, The ID of the file to delete. (required)
-
Gets a file's metadata by ID.
-
-Args:
- fileId: string, The ID for the file in question. (required)
- projection: string, This parameter is deprecated and has no function.
- Allowed values
- BASIC - Deprecated
- FULL - Deprecated
- updateViewedDate: boolean, Whether to update the view date after successfully retrieving the file.
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
Insert a new file.
-
-Args:
- body: object, The request body.
- The object takes the form of:
-
-{ # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
-}
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- convert: boolean, Whether to convert this file to the corresponding Google Docs format.
- useContentAsIndexableText: boolean, Whether to use the content as indexable text.
- visibility: string, The visibility of the new file. This parameter is only relevant when convert=false.
- Allowed values
- DEFAULT - The visibility of the new file is determined by the user's default visibility/sharing policies.
- PRIVATE - The new file will be visible to only the owner.
- ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- timedTextLanguage: string, The language of the timed text.
- timedTextTrackName: string, The timed text track name.
- pinned: boolean, Whether to pin the head revision of the uploaded file.
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
Lists the user's files.
-
-Args:
- q: string, Query string for searching files.
- projection: string, This parameter is deprecated and has no function.
- Allowed values
- BASIC - Deprecated
- FULL - Deprecated
- pageToken: string, Page token for files.
- maxResults: integer, Maximum number of files to return.
-
-Returns:
- An object of the form:
-
- { # A list of files.
- "nextPageToken": "A String", # The page token for the next page of files.
- "kind": "drive#fileList", # This is always drive#fileList.
- "items": [ # The actual list of files.
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- },
- ],
- "nextLink": "A String", # A link to the next page of files.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates file metadata and/or content. This method supports patch semantics.
-
-Args:
- fileId: string, The ID of the file to update. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
-}
-
- newRevision: boolean, Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota).
- pinned: boolean, Whether to pin the new revision.
- ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
- timedTextTrackName: string, The timed text track name.
- convert: boolean, Whether to convert this file to the corresponding Google Docs format.
- useContentAsIndexableText: boolean, Whether to use the content as indexable text.
- setModifiedDate: boolean, Whether to set the modified date with the supplied modified date.
- timedTextLanguage: string, The language of the timed text.
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
-
-
-
- touch(fileId)
-
Set the file's updated time to the current server time.
-
-Args:
- fileId: string, The ID of the file to update. (required)
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
-
-
-
- trash(fileId)
-
Moves a file to the trash.
-
-Args:
- fileId: string, The ID of the file to trash. (required)
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
-
-
-
- untrash(fileId)
-
Restores a file from the trash.
-
-Args:
- fileId: string, The ID of the file to untrash. (required)
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
Updates file metadata and/or content.
-
-Args:
- fileId: string, The ID of the file to update. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
-}
-
- newRevision: boolean, Whether a blob upload should create a new revision. If not set or false, the blob data in the current head revision is replaced. If true, a new blob is created as head revision, and previous revisions are preserved (causing increased use of the user's data storage quota).
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- ocrLanguage: string, If ocr is true, hints at the language to use. Valid values are ISO 639-1 codes.
- ocr: boolean, Whether to attempt OCR on .jpg, .png, .gif, or .pdf uploads.
- pinned: boolean, Whether to pin the new revision.
- updateViewedDate: boolean, Whether to update the view date after successfully updating the file.
- timedTextTrackName: string, The timed text track name.
- convert: boolean, Whether to convert this file to the corresponding Google Docs format.
- useContentAsIndexableText: boolean, Whether to use the content as indexable text.
- setModifiedDate: boolean, Whether to set the modified date with the supplied modified date.
- timedTextLanguage: string, The language of the timed text.
-
-Returns:
- An object of the form:
-
- { # The metadata for a file.
- "mimeType": "A String", # The MIME type of the file. This is only mutable on update when uploading new content. This field can be left blank, and the mimetype will be determined from the uploaded content's MIME type.
- "lastViewedByMeDate": "A String", # Last time this file was viewed by the user (formatted RFC 3339 timestamp).
- "appDataContents": True or False, # Whether this file is in the appdata folder.
- "thumbnailLink": "A String", # A link to the file's thumbnail.
- "labels": { # A group of labels for the file.
- "restricted": True or False, # Whether viewers are prevented from downloading this file.
- "hidden": True or False, # Whether this file is hidden from the user.
- "viewed": True or False, # Whether this file has been viewed by this user.
- "starred": True or False, # Whether this file is starred by the user.
- "trashed": True or False, # Whether this file has been trashed.
- },
- "indexableText": { # Indexable text attributes for the file (can only be written)
- "text": "A String", # The text to be indexed for this file.
- },
- "explicitlyTrashed": True or False, # Whether this file has been explicitly trashed, as opposed to recursively trashed. This will only be populated if the file is trashed.
- "lastModifyingUserName": "A String", # Name of the last user to modify this file.
- "writersCanShare": True or False, # Whether writers can share the document with other users.
- "owners": [ # The owner(s) of this file.
- { # The JSON template for a user.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- ],
- "id": "A String", # The ID of the file.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this file.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "copyable": True or False, # Whether the file can be copied by the current user.
- "ownerNames": [ # Name(s) of the owner(s) of this file.
- "A String",
- ],
- "sharedWithMeDate": "A String", # Time at which this file was shared with the user (formatted RFC 3339 timestamp).
- "webViewLink": "A String", # A link only available on public folders for viewing their static web assets (HTML, CSS, JS, etc) via Google Drive's Website Hosting.
- "etag": "A String", # ETag of the file.
- "parents": [ # Collection of parent folders which contain this file.
- # Setting this field will put the file in all of the provided folders. On insert, if no folders are provided, the file will be placed in the default root folder.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "shared": True or False, # Whether the file has been shared.
- "thumbnail": { # Thumbnail for the file. Only accepted on upload and for files that are not already thumbnailed by Google.
- "mimeType": "A String", # The MIME type of the thumbnail.
- "image": "A String", # The URL-safe Base64 encoded bytes of the thumbnail image.
- },
- "openWithLinks": { # A map of the id of each of the user's apps to a link to open this file with that app. Only populated when the drive.apps.readonly scope is used.
- "a_key": "A String",
- },
- "imageMediaMetadata": { # Metadata about image media. This will only be present for image types, and its contents will depend on what can be parsed from the image content.
- "exposureBias": 3.14, # The exposure bias of the photo (APEX value).
- "exposureTime": 3.14, # The length of the exposure, in seconds.
- "cameraMake": "A String", # The make of the camera used to create the photo.
- "maxApertureValue": 3.14, # The smallest f-number of the lens at the focal length used to create the photo (APEX value).
- "isoSpeed": 42, # The ISO speed used to create the photo.
- "focalLength": 3.14, # The focal length used to create the photo, in millimeters.
- "exposureMode": "A String", # The exposure mode used to create the photo.
- "colorSpace": "A String", # The color space of the photo.
- "location": { # Geographic location information stored in the image.
- "latitude": 3.14, # The latitude stored in the image.
- "altitude": 3.14, # The altitude stored in the image.
- "longitude": 3.14, # The longitude stored in the image.
- },
- "subjectDistance": 42, # The distance to the subject of the photo, in meters.
- "height": 42, # The height of the image in pixels.
- "lens": "A String", # The lens used to create the photo.
- "date": "A String", # The date and time the photo was taken (EXIF format timestamp).
- "width": 42, # The width of the image in pixels.
- "meteringMode": "A String", # The metering mode used to create the photo.
- "flashUsed": True or False, # Whether a flash was used to create the photo.
- "aperture": 3.14, # The aperture used to create the photo (f-number).
- "rotation": 42, # The rotation in clockwise degrees from the image's original orientation.
- "sensor": "A String", # The type of sensor used to create the photo.
- "whiteBalance": "A String", # The white balance mode used to create the photo.
- "cameraModel": "A String", # The model of the camera used to create the photo.
- },
- "description": "A String", # A short description of the file.
- "webContentLink": "A String", # A link for downloading the content of the file in a browser using cookie based authentication. In cases where the content is shared publicly, the content can be downloaded without any credentials.
- "editable": True or False, # Whether the file can be edited by the current user.
- "kind": "drive#file", # The type of file. This is always drive#file.
- "quotaBytesUsed": "A String", # The number of quota bytes used by this file.
- "fileSize": "A String", # The size of the file in bytes. This is only populated for files with content stored in Drive.
- "createdDate": "A String", # Create time for this file (formatted ISO8601 timestamp).
- "properties": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "md5Checksum": "A String", # An MD5 checksum for the content of this file. This is populated only for files with content stored in Drive.
- "iconLink": "A String", # A link to the file's icon.
- "defaultOpenWithLink": "A String", # A link to open this file with the user's default app for this file. Only populated when the drive.apps.readonly scope is used.
- "embedLink": "A String", # A link for embedding the file.
- "alternateLink": "A String", # A link for opening the file in using a relevant Google editor or viewer.
- "title": "A String", # The title of this file.
- "modifiedByMeDate": "A String", # Last time this file was modified by the user (formatted RFC 3339 timestamp). Note that setting modifiedDate will also update the modifiedByMe date for the user which set the date.
- "downloadUrl": "A String", # Short lived download URL for the file. This is only populated for files with content stored in Drive.
- "userPermission": { # A permission for a file. # The permissions for the authenticated user on this file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- "originalFilename": "A String", # The original filename if the file was uploaded manually, or the original title if the file was inserted through the API. Note that renames of the title will not change the original filename. This will only be populated on files with content stored in Drive.
- "fileExtension": "A String", # The file extension used when downloading this file. This field is read only. To set the extension, include it in the title when creating the file. This is only populated for files with content stored in Drive.
- "headRevisionId": "A String", # The ID of the file's head revision. This will only be populated for files with content stored in Drive.
- "selfLink": "A String", # A link back to this file.
- "modifiedDate": "A String", # Last time this file was modified by anyone (formatted RFC 3339 timestamp). This is only mutable on update when the setModifiedDate parameter is set.
- }
Subscribe to changes on a file
-
-Args:
- fileId: string, The ID for the file in question. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
- projection: string, This parameter is deprecated and has no function.
- Allowed values
- BASIC - Deprecated
- FULL - Deprecated
- updateViewedDate: boolean, Whether to update the view date after successfully retrieving the file.
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.html b/docs/dyn/drive_v2.html
deleted file mode 100644
index 471c46c..0000000
--- a/docs/dyn/drive_v2.html
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
Removes a parent from a file.
-
-Args:
- fileId: string, The ID of the file. (required)
- parentId: string, The ID of the parent. (required)
-
-
-
-
- get(fileId, parentId)
-
Gets a specific parent reference.
-
-Args:
- fileId: string, The ID of the file. (required)
- parentId: string, The ID of the parent. (required)
-
-Returns:
- An object of the form:
-
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- }
-
-
-
- insert(fileId, body)
-
Adds a parent folder for a file.
-
-Args:
- fileId: string, The ID of the file. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
-}
-
-
-Returns:
- An object of the form:
-
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- }
-
-
-
- list(fileId)
-
Lists a file's parents.
-
-Args:
- fileId: string, The ID of the file. (required)
-
-Returns:
- An object of the form:
-
- { # A list of a file's parents.
- "items": [ # The actual list of parents.
- { # A reference to a file's parent.
- "selfLink": "A String", # A link back to this reference.
- "kind": "drive#parentReference", # This is always drive#parentReference.
- "id": "A String", # The ID of the parent.
- "isRoot": True or False, # Whether or not the parent is the root folder.
- "parentLink": "A String", # A link to the parent.
- },
- ],
- "kind": "drive#parentList", # This is always drive#parentList.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.permissions.html b/docs/dyn/drive_v2.permissions.html
deleted file mode 100644
index dddaf83..0000000
--- a/docs/dyn/drive_v2.permissions.html
+++ /dev/null
@@ -1,392 +0,0 @@
-
-
-
-
Deletes a permission from a file.
-
-Args:
- fileId: string, The ID for the file. (required)
- permissionId: string, The ID for the permission. (required)
-
-
-
-
- get(fileId, permissionId)
-
Gets a permission by ID.
-
-Args:
- fileId: string, The ID for the file. (required)
- permissionId: string, The ID for the permission. (required)
-
-Returns:
- An object of the form:
-
- { # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- }
Inserts a permission for a file.
-
-Args:
- fileId: string, The ID for the file. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
-}
-
- sendNotificationEmails: boolean, Whether to send notification emails when sharing to users or groups.
- emailMessage: string, A custom message to include in notification emails.
-
-Returns:
- An object of the form:
-
- { # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- }
-
-
-
- list(fileId)
-
Lists a file's permissions.
-
-Args:
- fileId: string, The ID for the file. (required)
-
-Returns:
- An object of the form:
-
- { # A list of permissions associated with a file.
- "items": [ # The actual list of permissions.
- { # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- },
- ],
- "kind": "drive#permissionList", # This is always drive#permissionList.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
Updates a permission. This method supports patch semantics.
-
-Args:
- fileId: string, The ID for the file. (required)
- permissionId: string, The ID for the permission. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
-}
-
- transferOwnership: boolean, Whether changing a role to 'owner' should also downgrade the current owners to writers.
-
-Returns:
- An object of the form:
-
- { # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- }
Updates a permission.
-
-Args:
- fileId: string, The ID for the file. (required)
- permissionId: string, The ID for the permission. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
-}
-
- transferOwnership: boolean, Whether changing a role to 'owner' should also downgrade the current owners to writers.
-
-Returns:
- An object of the form:
-
- { # A permission for a file.
- "withLink": True or False, # Whether the link is required for this permission.
- "domain": "A String", # The domain name of the entity this permission refers to. This is an output-only field which is populated when the permission type is "user", "group" or "domain".
- "name": "A String", # The name for this permission.
- "kind": "drive#permission", # This is always drive#permission.
- "value": "A String", # The email address or domain name for the entity. This is used during inserts and is not populated in responses.
- "id": "A String", # The ID of the permission.
- "authKey": "A String", # The authkey parameter required for this permission.
- "etag": "A String", # The ETag of the permission.
- "emailAddress": "A String", # The email address of the user this permission refers to. This is an output-only field which is populated when the permission type is "user" and the given user's Google+ profile privacy settings allow exposing their email address.
- "photoLink": "A String", # A link to the profile photo, if available.
- "role": "A String", # The primary role for this user. Allowed values are:
- # - owner
- # - reader
- # - writer
- "type": "A String", # The account type. Allowed values are:
- # - user
- # - group
- # - domain
- # - anyone
- "additionalRoles": [ # Additional roles for this user. Only commenter is currently allowed.
- "A String",
- ],
- "selfLink": "A String", # A link back to this permission.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.properties.html b/docs/dyn/drive_v2.properties.html
deleted file mode 100644
index a5f7e24..0000000
--- a/docs/dyn/drive_v2.properties.html
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
Deletes a property.
-
-Args:
- fileId: string, The ID of the file. (required)
- propertyKey: string, The key of the property. (required)
- visibility: string, The visibility of the property.
-
-
-
-
- get(fileId, propertyKey, visibility=None)
-
Gets a property by its key.
-
-Args:
- fileId: string, The ID of the file. (required)
- propertyKey: string, The key of the property. (required)
- visibility: string, The visibility of the property.
-
-Returns:
- An object of the form:
-
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- }
-
-
-
- insert(fileId, body)
-
Adds a property to a file.
-
-Args:
- fileId: string, The ID of the file. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
-}
-
-
-Returns:
- An object of the form:
-
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- }
-
-
-
- list(fileId)
-
Lists a file's properties.
-
-Args:
- fileId: string, The ID of the file. (required)
-
-Returns:
- An object of the form:
-
- { # A collection of properties, key-value pairs that are either public or private to an application.
- "items": [ # The list of properties.
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- },
- ],
- "kind": "drive#propertyList", # This is always drive#propertyList.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # The link back to this list.
- }
Updates a property. This method supports patch semantics.
-
-Args:
- fileId: string, The ID of the file. (required)
- propertyKey: string, The key of the property. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
-}
-
- visibility: string, The visibility of the property.
-
-Returns:
- An object of the form:
-
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- }
Updates a property.
-
-Args:
- fileId: string, The ID of the file. (required)
- propertyKey: string, The key of the property. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
-}
-
- visibility: string, The visibility of the property.
-
-Returns:
- An object of the form:
-
- { # A key-value pair that is either public or private to an application.
- "kind": "drive#property", # This is always drive#property.
- "value": "A String", # The value of this property.
- "etag": "A String", # ETag of the property.
- "visibility": "A String", # The visibility of this property.
- "key": "A String", # The key of this property.
- "selfLink": "A String", # The link back to this property.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.realtime.html b/docs/dyn/drive_v2.realtime.html
deleted file mode 100644
index cea77ee..0000000
--- a/docs/dyn/drive_v2.realtime.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Exports the contents of the Realtime API data model associated with this file as JSON.
-
Method Details
-
- get(fileId)
-
Exports the contents of the Realtime API data model associated with this file as JSON.
-
-Args:
- fileId: string, The ID of the file that the Realtime API data model is associated with. (required)
-
-
-
-
- get_media(fileId)
-
Exports the contents of the Realtime API data model associated with this file as JSON.
-
-Args:
- fileId: string, The ID of the file that the Realtime API data model is associated with. (required)
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.replies.html b/docs/dyn/drive_v2.replies.html
deleted file mode 100644
index e393640..0000000
--- a/docs/dyn/drive_v2.replies.html
+++ /dev/null
@@ -1,384 +0,0 @@
-
-
-
-
Deletes a reply.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- replyId: string, The ID of the reply. (required)
-
Gets a reply.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- replyId: string, The ID of the reply. (required)
- includeDeleted: boolean, If set, this will succeed when retrieving a deleted reply.
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- }
-
-
-
- insert(fileId, commentId, body)
-
Creates a new reply to the given comment.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
-}
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- }
Lists all of the replies to a comment.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- includeDeleted: boolean, If set, all replies, including deleted replies (with content stripped) will be returned.
- pageToken: string, The continuation token, used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of replies to include in the response, used for paging.
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a list of replies to a comment on a file in Google Drive.
- "nextPageToken": "A String", # The token to use to request the next page of results.
- "items": [ # List of reply.
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- },
- ],
- "kind": "drive#commentReplyList", # This is always drive#commentReplyList.
- "selfLink": "A String", # A link back to this list.
- "nextLink": "A String", # A link to the next page of replies.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(fileId, commentId, replyId, body)
-
Updates an existing reply. This method supports patch semantics.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- replyId: string, The ID of the reply. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
-}
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- }
-
-
-
- update(fileId, commentId, replyId, body)
-
Updates an existing reply.
-
-Args:
- fileId: string, The ID of the file. (required)
- commentId: string, The ID of the comment. (required)
- replyId: string, The ID of the reply. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
-}
-
-
-Returns:
- An object of the form:
-
- { # A JSON representation of a reply to a comment on a file in Google Drive.
- "kind": "drive#commentReply", # This is always drive#commentReply.
- "author": { # The JSON template for a user. # The user who wrote this reply.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "deleted": True or False, # Whether this reply has been deleted. If a reply has been deleted the content will be cleared and this will only represent a reply that once existed.
- "htmlContent": "A String", # HTML formatted content for this reply.
- "content": "A String", # The plain text content used to create this reply. This is not HTML safe and should only be used as a starting point to make edits to a reply's content. This field is required on inserts if no verb is specified (resolve/reopen).
- "verb": "A String", # The action this reply performed to the parent comment. When creating a new reply this is the action to be perform to the parent comment. Possible values are:
- # - "resolve" - To resolve a comment.
- # - "reopen" - To reopen (un-resolve) a comment.
- "replyId": "A String", # The ID of the reply.
- "modifiedDate": "A String", # The date when this reply was last modified.
- "createdDate": "A String", # The date when this reply was first created.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/drive_v2.revisions.html b/docs/dyn/drive_v2.revisions.html
deleted file mode 100644
index 1d9645d..0000000
--- a/docs/dyn/drive_v2.revisions.html
+++ /dev/null
@@ -1,349 +0,0 @@
-
-
-
-
Removes a revision.
-
-Args:
- fileId: string, The ID of the file. (required)
- revisionId: string, The ID of the revision. (required)
-
-
-
-
- get(fileId, revisionId)
-
Gets a specific revision.
-
-Args:
- fileId: string, The ID of the file. (required)
- revisionId: string, The ID of the revision. (required)
-
-Returns:
- An object of the form:
-
- { # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- }
-
-
-
- list(fileId)
-
Lists a file's revisions.
-
-Args:
- fileId: string, The ID of the file. (required)
-
-Returns:
- An object of the form:
-
- { # A list of revisions of a file.
- "items": [ # The actual list of revisions.
- { # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- },
- ],
- "kind": "drive#revisionList", # This is always drive#revisionList.
- "etag": "A String", # The ETag of the list.
- "selfLink": "A String", # A link back to this list.
- }
-
-
-
- patch(fileId, revisionId, body)
-
Updates a revision. This method supports patch semantics.
-
-Args:
- fileId: string, The ID for the file. (required)
- revisionId: string, The ID for the revision. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- }
-
-
-Returns:
- An object of the form:
-
- { # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- }
-
-
-
- update(fileId, revisionId, body)
-
Updates a revision.
-
-Args:
- fileId: string, The ID for the file. (required)
- revisionId: string, The ID for the revision. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- }
-
-
-Returns:
- An object of the form:
-
- { # A revision of a file.
- "mimeType": "A String", # The MIME type of the revision.
- "pinned": True or False, # Whether this revision is pinned to prevent automatic purging. This will only be populated and can only be modified on files with content stored in Drive which are not Google Docs. Revisions can also be pinned when they are created through the drive.files.insert/update/copy by using the pinned query parameter.
- "kind": "drive#revision", # This is always drive#revision.
- "publishedLink": "A String", # A link to the published revision.
- "publishedOutsideDomain": True or False, # Whether this revision is published outside the domain. This is only populated and can only be modified for Google Docs.
- "lastModifyingUser": { # The JSON template for a user. # The last user to modify this revision.
- "picture": { # The user's profile picture.
- "url": "A String", # A URL that points to a profile picture of this user.
- },
- "kind": "drive#user", # This is always drive#user.
- "isAuthenticatedUser": True or False, # Whether this user is the same as the authenticated user for whom the request was made.
- "displayName": "A String", # A plain text displayable name for this user.
- "permissionId": "A String", # The user's ID as visible in the permissions collection.
- },
- "publishAuto": True or False, # Whether subsequent revisions will be automatically republished. This is only populated and can only be modified for Google Docs.
- "published": True or False, # Whether this revision is published. This is only populated and can only be modified for Google Docs.
- "downloadUrl": "A String", # Short term download URL for the file. This will only be populated on files with content stored in Drive.
- "selfLink": "A String", # A link back to this revision.
- "etag": "A String", # The ETag of the revision.
- "fileSize": "A String", # The size of the revision in bytes. This will only be populated on files with content stored in Drive.
- "exportLinks": { # Links for exporting Google Docs to specific formats.
- "a_key": "A String", # A mapping from export format to URL
- },
- "lastModifyingUserName": "A String", # Name of the last user to modify this revision.
- "originalFilename": "A String", # The original filename when this revision was created. This will only be populated on files with content stored in Drive.
- "id": "A String", # The ID of the revision.
- "md5Checksum": "A String", # An MD5 checksum for the content of this revision. This will only be populated on files with content stored in Drive.
- "modifiedDate": "A String", # Last time this revision was modified (formatted RFC 3339 timestamp).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/freebase_v1.html b/docs/dyn/freebase_v1.html
deleted file mode 100644
index c5a4ae2..0000000
--- a/docs/dyn/freebase_v1.html
+++ /dev/null
@@ -1,212 +0,0 @@
-
-
-
-
Returns the scaled/cropped image attached to a freebase node.
-
-Args:
- id: string, Freebase entity or content id, mid, or guid. (required) (repeated)
- maxwidth: integer, Maximum width in pixels for resulting image.
- maxheight: integer, Maximum height in pixels for resulting image.
- fallbackid: string, Use the image associated with this secondary id if no image is associated with the primary id.
- pad: boolean, A boolean specifying whether the resulting image should be padded up to the requested dimensions.
- mode: string, Method used to scale or crop image.
- Allowed values
- fill - Fill rectangle completely with image, relax constraint on one dimension if necessary.
- fillcrop - Fill rectangle with image, crop image to maintain rectangle dimensions.
- fillcropmid - Fill rectangle with image, center horizontally, crop left and right.
- fit - Fit image inside rectangle, leave empty space in one dimension if necessary.
-
Returns the scaled/cropped image attached to a freebase node.
-
-Args:
- id: string, Freebase entity or content id, mid, or guid. (required) (repeated)
- maxwidth: integer, Maximum width in pixels for resulting image.
- maxheight: integer, Maximum height in pixels for resulting image.
- fallbackid: string, Use the image associated with this secondary id if no image is associated with the primary id.
- pad: boolean, A boolean specifying whether the resulting image should be padded up to the requested dimensions.
- mode: string, Method used to scale or crop image.
- Allowed values
- fill - Fill rectangle completely with image, relax constraint on one dimension if necessary.
- fillcrop - Fill rectangle with image, crop image to maintain rectangle dimensions.
- fillcropmid - Fill rectangle with image, center horizontally, crop left and right.
- fit - Fit image inside rectangle, leave empty space in one dimension if necessary.
-
Performs MQL Queries.
-
-Args:
- query: string, An envelope containing a single MQL query. (required)
- lang: string, The language of the results - an id of a /type/lang object.
- indent: integer, How many spaces to indent the json.
- callback: string, JS method name for JSONP callbacks.
- uniqueness_failure: string, How MQL responds to uniqueness failures.
- Allowed values
- hard - Be strict - throw an error.
- soft - Just return the first encountered object.
- dateline: string, The dateline that you get in a mqlwrite response to ensure consistent results.
- html_escape: boolean, Whether or not to escape entities.
- cursor: string, The mql cursor.
- cost: boolean, Show the costs or not.
- as_of_time: string, Run the query as it would've been run at the specified point in time.
-
Performs MQL Queries.
-
-Args:
- query: string, An envelope containing a single MQL query. (required)
- lang: string, The language of the results - an id of a /type/lang object.
- indent: integer, How many spaces to indent the json.
- callback: string, JS method name for JSONP callbacks.
- uniqueness_failure: string, How MQL responds to uniqueness failures.
- Allowed values
- hard - Be strict - throw an error.
- soft - Just return the first encountered object.
- dateline: string, The dateline that you get in a mqlwrite response to ensure consistent results.
- html_escape: boolean, Whether or not to escape entities.
- cursor: string, The mql cursor.
- cost: boolean, Show the costs or not.
- as_of_time: string, Run the query as it would've been run at the specified point in time.
-
Performs MQL Write Operations.
-
-Args:
- query: string, An MQL query with write directives. (required)
- indent: integer, How many spaces to indent the json.
- callback: string, JS method name for JSONP callbacks.
- dateline: string, The dateline that you get in a mqlwrite response to ensure consistent results.
- use_permission_of: string, Use the same permission node of the object with the specified id.
-
Performs MQL Write Operations.
-
-Args:
- query: string, An MQL query with write directives. (required)
- indent: integer, How many spaces to indent the json.
- callback: string, JS method name for JSONP callbacks.
- dateline: string, The dateline that you get in a mqlwrite response to ensure consistent results.
- use_permission_of: string, Use the same permission node of the object with the specified id.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/freebase_v1.text.html b/docs/dyn/freebase_v1.text.html
deleted file mode 100644
index 6f68543..0000000
--- a/docs/dyn/freebase_v1.text.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Returns blob attached to node at specified id as HTML
-
Method Details
-
- get(id, format=None, maxlength=None)
-
Returns blob attached to node at specified id as HTML
-
-Args:
- id: string, The id of the item that you want data about (required) (repeated)
- format: string, Sanitizing transformation.
- Allowed values
- html - Return valid, sanitized html.
- plain - Return plain text - strip html tags.
- raw - Return the entire content as-is.
- maxlength: integer, The max number of characters to return. Valid only for 'plain' format.
-
-Returns:
- An object of the form:
-
- {
- "result": "A String", # The text requested.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/freebase_v1.topic.html b/docs/dyn/freebase_v1.topic.html
deleted file mode 100644
index a06db8e..0000000
--- a/docs/dyn/freebase_v1.topic.html
+++ /dev/null
@@ -1,124 +0,0 @@
-
-
-
-
Get properties and meta-data about a topic.
-
-Args:
- id: string, The id of the item that you want data about. (required) (repeated)
- lang: string, The language you 'd like the content in - a freebase /type/lang language key.
- filter: string, A frebase domain, type or property id, 'suggest', 'commons', or 'all'. Filter the results and returns only appropriate properties. (repeated)
- raw: boolean, Do not apply any constraints, or get any names.
- dateline: string, Determines how up-to-date the data returned is. A unix epoch time, a guid or a 'now'
- limit: integer, The maximum number of property values to return for each property.
-
-Returns:
- An object of the form:
-
- {
- "property": {
- "/freebase/object_profile/linkcount": {
- "values": [
- {
- "count": 42,
- "values": [
- {
- "count": 42,
- "values": [
- {
- "count": 42,
- "id": "A String",
- },
- ],
- "id": "A String",
- },
- ],
- "id": "A String",
- },
- ],
- "type": "custom",
- },
- },
- "id": "A String",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/fusiontables_v1.column.html b/docs/dyn/fusiontables_v1.column.html
deleted file mode 100644
index c5ea4c5..0000000
--- a/docs/dyn/fusiontables_v1.column.html
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
-
Deletes the column.
-
-Args:
- tableId: string, Table from which the column is being deleted. (required)
- columnId: string, Name or identifier for the column being deleted. (required)
-
-
-
-
- get(tableId, columnId)
-
Retrieves a specific column by its id.
-
-Args:
- tableId: string, Table to which the column belongs. (required)
- columnId: string, Name or identifier for the column that is being requested. (required)
-
-Returns:
- An object of the form:
-
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-
- insert(tableId, body)
-
Adds a new column to the table.
-
-Args:
- tableId: string, Table for which a new column is being added. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
Retrieves a list of columns.
-
-Args:
- tableId: string, Table whose columns are being listed. (required)
- pageToken: string, Continuation token specifying which result page to return. Optional.
- maxResults: integer, Maximum number of columns to return. Optional. Default is 5.
-
-Returns:
- An object of the form:
-
- { # Represents a list of columns in a table.
- "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more tokens left.
- "items": [ # List of all requested columns.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "kind": "fusiontables#columnList", # Type name: a list of all tables.
- "totalItems": 42, # Total number of columns for the table.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(tableId, columnId, body)
-
Updates the name or type of an existing column. This method supports patch semantics.
-
-Args:
- tableId: string, Table for which the column is being updated. (required)
- columnId: string, Name or identifier for the column that is being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-
- update(tableId, columnId, body)
-
Updates the name or type of an existing column.
-
-Args:
- tableId: string, Table for which the column is being updated. (required)
- columnId: string, Name or identifier for the column that is being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/fusiontables_v1.html b/docs/dyn/fusiontables_v1.html
deleted file mode 100644
index b5c0ca6..0000000
--- a/docs/dyn/fusiontables_v1.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Executes an SQL SELECT/INSERT/UPDATE/DELETE/SHOW/DESCRIBE/CREATE statement.
-
-Args:
- sql: string, An SQL SELECT/SHOW/DESCRIBE/INSERT/UPDATE/DELETE/CREATE statement. (required)
- hdrs: boolean, Should column names be included (in the first row)?. Default is true.
- typed: boolean, Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
-
-Returns:
- An object of the form:
-
- { # Represents a response to an sql statement.
- "kind": "fusiontables#sqlresponse", # Type name: a template for an individual table.
- "rows": [ # The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.
- [
- "",
- ],
- ],
- "columns": [ # Columns in the table.
- "A String",
- ],
- }
-
-
-
- sqlGet(sql, hdrs=None, typed=None)
-
Executes an SQL SELECT/SHOW/DESCRIBE statement.
-
-Args:
- sql: string, An SQL SELECT/SHOW/DESCRIBE statement. (required)
- hdrs: boolean, Should column names be included (in the first row)?. Default is true.
- typed: boolean, Should typed values be returned in the (JSON) response -- numbers for numeric values and parsed geometries for KML values? Default is true.
-
-Returns:
- An object of the form:
-
- { # Represents a response to an sql statement.
- "kind": "fusiontables#sqlresponse", # Type name: a template for an individual table.
- "rows": [ # The rows in the table. For each cell we print out whatever cell value (e.g., numeric, string) exists. Thus it is important that each cell contains only one value.
- [
- "",
- ],
- ],
- "columns": [ # Columns in the table.
- "A String",
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/fusiontables_v1.style.html b/docs/dyn/fusiontables_v1.style.html
deleted file mode 100644
index f2d1e75..0000000
--- a/docs/dyn/fusiontables_v1.style.html
+++ /dev/null
@@ -1,1527 +0,0 @@
-
-
-
-
Deletes a style.
-
-Args:
- tableId: string, Table from which the style is being deleted (required)
- styleId: integer, Identifier (within a table) for the style being deleted (required)
-
-
-
-
- get(tableId, styleId)
-
Gets a specific style.
-
-Args:
- tableId: string, Table to which the requested style belongs (required)
- styleId: integer, Identifier (integer) for a specific style in a table (required)
-
-Returns:
- An object of the form:
-
- { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-
- insert(tableId, body)
-
Adds a new style for the table.
-
-Args:
- tableId: string, Table for which a new style is being added (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
Retrieves a list of styles.
-
-Args:
- tableId: string, Table whose styles are being listed (required)
- pageToken: string, Continuation token specifying which result page to return. Optional.
- maxResults: integer, Maximum number of styles to return. Optional. Default is 5.
-
-Returns:
- An object of the form:
-
- { # Represents a list of styles for a given table.
- "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more styles left.
- "items": [ # All requested style settings.
- { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- },
- ],
- "kind": "fusiontables#styleSettingList", # Type name: in this case, a list of style settings.
- "totalItems": 42, # Total number of styles for the table.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(tableId, styleId, body)
-
Updates an existing style. This method supports patch semantics.
-
-Args:
- tableId: string, Table whose style is being updated. (required)
- styleId: integer, Identifier (within a table) for the style being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-
- update(tableId, styleId, body)
-
Updates an existing style.
-
-Args:
- tableId: string, Table whose style is being updated. (required)
- styleId: integer, Identifier (within a table) for the style being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a complete StyleSettings object. The primary key is a combination of the tableId and a styleId.
- "markerOptions": { # Represents a PointStyle within a StyleSetting # Style definition for points in the table.
- "iconStyler": { # Represents a StyleFunction within a StyleSetting # Column or a bucket value from which the icon name is to be determined.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "iconName": "A String", # Name of the icon. Use values defined in http://www.google.com/fusiontables/DataSource?dsrcid=308519
- },
- "kind": "fusiontables#styleSetting", # Type name: an individual style setting. A StyleSetting contains the style defintions for points, lines, and polygons in a table. Since a table can have any one or all of them, a style definition can have point, line and polygon style definitions.
- "name": "A String", # Optional name for the style setting.
- "polygonOptions": { # Represents a PolygonStyle within a StyleSetting # Style definition for polygons in the table.
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the border color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeWeight": 42, # Width of the polyon border in pixels.
- "strokeOpacity": 3.14, # Opacity of the polygon border: 0.0 (transparent) to 1.0 (opaque).
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the polygon border.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient, or bucket styler that is used to determine the interior color and opacity of the polygon.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "fillColor": "A String", # Color of the interior of the polygon in #RRGGBB format.
- "strokeColor": "A String", # Color of the polygon border in #RRGGBB format.
- "fillOpacity": 3.14, # Opacity of the interior of the polygon: 0.0 (transparent) to 1.0 (opaque).
- },
- "polylineOptions": { # Represents a LineStyle within a StyleSetting # Style definition for lines in the table.
- "strokeWeight": 42, # Width of the line in pixels.
- "strokeWeightStyler": { # Represents a StyleFunction within a StyleSetting # Column-value or bucket styler that is used to determine the width of the line.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- "strokeColor": "A String", # Color of the line in #RRGGBB format.
- "strokeOpacity": 3.14, # Opacity of the line : 0.0 (transparent) to 1.0 (opaque).
- "strokeColorStyler": { # Represents a StyleFunction within a StyleSetting # Column-value, gradient or buckets styler that is used to determine the line color and opacity.
- "gradient": { # Gradient function that interpolates a range of colors based on column value.
- "max": 3.14, # Higher-end of the interpolation range: rows with this value will be assigned to colors[n-1].
- "colors": [ # Array with two or more colors.
- {
- "color": "A String", # Color in #RRGGBB format.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- },
- ],
- "min": 3.14, # Lower-end of the interpolation range: rows with this value will be assigned to colors[0].
- },
- "columnName": "A String", # Name of the column whose value is used in the style.
- "buckets": [ # Bucket function that assigns a style based on the range a column value falls into.
- { # Specifies the minimum and maximum values, the color, opacity, icon and weight of a bucket within a StyleSetting.
- "opacity": 3.14, # Opacity of the color: 0.0 (transparent) to 1.0 (opaque).
- "weight": 42, # Width of a line (in pixels).
- "min": 3.14, # Minimum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "color": "A String", # Color of line or the interior of a polygon in #RRGGBB format.
- "max": 3.14, # Maximum value in the selected column for a row to be styled according to the bucket color, opacity, icon, or weight.
- "icon": "A String", # Icon name used for a point.
- },
- ],
- "kind": "A String", # Stylers can be one of three kinds: "fusiontables#fromColumn" if the column value is to be used as is, i.e., the column values can have colors in #RRGGBBAA format or integer line widths or icon names; "fusiontables#gradient" if the styling of the row is to be based on applying the gradient function on the column value; or "fusiontables#buckets" if the styling is to based on the bucket into which the the column value falls.
- },
- },
- "tableId": "A String", # Identifier for the table.
- "styleId": 42, # Identifier for the style setting (unique only within tables).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/fusiontables_v1.table.html b/docs/dyn/fusiontables_v1.table.html
deleted file mode 100644
index 0157063..0000000
--- a/docs/dyn/fusiontables_v1.table.html
+++ /dev/null
@@ -1,511 +0,0 @@
-
-
-
-
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
-
Method Details
-
- copy(tableId, copyPresentation=None)
-
Copies a table.
-
-Args:
- tableId: string, ID of the table that is being copied. (required)
- copyPresentation: boolean, Whether to also copy tabs, styles, and templates. Default is false.
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
-
-
- delete(tableId)
-
Deletes a table.
-
-Args:
- tableId: string, ID of the table that is being deleted. (required)
-
-
-
-
- get(tableId)
-
Retrieves a specific table by its id.
-
-Args:
- tableId: string, Identifier(ID) for the table being requested. (required)
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
Import more rows into a table.
-
-Args:
- tableId: string, The table into which new rows are being imported. (required)
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- startLine: integer, The index of the first line from which to start importing, inclusive. Default is 0.
- isStrict: boolean, Whether the CSV must have the same number of values for each row. If false, rows with fewer values will be padded with empty values. Default is true.
- encoding: string, The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.
- delimiter: string, The delimiter used to separate cell values. This can only consist of a single character. Default is ','.
- endLine: integer, The index of the last line from which to start importing, exclusive. Thus, the number of imported lines is endLine - startLine. If this parameter is not provided, the file will be imported until the last line of the file. If endLine is negative, then the imported content will exclude the last endLine lines. That is, if endline is negative, no line will be imported whose index is greater than N + endLine where N is the number of lines in the file, and the number of imported lines will be N + endLine - startLine.
-
-Returns:
- An object of the form:
-
- { # Represents an import request.
- "numRowsReceived": "A String", # The number of rows received from the import request.
- "kind": "fusiontables#import", # Type name: a template for an import request.
- }
Import a new table.
-
-Args:
- name: string, The name to be assigned to the new table. (required)
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- encoding: string, The encoding of the content. Default is UTF-8. Use 'auto-detect' if you are unsure of the encoding.
- delimiter: string, The delimiter used to separate cell values. This can only consist of a single character. Default is ','.
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
-
-
- insert(body)
-
Creates a new table.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
Retrieves a list of tables a user owns.
-
-Args:
- pageToken: string, Continuation token specifying which result page to return. Optional.
- maxResults: integer, Maximum number of styles to return. Optional. Default is 5.
-
-Returns:
- An object of the form:
-
- { # Represents a list of tables.
- "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more tokens left.
- "items": [ # List of all requested tables.
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- },
- ],
- "kind": "fusiontables#tableList", # Type name: a list of all tables.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated. This method supports patch semantics.
-
-Args:
- tableId: string, ID of the table that is being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
- replaceViewDefinition: boolean, Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
Updates an existing table. Unless explicitly requested, only the name, description, and attribution will be updated.
-
-Args:
- tableId: string, ID of the table that is being updated. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
- replaceViewDefinition: boolean, Should the view definition also be updated? The specified view definition replaces the existing one. Only a view can be updated with a new definition.
-
-Returns:
- An object of the form:
-
- { # Represents a table. Specifies the name, whether it is exportable, description, attribution, and attribution link.
- "kind": "fusiontables#table", # Type name: a template for an individual table.
- "attribution": "A String", # Optional attribution assigned to the table.
- "description": "A String", # Optional description assigned to the table.
- "isExportable": True or False, # Variable for whether table is exportable.
- "baseTableIds": [ # Optional base table identifier if this table is a view or merged table.
- "A String",
- ],
- "attributionLink": "A String", # Optional link for attribution.
- "sql": "A String", # Optional sql that encodes the table definition for derived tables.
- "tableId": "A String", # Encrypted unique alphanumeric identifier for the table.
- "columns": [ # Columns in the table.
- { # Specifies the id, name and type of a column in a table.
- "kind": "fusiontables#column", # Type name: a template for an individual column.
- "type": "A String", # Required type of the column.
- "columnId": 42, # Identifier for the column.
- "name": "A String", # Required name of the column.
- "baseColumn": { # Optional identifier of the base column. If present, this column is derived from the specified base column.
- "tableIndex": 42, # Offset to the entry in the list of base tables in the table definition.
- "columnId": 42, # The id of the column in the base table from which this column is derived.
- },
- },
- ],
- "name": "A String", # Name assigned to a table.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/fusiontables_v1.template.html b/docs/dyn/fusiontables_v1.template.html
deleted file mode 100644
index f887c49..0000000
--- a/docs/dyn/fusiontables_v1.template.html
+++ /dev/null
@@ -1,287 +0,0 @@
-
-
-
-
Deletes a template
-
-Args:
- tableId: string, Table from which the template is being deleted (required)
- templateId: integer, Identifier for the template which is being deleted (required)
-
-
-
-
- get(tableId, templateId)
-
Retrieves a specific template by its id
-
-Args:
- tableId: string, Table to which the template belongs (required)
- templateId: integer, Identifier for the template that is being requested (required)
-
-Returns:
- An object of the form:
-
- { # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-
- insert(tableId, body)
-
Creates a new template for the table.
-
-Args:
- tableId: string, Table for which a new template is being created (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
Retrieves a list of templates.
-
-Args:
- tableId: string, Identifier for the table whose templates are being requested (required)
- pageToken: string, Continuation token specifying which results page to return. Optional.
- maxResults: integer, Maximum number of templates to return. Optional. Default is 5.
-
-Returns:
- An object of the form:
-
- { # Represents a list of templates for a given table.
- "nextPageToken": "A String", # Token used to access the next page of this result. No token is displayed if there are no more tokens left.
- "items": [ # List of all requested templates.
- { # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- },
- ],
- "kind": "fusiontables#templateList", # Type name: a list of all templates.
- "totalItems": 42, # Total number of templates for the table.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(tableId, templateId, body)
-
Updates an existing template. This method supports patch semantics.
-
-Args:
- tableId: string, Table to which the updated template belongs (required)
- templateId: integer, Identifier for the template that is being updated (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-
- update(tableId, templateId, body)
-
Updates an existing template
-
-Args:
- tableId: string, Table to which the updated template belongs (required)
- templateId: integer, Identifier for the template that is being updated (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-Returns:
- An object of the form:
-
- { # Represents the contents of InfoWindow templates.
- "body": "A String", # Body of the template. It contains HTML with {column_name} to insert values from a particular column. The body is sanitized to remove certain tags, e.g., script. Only one of body or automaticColumns can be specified.
- "kind": "fusiontables#template", # Type name: a template for the info window contents. The template can either include an HTML body or a list of columns from which the template is computed automatically.
- "name": "A String", # Optional name assigned to a template.
- "automaticColumnNames": [ # List of columns from which the template is to be automatically constructed. Only one of body or automaticColumns can be specified.
- "A String",
- ],
- "tableId": "A String", # Identifier for the table for which the template is defined.
- "templateId": 42, # Identifier for the template, unique within the context of a particular table.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gamesManagement_v1management.achievements.html b/docs/dyn/gamesManagement_v1management.achievements.html
deleted file mode 100644
index 37a46c3..0000000
--- a/docs/dyn/gamesManagement_v1management.achievements.html
+++ /dev/null
@@ -1,132 +0,0 @@
-
-
-
-
Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
-
Method Details
-
- reset(achievementId)
-
Resets the achievement with the given ID. This method is only accessible to whitelisted tester accounts for your application.
-
-Args:
- achievementId: string, The ID of the achievement used by this method. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an achievement reset response.
- "definitionId": "A String", # The ID of an achievement for which player state has been updated.
- "kind": "gamesManagement#achievementResetResponse", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#achievementResetResponse.
- "updateOccurred": True or False, # Flag to indicate if the requested update actually occurred.
- "currentState": "A String", # The current state of the achievement. This is the same as the initial state of the achievement.
- # Possible values are:
- # - "HIDDEN"- Achievement is hidden.
- # - "REVEALED" - Achievement is revealed.
- # - "UNLOCKED" - Achievement is unlocked.
- }
-
-
-
- resetAll()
-
Resets all achievements for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for achievement reset all response.
- "kind": "gamesManagement#achievementResetAllResponse", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#achievementResetAllResponse.
- "results": [ # The achievement reset results.
- { # This is a JSON template for an achievement reset response.
- "definitionId": "A String", # The ID of an achievement for which player state has been updated.
- "kind": "gamesManagement#achievementResetResponse", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#achievementResetResponse.
- "updateOccurred": True or False, # Flag to indicate if the requested update actually occurred.
- "currentState": "A String", # The current state of the achievement. This is the same as the initial state of the achievement.
- # Possible values are:
- # - "HIDDEN"- Achievement is hidden.
- # - "REVEALED" - Achievement is revealed.
- # - "UNLOCKED" - Achievement is unlocked.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gamesManagement_v1management.applications.html b/docs/dyn/gamesManagement_v1management.applications.html
deleted file mode 100644
index e9f58bb..0000000
--- a/docs/dyn/gamesManagement_v1management.applications.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
Get the list of players hidden from the given application. This method is only available to user accounts for your developer console.
-
-Args:
- applicationId: string, The application being requested. (required)
- pageToken: string, The token returned by the previous request.
- maxResults: integer, The maximum number of player resources to return in the response, used for paging. For any response, the actual number of player resources returned may be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of hidden players.
- "nextPageToken": "A String", # The pagination token for the next page of results.
- "items": [ # The players.
- { # This is a JSON template for the HiddenPlayer resource.
- "player": { # This is a JSON template for a Player resource. # The player information.
- "playerId": "A String", # The ID of the player.
- "kind": "gamesManagement#player", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "kind": "gamesManagement#hiddenPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#hiddenPlayer.
- "hiddenTimeMillis": "A String", # The time this player was hidden.
- },
- ],
- "kind": "gamesManagement#hiddenPlayerList", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#hiddenPlayerList.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gamesManagement_v1management.html b/docs/dyn/gamesManagement_v1management.html
deleted file mode 100644
index ffd5a85..0000000
--- a/docs/dyn/gamesManagement_v1management.html
+++ /dev/null
@@ -1,102 +0,0 @@
-
-
-
-
Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
-
Method Details
-
- hide(applicationId, playerId)
-
Hide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
-
-Args:
- applicationId: string, The application being requested. (required)
- playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required)
-
-
-
-
- unhide(applicationId, playerId)
-
Unhide the given player's leaderboard scores from the given application. This method is only available to user accounts for your developer console.
-
-Args:
- applicationId: string, The application being requested. (required)
- playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required)
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gamesManagement_v1management.rooms.html b/docs/dyn/gamesManagement_v1management.rooms.html
deleted file mode 100644
index 1670f3f..0000000
--- a/docs/dyn/gamesManagement_v1management.rooms.html
+++ /dev/null
@@ -1,89 +0,0 @@
-
-
-
-
Reset all rooms for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
-
Method Details
-
- reset()
-
Reset all rooms for the currently authenticated player for your application. This method is only accessible to whitelisted tester accounts for your application.
-
-Args:
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gamesManagement_v1management.scores.html b/docs/dyn/gamesManagement_v1management.scores.html
deleted file mode 100644
index 82272e4..0000000
--- a/docs/dyn/gamesManagement_v1management.scores.html
+++ /dev/null
@@ -1,103 +0,0 @@
-
-
-
-
Reset scores for the specified leaderboard, resetting the leaderboard to empty. This method is only accessible to whitelisted tester accounts for your application.
-
Method Details
-
- reset(leaderboardId)
-
Reset scores for the specified leaderboard, resetting the leaderboard to empty. This method is only accessible to whitelisted tester accounts for your application.
-
-Args:
- leaderboardId: string, The ID of the leaderboard. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of reset leaderboard entry resources.
- "kind": "gamesManagement#playerScoreResetResponse", # Uniquely identifies the type of this resource. Value is always the fixed string gamesManagement#playerScoreResetResponse.
- "resetScoreTimeSpans": [ # The time spans of the updated score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- "A String",
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.achievementDefinitions.html b/docs/dyn/games_v1.achievementDefinitions.html
deleted file mode 100644
index 141de39..0000000
--- a/docs/dyn/games_v1.achievementDefinitions.html
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
-
Lists all the achievement definitions for your application.
-
-Args:
- pageToken: string, The token returned by the previous request.
- language: string, The preferred language to use for strings returned by this method.
- maxResults: integer, The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of achievement definition objects.
- "nextPageToken": "A String", # Token corresponding to the next page of results.
- "items": [ # The achievement definitions.
- { # This is a JSON template for an achievement definition object.
- "totalSteps": 42, # The total steps for an incremental achievement.
- "achievementType": "A String", # The type of the achievement.
- # Possible values are:
- # - "STANDARD" - Achievement is either locked or unlocked.
- # - "INCREMENTAL" - Achievement is incremental.
- "description": "A String", # The description of the achievement.
- "revealedIconUrl": "A String", # The image URL for the revealed achievement icon.
- "formattedTotalSteps": "A String", # The total steps for an incremental achievement as a string.
- "kind": "games#achievementDefinition", # Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinition.
- "initialState": "A String", # The initial state of the achievement.
- # Possible values are:
- # - "HIDDEN" - Achievement is hidden.
- # - "REVEALED" - Achievement is revealed.
- # - "UNLOCKED" - Achievement is unlocked.
- "isRevealedIconUrlDefault": True or False, # Indicates whether the revealed icon image being returned is a default image, or is provided by the game.
- "unlockedIconUrl": "A String", # The image URL for the unlocked achievement icon.
- "id": "A String", # The ID of the achievement.
- "isUnlockedIconUrlDefault": True or False, # Indicates whether the unlocked icon image being returned is a default image, or is game-provided.
- "name": "A String", # The name of the achievement.
- },
- ],
- "kind": "games#achievementDefinitionsListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#achievementDefinitionsListResponse.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.achievements.html b/docs/dyn/games_v1.achievements.html
deleted file mode 100644
index ead3690..0000000
--- a/docs/dyn/games_v1.achievements.html
+++ /dev/null
@@ -1,200 +0,0 @@
-
-
-
-
Increments the steps of the achievement with the given ID for the currently authenticated player.
-
-Args:
- achievementId: string, The ID of the achievement used by this method. (required)
- stepsToIncrement: integer, The number of steps to increment. (required)
- requestId: string, A randomly generated numeric ID for each request specified by the caller. This number is used at the server to ensure that the increment is performed correctly across retries.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an achievement increment response
- "currentSteps": 42, # The current steps recorded for this incremental achievement.
- "newlyUnlocked": True or False, # Whether the the current steps for the achievement has reached the number of steps required to unlock.
- "kind": "games#achievementIncrementResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#achievementIncrementResponse.
- }
Lists the progress for all your application's achievements for the currently authenticated player.
-
-Args:
- playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required)
- language: string, The preferred language to use for strings returned by this method.
- pageToken: string, The token returned by the previous request.
- state: string, Tells the server to return only achievements with the specified state. If this parameter isn't specified, all achievements are returned.
- Allowed values
- ALL - List all achievements. This is the default.
- HIDDEN - List only hidden achievements.
- REVEALED - List only revealed achievements.
- UNLOCKED - List only unlocked achievements.
- maxResults: integer, The maximum number of achievement resources to return in the response, used for paging. For any response, the actual number of achievement resources returned may be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of achievement objects.
- "nextPageToken": "A String", # Token corresponding to the next page of results.
- "items": [ # The achievements.
- { # This is a JSON template for an achievement object.
- "achievementState": "A String", # The state of the achievement.
- # Possible values are:
- # - "HIDDEN" - Achievement is hidden.
- # - "REVEALED" - Achievement is revealed.
- # - "UNLOCKED" - Achievement is unlocked.
- "kind": "games#playerAchievement", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerAchievement.
- "lastUpdatedTimestamp": "A String", # The timestamp of the last modification to this achievement's state.
- "currentSteps": 42, # The current steps for an incremental achievement.
- "formattedCurrentStepsString": "A String", # The current steps for an incremental achievement as a string.
- "id": "A String", # The ID of the achievement.
- },
- ],
- "kind": "games#playerAchievementListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerAchievementListResponse.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- reveal(achievementId)
-
Sets the state of the achievement with the given ID to REVEALED for the currently authenticated player.
-
-Args:
- achievementId: string, The ID of the achievement used by this method. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an achievement reveal response
- "kind": "games#achievementRevealResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#achievementRevealResponse.
- "currentState": "A String", # The current state of the achievement for which a reveal was attempted. This might be UNLOCKED if the achievement was already unlocked.
- # Possible values are:
- # - "REVEALED" - Achievement is revealed.
- # - "UNLOCKED" - Achievement is unlocked.
- }
-
-
-
- unlock(achievementId)
-
Unlocks this achievement for the currently authenticated player.
-
-Args:
- achievementId: string, The ID of the achievement used by this method. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for an achievement unlock response
- "newlyUnlocked": True or False, # Whether this achievement was newly unlocked (that is, whether the unlock request for the achievement was the first for the player).
- "kind": "games#achievementUnlockResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#achievementUnlockResponse.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.applications.html b/docs/dyn/games_v1.applications.html
deleted file mode 100644
index 5ae1305..0000000
--- a/docs/dyn/games_v1.applications.html
+++ /dev/null
@@ -1,168 +0,0 @@
-
-
-
-
Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.
Retrieves the metadata of the application with the given ID. If the requested application is not available for the specified platformType, the returned response will not include any instance data.
-
-Args:
- applicationId: string, The application being requested. (required)
- language: string, The preferred language to use for strings returned by this method.
- platformType: string, Restrict application details returned to the specific platform.
- Allowed values
- ANDROID - Retrieve applications that can be played on Android.
- IOS - Retrieve applications that can be played on iOS.
- WEB_APP - Retrieve applications that can be played on desktop web.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for the Application resource.
- "category": { # This is a JSON template for an application category object. # The category of the application.
- "kind": "games#applicationCategory", # Uniquely identifies the type of this resource. Value is always the fixed string games#applicationCategory.
- "primary": "A String", # The primary category.
- "secondary": "A String", # The secondary category.
- },
- "kind": "games#application", # Uniquely identifies the type of this resource. Value is always the fixed string games#application.
- "description": "A String", # The description of the application.
- "author": "A String", # The author of the application.
- "lastUpdatedTimestamp": "A String", # The last updated timestamp of the application.
- "name": "A String", # The name of the application.
- "instances": [ # The instances of the application.
- { # This is a JSON template for the Instance resource.
- "kind": "games#instance", # Uniquely identifies the type of this resource. Value is always the fixed string games#instance.
- "acquisitionUri": "A String", # URI which shows where a user can acquire this instance.
- "name": "A String", # Localized display name.
- "turnBasedPlay": True or False, # Flag to show if this game instance supports turn based play.
- "webInstance": { # This is a JSON template for the Web details resource. # Platform dependent details for Web.
- "kind": "games#instanceWebDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceWebDetails.
- "launchUrl": "A String", # Launch URL for the game.
- "preferred": True or False, # Indicates that this instance is the default for new installations.
- },
- "androidInstance": { # This is a JSON template for the Android instance details resource. # Platform dependent details for Android.
- "kind": "games#instanceAndroidDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceAndroidDetails.
- "enablePiracyCheck": True or False, # Flag indicating whether the anti-piracy check is enabled.
- "packageName": "A String", # Android package name which maps to Google Play URL.
- "preferred": True or False, # Indicates that this instance is the default for new installations.
- },
- "iosInstance": { # This is a JSON template for the iOS details resource. # Platform dependent details for iOS.
- "kind": "games#instanceIosDetails", # Uniquely identifies the type of this resource. Value is always the fixed string games#instanceIosDetails.
- "supportIphone": True or False, # Flag to indicate if this instance supports iPhone.
- "preferredForIpad": True or False, # Indicates that this instance is the default for new installations on iPad devices.
- "itunesAppId": "A String", # iTunes App ID.
- "bundleIdentifier": "A String", # Bundle identifier.
- "supportIpad": True or False, # Flag to indicate if this instance supports iPad.
- "preferredForIphone": True or False, # Indicates that this instance is the default for new installations on iPhone devices.
- },
- "platformType": "A String", # The platform type.
- # Possible values are:
- # - "ANDROID" - Instance is for Android.
- # - "IOS" - Instance is for iOS
- # - "WEB_APP" - Instance is for Web App.
- "realtimePlay": True or False, # Flag to show if this game instance supports realtime play.
- },
- ],
- "achievement_count": 42, # The number of achievements visible to the currently authenticated player.
- "leaderboard_count": 42, # The number of leaderboards visible to the currently authenticated player.
- "id": "A String", # The ID of the application.
- "assets": [ # The assets of the application.
- { # This is a JSON template for an image asset object.
- "url": "A String", # The URL of the asset.
- "width": 42, # The width of the asset.
- "kind": "games#imageAsset", # Uniquely identifies the type of this resource. Value is always the fixed string games#imageAsset.
- "name": "A String", # The name of the asset.
- "height": 42, # The height of the asset.
- },
- ],
- }
-
-
-
- played()
-
Indicate that the the currently authenticated user is playing your application.
-
-Args:
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.html b/docs/dyn/games_v1.html
deleted file mode 100644
index efc5279..0000000
--- a/docs/dyn/games_v1.html
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
Retrieves the metadata of the leaderboard with the given ID.
-
-Args:
- leaderboardId: string, The ID of the leaderboard. (required)
- language: string, The preferred language to use for strings returned by this method.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for the Leaderboard resource.
- "kind": "games#leaderboard", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard.
- "isIconUrlDefault": True or False, # Indicates whether the icon image being returned is a default image, or is game-provided.
- "name": "A String", # The name of the leaderboard.
- "id": "A String", # The leaderboard ID.
- "iconUrl": "A String", # The icon for the leaderboard.
- "order": "A String", # How scores are ordered.
- # Possible values are:
- # - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in descending order.
- # - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in ascending order.
- }
Lists all the leaderboard metadata for your application.
-
-Args:
- pageToken: string, The token returned by the previous request.
- language: string, The preferred language to use for strings returned by this method.
- maxResults: integer, The maximum number of leaderboards to return in the response. For any response, the actual number of leaderboards returned may be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of leaderboard objects.
- "nextPageToken": "A String", # Token corresponding to the next page of results.
- "items": [ # The leaderboards.
- { # This is a JSON template for the Leaderboard resource.
- "kind": "games#leaderboard", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboard.
- "isIconUrlDefault": True or False, # Indicates whether the icon image being returned is a default image, or is game-provided.
- "name": "A String", # The name of the leaderboard.
- "id": "A String", # The leaderboard ID.
- "iconUrl": "A String", # The icon for the leaderboard.
- "order": "A String", # How scores are ordered.
- # Possible values are:
- # - "LARGER_IS_BETTER" - Larger values are better; scores are sorted in descending order.
- # - "SMALLER_IS_BETTER" - Smaller values are better; scores are sorted in ascending order.
- },
- ],
- "kind": "games#leaderboardListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardListResponse.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.players.html b/docs/dyn/games_v1.players.html
deleted file mode 100644
index c664ffb..0000000
--- a/docs/dyn/games_v1.players.html
+++ /dev/null
@@ -1,99 +0,0 @@
-
-
-
-
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.
-
Method Details
-
- get(playerId)
-
Retrieves the Player resource with the given ID. To retrieve the player for the currently authenticated user, set playerId to me.
-
-Args:
- playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a Player resource.
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.revisions.html b/docs/dyn/games_v1.revisions.html
deleted file mode 100644
index b4191cc..0000000
--- a/docs/dyn/games_v1.revisions.html
+++ /dev/null
@@ -1,101 +0,0 @@
-
-
-
-
Checks whether the games client is out of date.
-
-Args:
- clientRevision: string, The revision of the client SDK used by your application. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for the result of checking a revision.
- "kind": "games#revisionCheckResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#revisionCheckResponse.
- "revisionStatus": "A String", # The result of the revision check.
- # Possible values are:
- # - "OK" - The revision being used is current.
- # - "DEPRECATED" - There is currently a newer version available, but the revision being used still works.
- # - "INVALID" - The revision being used is not supported in any released version.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.rooms.html b/docs/dyn/games_v1.rooms.html
deleted file mode 100644
index 8dfb6c7..0000000
--- a/docs/dyn/games_v1.rooms.html
+++ /dev/null
@@ -1,887 +0,0 @@
-
-
-
-
Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
Method Details
-
- create(body, language=None)
-
Create a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for a room creation request.
- "kind": "games#roomCreateRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomCreateRequest.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "invitedPlayerIds": [ # The player IDs to invite to the room.
- "A String",
- ],
- "variant": 42, # The variant / mode of the application to be played. This can be any integer value, or left blank. You should use a small number of variants to keep the auto-matching pool as large as possible.
- "capabilities": [ # The capabilities that this client supports for realtime communication.
- "A String",
- ],
- "networkDiagnostics": { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client creating the room.
- "registrationLatencyMillis": 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.
- "kind": "games#networkDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics.
- "androidNetworkSubtype": 42, # The Android network subtype.
- "androidNetworkType": 42, # The Android network type.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the player creating the room.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- }
-
- language: string, The preferred language to use for strings returned by this method.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- }
-
-
-
- decline(roomId)
-
Decline an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- roomId: string, The ID of the room. (required)
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- }
-
-
-
- dismiss(roomId)
-
Dismiss an invitation to join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- roomId: string, The ID of the room. (required)
-
-
-
-
- get(roomId, language=None)
-
Get the data for a room.
-
-Args:
- roomId: string, The ID of the room. (required)
- language: string, Specify the preferred language to use to format room info.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- }
-
-
-
- join(roomId, body)
-
Join a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- roomId: string, The ID of the room. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for a join room request.
- "networkDiagnostics": { # This is a JSON template for network diagnostics reported for a client. # Network diagnostics for the client joining the room.
- "registrationLatencyMillis": 42, # The amount of time in milliseconds it took for the client to establish a connection with the XMPP server.
- "kind": "games#networkDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#networkDiagnostics.
- "androidNetworkSubtype": 42, # The Android network subtype.
- "androidNetworkType": 42, # The Android network type.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the player joining the room.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "kind": "games#roomJoinRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomJoinRequest.
- "capabilities": [ # The capabilities that this client supports for realtime communication.
- "A String",
- ],
- }
-
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- }
-
-
-
- leave(roomId, body)
-
Leave a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- roomId: string, The ID of the room. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for a leave room request.
- "kind": "games#roomLeaveRequest", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveRequest.
- "reason": "A String", # Reason for leaving the match.
- # Possible values are:
- # - "PLAYER_LEFT" - The player chose to leave the room..
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "REALTIME_ABANDONED" - The player switched to another application and abandoned the room.
- # - "REALTIME_PEER_CONNECTION_FAILURE" - The client was unable to establish a connection to other peer(s).
- # - "REALTIME_SERVER_CONNECTION_FAILURE" - The client was unable to communicate with the server.
- # - "REALTIME_SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "REALTIME_TIMEOUT" - The client timed out while waiting for a room.
- "leaveDiagnostics": { # This is a JSON template for room leave diagnostics. # Diagnostics for a player leaving the room.
- "kind": "games#roomLeaveDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomLeaveDiagnostics.
- "peerSession": [ # Diagnostics about all peer sessions.
- { # This is a JSON template for peer session diagnostics.
- "unreliableChannel": { # This is a JSON template for peer channel diagnostics. # Unreliable channel diagnostics.
- "bytesReceived": { # This is a JSON template for aggregate stats. # Number of bytes received.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- "kind": "games#peerChannelDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics.
- "bytesSent": { # This is a JSON template for aggregate stats. # Number of bytes sent.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- "numSendFailures": 42, # Number of send failures.
- "numMessagesLost": 42, # Number of messages lost.
- "numMessagesReceived": 42, # Number of messages received.
- "numMessagesSent": 42, # Number of messages sent.
- "roundtripLatencyMillis": { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- },
- "kind": "games#peerSessionDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerSessionDiagnostics.
- "reliableChannel": { # This is a JSON template for peer channel diagnostics. # Reliable channel diagnostics.
- "bytesReceived": { # This is a JSON template for aggregate stats. # Number of bytes received.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- "kind": "games#peerChannelDiagnostics", # Uniquely identifies the type of this resource. Value is always the fixed string games#peerChannelDiagnostics.
- "bytesSent": { # This is a JSON template for aggregate stats. # Number of bytes sent.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- "numSendFailures": 42, # Number of send failures.
- "numMessagesLost": 42, # Number of messages lost.
- "numMessagesReceived": 42, # Number of messages received.
- "numMessagesSent": 42, # Number of messages sent.
- "roundtripLatencyMillis": { # This is a JSON template for aggregate stats. # Roundtrip latency stats in milliseconds.
- "count": "A String", # The number of messages sent between a pair of peers.
- "max": "A String", # The maximum amount.
- "kind": "games#aggregateStats", # Uniquely identifies the type of this resource. Value is always the fixed string games#aggregateStats.
- "sum": "A String", # The total number of bytes sent for messages between a pair of peers.
- "min": "A String", # The minimum amount.
- },
- },
- "connectedTimestampMillis": "A String", # Connected time in milliseconds.
- "participantId": "A String", # The participant ID of the peer.
- },
- ],
- "androidNetworkSubtype": 42, # Android network subtype. http://developer.android.com/reference/android/net/NetworkInfo.html#getSubtype()
- "socketsUsed": True or False, # Whether or not sockets were used.
- "androidNetworkType": 42, # Android network type. http://developer.android.com/reference/android/net/NetworkInfo.html#getType()
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- }
Returns invitations to join rooms.
-
-Args:
- pageToken: string, The token returned by the previous request.
- language: string, The preferred language to use for strings returned by this method.
- maxResults: integer, The maximum number of rooms to return in the response, used for paging. For any response, the actual number of rooms to return may be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of rooms.
- "nextPageToken": "A String", # The pagination token for the next page of results.
- "items": [ # The rooms.
- { # This is a JSON template for a room resource object.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined and are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - The room should no longer be shown on the client. Returned in sync calls when a player joins a room (as a tombstone), or for rooms where all joined participants have left.
- "kind": "games#room", # Uniquely identifies the type of this resource. Value is always the fixed string games#room.
- "autoMatchingCriteria": { # This is a JSON template for a room auto-match criteria object. # Criteria for auto-matching players into this room.
- "kind": "games#roomAutoMatchingCriteria", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchingCriteria.
- "minAutoMatchingPlayers": 42, # The minimum number of players that should be added to the room by auto-matching.
- "exclusiveBitmask": "A String", # A bitmask indicating when auto-matches are valid. When ANDed with other exclusive bitmasks, the result must be zero. Can be used to support exclusive roles within a game.
- "maxAutoMatchingPlayers": 42, # The maximum number of players that should be added to the room by auto-matching.
- },
- "creationDetails": { # This is a JSON template for room modification metadata. # Details about the room creation.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "description": "A String", # This short description is generated by our servers and worded relative to the player requesting the room. It is intended to be displayed when the room is shown in a list (that is, an invitation to a room.)
- "roomId": "A String", # Globally unique ID for a room.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching status.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "roomStatusVersion": 42, # The version of the room status: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "variant": 42, # The variant / mode of the application being played; can be any integer value, or left blank.
- "lastUpdateDetails": { # This is a JSON template for room modification metadata. # Details about the last update to the room.
- "kind": "games#roomModification", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomModification.
- "modifiedTimestampMillis": "A String", # The timestamp at which they modified the room, in milliseconds since the epoch in UTC.
- "participantId": "A String", # The ID of the participant that modified the room.
- },
- "applicationId": "A String", # The ID of the application being played.
- },
- ],
- "kind": "games#roomList", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomList.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- reportStatus(roomId, body)
-
Updates sent by a client reporting the status of peers in a room. For internal use by the Games SDK only. Calling this method directly is unsupported.
-
-Args:
- roomId: string, The ID of the room. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for an update on the status of peers in a room.
- "kind": "games#roomP2PStatuses", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatuses.
- "updates": [ # The updates for the peers.
- { # This is a JSON template for an update on the status of a peer in a room.
- "status": "A String", # The status of the peer in the room.
- # Possible values are:
- # - "CONNECTION_ESTABLISHED" - The client established a P2P connection with the peer.
- # - "CONNECTION_FAILED" - The client failed to establish directed presence with the peer.
- "kind": "games#roomP2PStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomP2PStatus.
- "participantId": "A String", # The ID of the participant.
- "unreliableRoundtripLatencyMillis": 42, # The amount of time in milliseconds it took to send packets back and forth on the unreliable channel with this peer.
- "connectionSetupLatencyMillis": 42, # The amount of time in milliseconds it took to establish connections with this peer.
- "error": "A String", # The error code in event of a failure.
- # Possible values are:
- # - "P2P_FAILED" - The client failed to establish a P2P connection with the peer.
- # - "PRESENCE_FAILED" - The client failed to register to receive P2P connections.
- # - "RELAY_SERVER_FAILED" - The client received an error when trying to use the relay server to establish a P2P connection with the peer.
- "error_reason": "A String", # More detailed diagnostic message returned in event of a failure.
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for the status of a room that the player has joined.
- "status": "A String", # The status of the room.
- # Possible values are:
- # - "ROOM_INVITING" - One or more players have been invited and not responded.
- # - "ROOM_AUTO_MATCHING" - One or more slots need to be filled by auto-matching.
- # - "ROOM_CONNECTING" - Players have joined are connecting to each other (either before or after auto-matching).
- # - "ROOM_ACTIVE" - All players have joined and connected to each other.
- # - "ROOM_DELETED" - All joined players have left.
- "kind": "games#roomStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomStatus.
- "autoMatchingStatus": { # This is a JSON template for status of room automatching that is in progress. # Auto-matching status for this room. Not set if the room is not currently in the automatching queue.
- "kind": "games#roomAutoMatchStatus", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomAutoMatchStatus.
- "waitEstimateSeconds": 42, # An estimate for the amount of time that automatching is expected to take to complete.
- },
- "participants": [ # The participants involved in the room, along with their statuses. Includes participants who have left or declined invitations.
- { # This is a JSON template for a participant in a room.
- "status": "A String", # The status of the participant with respect to the room.
- # Possible values are:
- # - "PARTICIPANT_INVITED" - The participant has been invited to join the room, but has not yet responded.
- # - "PARTICIPANT_JOINED" - The participant has joined the room (either after creating it or accepting an invitation.)
- # - "PARTICIPANT_DECLINED" - The participant declined an invitation to join the room.
- # - "PARTICIPANT_LEFT" - The participant joined the room and then left it.
- "kind": "games#roomParticipant", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomParticipant.
- "autoMatchedPlayer": { # This is a JSON template for an anonymous player # Information about a player that has been auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "kind": "games#anonymousPlayer", # Uniquely identifies the type of this resource. Value is always the fixed string games#anonymousPlayer.
- "avatarImageUrl": "A String", # The base URL for the image to display for the anonymous player.
- "displayName": "A String", # The name to display for the anonymous player.
- },
- "leaveReason": "A String", # The reason the participant left the room; populated if the participant status is PARTICIPANT_LEFT.
- # Possible values are:
- # - "PLAYER_LEFT" - The player explicitly chose to leave the room.
- # - "GAME_LEFT" - The game chose to remove the player from the room.
- # - "ABANDONED" - The player switched to another application and abandoned the room.
- # - "PEER_CONNECTION_FAILURE" - The client was unable to establish or maintain a connection to other peer(s) in the room.
- # - "SERVER_ERROR" - The client received an error response when it tried to communicate with the server.
- # - "TIMEOUT" - The client timed out while waiting for players to join and connect.
- # - "PRESENCE_FAILURE" - The client's XMPP connection ended abruptly.
- "capabilities": [ # The capabilities which can be used when communicating with this participant.
- "A String",
- ],
- "player": { # This is a JSON template for a Player resource. # Information about the player. Not populated if this player was auto-matched against the requesting player. (Either player or autoMatchedPlayer will be set.)
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "clientAddress": { # This is a JSON template for the client address when setting up a room. # Client address for the participant.
- "kind": "games#roomClientAddress", # Uniquely identifies the type of this resource. Value is always the fixed string games#roomClientAddress.
- "xmppAddress": "A String", # The XMPP address of the client on the Google Games XMPP network.
- },
- "connected": True or False, # True if this participant is in the fully connected set of peers in the room.
- "id": "A String", # An identifier for the participant in the scope of the room. Cannot be used to identify a player across rooms or in other contexts.
- },
- ],
- "statusVersion": 42, # The version of the status for the room: an increasing counter, used by the client to ignore out-of-order updates to room status.
- "roomId": "A String", # Globally unique ID for a room.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/games_v1.scores.html b/docs/dyn/games_v1.scores.html
deleted file mode 100644
index 702ab36..0000000
--- a/docs/dyn/games_v1.scores.html
+++ /dev/null
@@ -1,438 +0,0 @@
-
-
-
-
Get high scores and optionally, ranks in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span.
Get high scores and optionally, ranks in leaderboards for the currently authenticated player. For a specific time span, leaderboardId can be set to ALL to retrieve data for all leaderboards in a given time span.
-
-Args:
- playerId: string, A player ID. A value of me may be used in place of the authenticated player's ID. (required)
- leaderboardId: string, The ID of the leaderboard. (required)
- timeSpan: string, The time span for the scores and ranks you're requesting. (required)
- Allowed values
- ALL - Get the high scores for all time spans. If this is used, maxResults values will be ignored.
- ALL_TIME - Get the all time high score.
- DAILY - List the top scores for the current day.
- WEEKLY - List the top scores for the current week.
- includeRankType: string, The types of ranks to return. If the parameter is omitted, no ranks will be returned.
- Allowed values
- ALL - Retrieve public and social ranks.
- PUBLIC - Retrieve public ranks, if the player is sharing their gameplay activity publicly.
- SOCIAL - Retrieve the social rank.
- language: string, The preferred language to use for strings returned by this method.
- maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
- pageToken: string, The token returned by the previous request.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of player leaderboard scores.
- "nextPageToken": "A String", # The pagination token for the next page of results.
- "items": [ # The leaderboard scores.
- { # This is a JSON template for a player leaderboard score object.
- "writeTimestamp": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
- "kind": "games#playerLeaderboardScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScore.
- "publicRank": { # This is a JSON template for a score rank in a leaderboard. # The public rank of the score in this leaderboard. This object will not be present if the user is not sharing their scores publicly.
- "numScores": "A String", # The number of scores in the leaderboard.
- "kind": "games#leaderboardScoreRank", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScoreRank.
- "formattedRank": "A String", # The rank in the leaderboard as a string.
- "rank": "A String", # The rank in the leaderboard.
- "formattedNumScores": "A String", # The number of scores in the leaderboard as a string.
- },
- "timeSpan": "A String", # The time span of this score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- "scoreString": "A String", # The formatted value of this score.
- "leaderboard_id": "A String", # The ID of the leaderboard this score is in.
- "scoreValue": "A String", # The numerical value of this score.
- "socialRank": { # This is a JSON template for a score rank in a leaderboard. # The social rank of the score in this leaderboard.
- "numScores": "A String", # The number of scores in the leaderboard.
- "kind": "games#leaderboardScoreRank", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScoreRank.
- "formattedRank": "A String", # The rank in the leaderboard as a string.
- "rank": "A String", # The rank in the leaderboard.
- "formattedNumScores": "A String", # The number of scores in the leaderboard as a string.
- },
- },
- ],
- "kind": "games#playerLeaderboardScoreListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerLeaderboardScoreListResponse.
- }
-
-
-
- get_next(previous_request, previous_response)
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Lists the scores in a leaderboard, starting from the top.
-
-Args:
- leaderboardId: string, The ID of the leaderboard. (required)
- collection: string, The collection of scores you're requesting. (required)
- Allowed values
- PUBLIC - List all scores in the public leaderboard.
- SOCIAL - List only social scores.
- timeSpan: string, The time span for the scores and ranks you're requesting. (required)
- Allowed values
- ALL_TIME - List the all-time top scores.
- DAILY - List the top scores for the current day.
- WEEKLY - List the top scores for the current week.
- language: string, The preferred language to use for strings returned by this method.
- maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
- pageToken: string, The token returned by the previous request.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a ListScores response.
- "nextPageToken": "A String", # The pagination token for the next page of results.
- "kind": "games#leaderboardScores", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScores.
- "numScores": "A String", # The total number of scores in the leaderboard.
- "items": [ # The scores in the leaderboard.
- { # This is a JSON template for the Leaderboard Entry resource.
- "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry.
- "scoreValue": "A String", # The numerical value of this score.
- "timeSpan": "A String", # The time span of this high score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time high score.
- # - "WEEKLY" - The score is a weekly high score.
- # - "DAILY" - The score is a daily high score.
- "formattedScore": "A String", # The localized string for the numerical value of this score.
- "player": { # This is a JSON template for a Player resource. # The player who holds this score.
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard.
- "scoreRank": "A String", # The rank of this score for this leaderboard.
- "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
- },
- ],
- "playerScore": { # This is a JSON template for the Leaderboard Entry resource. # The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the scoreRank and formattedScoreRank values will not be present.
- "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry.
- "scoreValue": "A String", # The numerical value of this score.
- "timeSpan": "A String", # The time span of this high score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time high score.
- # - "WEEKLY" - The score is a weekly high score.
- # - "DAILY" - The score is a daily high score.
- "formattedScore": "A String", # The localized string for the numerical value of this score.
- "player": { # This is a JSON template for a Player resource. # The player who holds this score.
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard.
- "scoreRank": "A String", # The rank of this score for this leaderboard.
- "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
- },
- "prevPageToken": "A String", # The pagination token for the previous page of results.
- }
Lists the scores in a leaderboard around (and including) a player's score.
-
-Args:
- leaderboardId: string, The ID of the leaderboard. (required)
- collection: string, The collection of scores you're requesting. (required)
- Allowed values
- PUBLIC - List all scores in the public leaderboard.
- SOCIAL - List only social scores.
- timeSpan: string, The time span for the scores and ranks you're requesting. (required)
- Allowed values
- ALL_TIME - List the all-time top scores.
- DAILY - List the top scores for the current day.
- WEEKLY - List the top scores for the current week.
- language: string, The preferred language to use for strings returned by this method.
- returnTopIfAbsent: boolean, True if the top scores should be returned when the player is not in the leaderboard. Defaults to true.
- resultsAbove: integer, The preferred number of scores to return above the player's score. More scores may be returned if the player is at the bottom of the leaderboard; fewer may be returned if the player is at the top. Must be less than or equal to maxResults.
- maxResults: integer, The maximum number of leaderboard scores to return in the response. For any response, the actual number of leaderboard scores returned may be less than the specified maxResults.
- pageToken: string, The token returned by the previous request.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a ListScores response.
- "nextPageToken": "A String", # The pagination token for the next page of results.
- "kind": "games#leaderboardScores", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardScores.
- "numScores": "A String", # The total number of scores in the leaderboard.
- "items": [ # The scores in the leaderboard.
- { # This is a JSON template for the Leaderboard Entry resource.
- "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry.
- "scoreValue": "A String", # The numerical value of this score.
- "timeSpan": "A String", # The time span of this high score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time high score.
- # - "WEEKLY" - The score is a weekly high score.
- # - "DAILY" - The score is a daily high score.
- "formattedScore": "A String", # The localized string for the numerical value of this score.
- "player": { # This is a JSON template for a Player resource. # The player who holds this score.
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard.
- "scoreRank": "A String", # The rank of this score for this leaderboard.
- "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
- },
- ],
- "playerScore": { # This is a JSON template for the Leaderboard Entry resource. # The score of the requesting player on the leaderboard. The player's score may appear both here and in the list of scores above. If you are viewing a public leaderboard and the player is not sharing their gameplay information publicly, the scoreRank and formattedScoreRank values will not be present.
- "kind": "games#leaderboardEntry", # Uniquely identifies the type of this resource. Value is always the fixed string games#leaderboardEntry.
- "scoreValue": "A String", # The numerical value of this score.
- "timeSpan": "A String", # The time span of this high score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time high score.
- # - "WEEKLY" - The score is a weekly high score.
- # - "DAILY" - The score is a daily high score.
- "formattedScore": "A String", # The localized string for the numerical value of this score.
- "player": { # This is a JSON template for a Player resource. # The player who holds this score.
- "playerId": "A String", # The ID of the player.
- "kind": "games#player", # Uniquely identifies the type of this resource. Value is always the fixed string games#player.
- "avatarImageUrl": "A String", # The base URL for the image that represents the player.
- "displayName": "A String", # The name to display for the player.
- },
- "formattedScoreRank": "A String", # The localized string for the rank of this score for this leaderboard.
- "scoreRank": "A String", # The rank of this score for this leaderboard.
- "writeTimestampMillis": "A String", # The timestamp at which this score was recorded, in milliseconds since the epoch in UTC.
- },
- "prevPageToken": "A String", # The pagination token for the previous page of results.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- submit(leaderboardId, score, language=None)
-
Submits a score to the specified leaderboard.
-
-Args:
- leaderboardId: string, The ID of the leaderboard. (required)
- score: string, The score you're submitting. The submitted score is ignored if it is worse than a previously submitted score, where worse depends on the leaderboard sort order. The meaning of the score value depends on the leaderboard format type. For fixed-point, the score represents the raw value. For time, the score represents elapsed time in milliseconds. For currency, the score represents a value in micro units. (required)
- language: string, The preferred language to use for strings returned by this method.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of leaderboard entry resources.
- "kind": "games#playerScoreResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse.
- "leaderboardId": "A String", # The leaderboard ID that this score was submitted to.
- "formattedScore": "A String", # The formatted value of the submitted score.
- "beatenScoreTimeSpans": [ # The time spans where the submitted score is better than the existing score for that time span.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- "A String",
- ],
- "unbeatenScores": [ # The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans.
- { # This is a JSON template for a player score.
- "kind": "games#playerScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScore.
- "score": "A String", # The numerical value for this player score.
- "formattedScore": "A String", # The formatted score for this player score.
- "timeSpan": "A String", # The time span for this player score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- },
- ],
- }
-
-
-
- submitMultiple(body, language=None)
-
Submits multiple scores to leaderboards.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # This is a JSON template for a list of score submission requests
- "kind": "games#playerScoreSubmissionList", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreSubmissionList.
- "scores": [ # The score submissions.
- { # This is a JSON template for a request to submit a score to leaderboards.
- "kind": "games#scoreSubmission", # Uniquely identifies the type of this resource. Value is always the fixed string games#scoreSubmission.
- "leaderboardId": "A String", # The leaderboard this score is being submitted to.
- "score": "A String", # The new score being submitted.
- },
- ],
- }
-
- language: string, The preferred language to use for strings returned by this method.
-
-Returns:
- An object of the form:
-
- { # This is a JSON template for a list of score submission statuses.
- "submittedScores": [ # The score submissions statuses.
- { # This is a JSON template for a list of leaderboard entry resources.
- "kind": "games#playerScoreResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreResponse.
- "leaderboardId": "A String", # The leaderboard ID that this score was submitted to.
- "formattedScore": "A String", # The formatted value of the submitted score.
- "beatenScoreTimeSpans": [ # The time spans where the submitted score is better than the existing score for that time span.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- "A String",
- ],
- "unbeatenScores": [ # The scores in time spans that have not been beaten. As an example, the submitted score may be better than the player's DAILY score, but not better than the player's scores for the WEEKLY or ALL_TIME time spans.
- { # This is a JSON template for a player score.
- "kind": "games#playerScore", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScore.
- "score": "A String", # The numerical value for this player score.
- "formattedScore": "A String", # The formatted score for this player score.
- "timeSpan": "A String", # The time span for this player score.
- # Possible values are:
- # - "ALL_TIME" - The score is an all-time score.
- # - "WEEKLY" - The score is a weekly score.
- # - "DAILY" - The score is a daily score.
- },
- ],
- },
- ],
- "kind": "games#playerScoreListResponse", # Uniquely identifies the type of this resource. Value is always the fixed string games#playerScoreListResponse.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.advertisers.html b/docs/dyn/gan_v1beta1.advertisers.html
deleted file mode 100644
index 0ff960c..0000000
--- a/docs/dyn/gan_v1beta1.advertisers.html
+++ /dev/null
@@ -1,219 +0,0 @@
-
-
-
-
Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only publishers can lookup advertisers. Advertisers can request information about themselves by omitting the advertiserId query parameter.
Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only publishers can lookup advertisers. Advertisers can request information about themselves by omitting the advertiserId query parameter.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- advertiserId: string, The ID of the advertiser to look up. Optional.
-
-Returns:
- An object of the form:
-
- { # An AdvertiserResource.
- "category": "A String", # Category that this advertiser belongs to. A valid list of categories can be found here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107581
- "contactEmail": "A String", # Email that this advertiser would like publishers to contact them with.
- "kind": "gan#advertiser", # The kind for an advertiser.
- "siteUrl": "A String", # URL of the website this advertiser advertises from.
- "contactPhone": "A String", # Phone that this advertiser would like publishers to contact them with.
- "description": "A String", # Description of the website the advertiser advertises from.
- "merchantCenterIds": [ # List of merchant center ids for this advertiser
- "A String",
- ],
- "defaultLinkId": "A String", # The default link id for this advertiser.
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "commissionDuration": 42, # The longest possible length of a commission (how long the cookies on the customer's browser last before they expire).
- "status": "A String", # The status of the requesting publisher's relationship this advertiser.
- "payoutRank": "A String", # A rank based on commissions paid to publishers over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid).
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "allowPublisherCreatedLinks": True or False, # True if the advertiser allows publisher created links, otherwise false.
- "item": # Object with schema name: Advertiser # The requested advertiser.
- "joinDate": "A String", # Date that this advertiser was approved as a Google Affiliate Network advertiser.
- "logoUrl": "A String", # URL to the logo this advertiser uses on the Google Affiliate Network.
- "redirectDomains": [ # List of redirect URLs for this advertiser
- "A String",
- ],
- "id": "A String", # The ID of this advertiser.
- "productFeedsEnabled": True or False, # Allows advertisers to submit product listings to Google Product Search.
- "name": "A String", # The name of this advertiser.
- }
Retrieves data about all advertisers that the requesting advertiser/publisher has access to.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- relationshipStatus: string, Filters out all advertisers for which do not have the given relationship status with the requesting publisher.
- Allowed values
- approved - An advertiser that has approved your application.
- available - An advertiser program that's accepting new publishers.
- deactivated - Deactivated means either the advertiser has removed you from their program, or it could also mean that you chose to remove yourself from the advertiser's program.
- declined - An advertiser that did not approve your application.
- pending - An advertiser program that you've already applied to, but they haven't yet decided to approve or decline your application.
- pageToken: string, The value of 'nextPageToken' from the previous page. Optional.
- minNinetyDayEpc: number, Filters out all advertisers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
- advertiserCategory: string, Caret(^) delimted list of advertiser categories. Valid categories are defined here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107581. Filters out all advertisers not in one of the given advertiser categories. Optional.
- maxResults: integer, Max number of items to return in this page. Optional. Defaults to 20.
- minSevenDayEpc: number, Filters out all advertisers that have a seven day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
- minPayoutRank: integer, A value between 1 and 4, where 1 represents the quartile of advertisers with the lowest ranks and 4 represents the quartile of advertisers with the highest ranks. Filters out all advertisers with a lower rank than the given quartile. For example if a 2 was given only advertisers with a payout rank of 25 or higher would be included. Optional.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve.
- "items": [ # The advertiser list.
- { # An AdvertiserResource.
- "category": "A String", # Category that this advertiser belongs to. A valid list of categories can be found here: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107581
- "contactEmail": "A String", # Email that this advertiser would like publishers to contact them with.
- "kind": "gan#advertiser", # The kind for an advertiser.
- "siteUrl": "A String", # URL of the website this advertiser advertises from.
- "contactPhone": "A String", # Phone that this advertiser would like publishers to contact them with.
- "description": "A String", # Description of the website the advertiser advertises from.
- "merchantCenterIds": [ # List of merchant center ids for this advertiser
- "A String",
- ],
- "defaultLinkId": "A String", # The default link id for this advertiser.
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "commissionDuration": 42, # The longest possible length of a commission (how long the cookies on the customer's browser last before they expire).
- "status": "A String", # The status of the requesting publisher's relationship this advertiser.
- "payoutRank": "A String", # A rank based on commissions paid to publishers over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid).
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "allowPublisherCreatedLinks": True or False, # True if the advertiser allows publisher created links, otherwise false.
- "item": # Object with schema name: Advertiser # The requested advertiser.
- "joinDate": "A String", # Date that this advertiser was approved as a Google Affiliate Network advertiser.
- "logoUrl": "A String", # URL to the logo this advertiser uses on the Google Affiliate Network.
- "redirectDomains": [ # List of redirect URLs for this advertiser
- "A String",
- ],
- "id": "A String", # The ID of this advertiser.
- "productFeedsEnabled": True or False, # Allows advertisers to submit product listings to Google Product Search.
- "name": "A String", # The name of this advertiser.
- },
- ],
- "kind": "gan#advertisers", # The kind for a page of advertisers.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.ccOffers.html b/docs/dyn/gan_v1beta1.ccOffers.html
deleted file mode 100644
index a40868b..0000000
--- a/docs/dyn/gan_v1beta1.ccOffers.html
+++ /dev/null
@@ -1,197 +0,0 @@
-
-
-
-
Retrieves credit card offers for the given publisher.
-
-Args:
- publisher: string, The ID of the publisher in question. (required)
- advertiser: string, The advertiser ID of a card issuer whose offers to include. Optional, may be repeated. (repeated)
- projection: string, The set of fields to return.
- Allowed values
- full - Include all offer fields. This is the default.
- summary - Include only the basic fields needed to display an offer.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The credit card offers.
- { # A credit card offer. There are many possible result fields. We provide two different views of the data, or "projections." The "full" projection includes every result field. And the "summary" projection, which is the default, includes a smaller subset of the fields. The fields included in the summary projection are marked as such in their descriptions.
- "luggageInsurance": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "creditLimitMin": 3.14, # The low end for credit limits the issuer imposes on recipients of this card.
- "cardName": "A String", # The issuer's name for the card, including any trademark or service mark designators. A summary field.
- "creditLimitMax": 3.14, # The high end for credit limits the issuer imposes on recipients of this card.
- "gracePeriodDisplay": "A String", # Text describing the grace period before finance charges apply. A summary field.
- "offerId": "A String", # This offer's ID. A summary field.
- "rewardUnit": "A String", # For cards with rewards programs, the unit of reward. For example, miles, cash back, points.
- "minPurchaseRate": 3.14, # The lowest interest rate the issuer charges on this card. Expressed as an absolute number, not as a percentage.
- "cardBenefits": [ # A list of what the issuer thinks are the most important benefits of the card. Usually summarizes the rewards program, if there is one. A summary field.
- "A String",
- ],
- "rewards": [ # For cards with rewards programs, detailed rules about how the program works.
- {
- "category": "A String", # The kind of purchases covered by this rule.
- "minRewardTier": 3.14, # The minimum purchase amount in the given category before this rule applies.
- "maxRewardTier": 3.14, # The maximum purchase amount in the given category for this rule to apply.
- "expirationMonths": 3.14, # How long rewards granted by this rule last.
- "amount": 3.14, # The number of units rewarded per purchase dollar.
- "additionalDetails": "A String", # Other limits, for example, if this rule only applies during an introductory period.
- },
- ],
- "offersImmediateCashReward": True or False, # Whether a cash reward program lets you get cash back sooner than end of year or other longish period.
- "travelInsurance": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "returnedPaymentFee": "A String", # Text describing the fee for a payment that doesn't clear. A summary field.
- "kind": "gan#ccOffer", # The kind for one credit card offer. A summary field.
- "issuer": "A String", # Name of card issuer. A summary field.
- "maxPurchaseRate": 3.14, # The highest interest rate the issuer charges on this card. Expressed as an absolute number, not as a percentage.
- "minimumFinanceCharge": "A String", # Text describing how much missing the grace period will cost.
- "existingCustomerOnly": True or False, # Whether this card is only available to existing customers of the issuer.
- "annualFeeDisplay": "A String", # Text describing the annual fee, including any difference for the first year. A summary field.
- "initialSetupAndProcessingFee": "A String", # Fee for setting up the card.
- "issuerId": "A String", # The Google Affiliate Network ID of the advertiser making this offer.
- "purchaseRateAdditionalDetails": "A String", # Text describing any additional details for the purchase rate. A summary field.
- "prohibitedCategories": [ # Categories in which the issuer does not wish the card to be displayed. A summary field.
- "A String",
- ],
- "fraudLiability": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "cashAdvanceTerms": "A String", # Text describing the terms for cash advances. A summary field.
- "landingPageUrl": "A String", # The link to the issuer's page for this card. A summary field.
- "introCashAdvanceTerms": "A String", # Text describing the terms for introductory period cash advances. A summary field.
- "rewardsExpire": True or False, # Whether accumulated rewards ever expire.
- "introPurchaseTerms": "A String", # Text describing the terms for introductory period purchases. A summary field.
- "defaultFees": [ # Fees for defaulting on your payments.
- {
- "category": "A String", # The type of charge, for example Purchases.
- "maxRate": 3.14, # The highest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage.
- "minRate": 3.14, # The lowest rate the issuer may charge for defaulting on debt in this category. Expressed as an absolute number, not as a percentage.
- "rateType": "A String", # Fixed or variable.
- },
- ],
- "extendedWarranty": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "emergencyInsurance": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "firstYearAnnualFee": 3.14, # The annual fee for the first year, if different from the ongoing fee. Optional.
- "trackingUrl": "A String", # The link to ping to register a click on this offer. A summary field.
- "latePaymentFee": "A String", # Text describing how much a late payment will cost, eg "up to $35." A summary field.
- "overLimitFee": "A String", # Fee for exceeding the card's charge limit.
- "cardType": "A String", # What kind of credit card this is, for example secured or unsecured.
- "approvedCategories": [ # Possible categories for this card, eg "Low Interest" or "Good." A summary field.
- "A String",
- ],
- "rewardPartner": "A String", # The company that redeems the rewards, if different from the issuer.
- "introBalanceTransferTerms": "A String", # Text describing the terms for introductory period balance transfers. A summary field.
- "foreignCurrencyTransactionFee": "A String", # Fee for each transaction involving a foreign currency.
- "annualFee": 3.14, # The ongoing annual fee, in dollars.
- "issuerWebsite": "A String", # The generic link to the issuer's site.
- "variableRatesUpdateFrequency": "A String", # How often variable rates are updated.
- "carRentalInsurance": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "additionalCardBenefits": [ # More marketing copy about the card's benefits. A summary field.
- "A String",
- ],
- "ageMinimum": 3.14, # The youngest a recipient of this card may be.
- "balanceComputationMethod": "A String", # Text describing how the balance is computed. A summary field.
- "aprDisplay": "A String", # Text describing the purchase APR. A summary field.
- "additionalCardHolderFee": "A String", # Any extra fees levied on card holders.
- "variableRatesLastUpdated": "A String", # When variable rates were last updated.
- "network": "A String", # Which network (eg Visa) the card belongs to. A summary field.
- "purchaseRateType": "A String", # Fixed or variable.
- "statementCopyFee": "A String", # Fee for requesting a copy of your statement.
- "rewardsHaveBlackoutDates": True or False, # For airline miles rewards, tells whether blackout dates apply to the miles.
- "creditRatingDisplay": "A String", # Text describing the credit ratings required for recipients of this card, for example "Excellent/Good." A summary field.
- "flightAccidentInsurance": "A String", # If you get coverage when you use the card for the given activity, this field describes it.
- "annualRewardMaximum": 3.14, # The largest number of units you may accumulate in a year.
- "balanceTransferTerms": "A String", # Text describing the terms for balance transfers. A summary field.
- "bonusRewards": [ # For cards with rewards programs, extra circumstances whereby additional rewards may be granted.
- {
- "amount": 3.14, # How many units of reward will be granted.
- "details": "A String", # The circumstances under which this rule applies, for example, booking a flight via Orbitz.
- },
- ],
- "imageUrl": "A String", # The link to the image of the card that is shown on Connect Commerce. A summary field.
- "ageMinimumDetails": "A String", # Text describing the details of the age minimum restriction.
- "disclaimer": "A String", # A notice that, if present, is referenced via an asterisk by many of the other summary fields. If this field is present, it will always start with an asterisk ("*"), and must be prominently displayed with the offer. A summary field.
- },
- ],
- "kind": "gan#ccOffers", # The kind for a page of credit card offers.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.events.html b/docs/dyn/gan_v1beta1.events.html
deleted file mode 100644
index 3831857..0000000
--- a/docs/dyn/gan_v1beta1.events.html
+++ /dev/null
@@ -1,206 +0,0 @@
-
-
-
-
Retrieves event data for a given advertiser/publisher.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- orderId: string, Caret(^) delimited list of order IDs. Filters out all events that do not reference one of the given order IDs. Optional.
- chargeType: string, Filters out all charge events that are not of the given charge type. Valid values: 'other', 'slotting_fee', 'monthly_minimum', 'tier_bonus', 'credit', 'debit'. Optional.
- Allowed values
- credit - A credit increases the publisher's payout amount and decreases the advertiser's invoice amount.
- debit - A debit reduces the publisher's payout and increases the advertiser's invoice amount.
- monthly_minimum - A payment made to Google by an advertiser as a minimum monthly network fee.
- other - Catch all. Default if unset
- slotting_fee - A one time payment made from an advertiser to a publisher.
- tier_bonus - A payment from an advertiser to a publisher for the publisher maintaining a high tier level
- linkId: string, Caret(^) delimited list of link IDs. Filters out all events that do not reference one of the given link IDs. Optional.
- advertiserId: string, Caret(^) delimited list of advertiser IDs. Filters out all events that do not reference one of the given advertiser IDs. Only used when under publishers role. Optional.
- sku: string, Caret(^) delimited list of SKUs. Filters out all events that do not reference one of the given SKU. Optional.
- pageToken: string, The value of 'nextPageToken' from the previous page. Optional.
- productCategory: string, Caret(^) delimited list of product categories. Filters out all events that do not reference a product in one of the given product categories. Optional.
- modifyDateMin: string, Filters out all events modified earlier than given date. Optional. Defaults to 24 hours before the current modifyDateMax, if modifyDateMax is explicitly set.
- type: string, Filters out all events that are not of the given type. Valid values: 'action', 'transaction', 'charge'. Optional.
- Allowed values
- action - The completion of an application, sign-up, or other process. For example, an action occurs if a user clicks an ad for a credit card and completes an application for that card.
- charge - A charge event is typically a payment between an advertiser, publisher or Google.
- transaction - A conversion event, typically an e-commerce transaction. Some advertisers use a transaction to record other types of events, such as magazine subscriptions.
- status: string, Filters out all events that do not have the given status. Valid values: 'active', 'canceled'. Optional.
- Allowed values
- active - Event is currently active.
- canceled - Event is currently canceled.
- modifyDateMax: string, Filters out all events modified later than given date. Optional. Defaults to 24 hours after modifyDateMin, if modifyDateMin is explicitly set.
- eventDateMin: string, Filters out all events earlier than given date. Optional. Defaults to 24 hours from current date/time.
- maxResults: integer, Max number of offers to return in this page. Optional. Defaults to 20.
- eventDateMax: string, Filters out all events later than given date. Optional. Defaults to 24 hours after eventMin.
- memberId: string, Caret(^) delimited list of member IDs. Filters out all events that do not reference one of the given member IDs. Optional.
- publisherId: string, Caret(^) delimited list of publisher IDs. Filters out all events that do not reference one of the given publishers IDs. Only used when under advertiser role. Optional.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve.
- "items": [ # The event list.
- { # An EventResource.
- "networkFee": { # An ApiMoneyProto. # Fee that the advertiser paid to the Google Affiliate Network.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "advertiserName": "A String", # The name of the advertiser for this event.
- "kind": "gan#event", # The kind for one event.
- "modifyDate": "A String", # The date-time this event was last modified as a RFC 3339 date-time value.
- "type": "A String", # Type of the event (action|transaction|charge).
- "orderId": "A String", # The order ID for this event. Only returned for conversion events.
- "publisherName": "A String", # The name of the publisher for this event.
- "memberId": "A String", # The ID of the member attached to this event. Only returned for conversion events.
- "advertiserId": "A String", # The ID of advertiser for this event.
- "status": "A String", # Status of the event (active|canceled). Only returned for charge and conversion events.
- "chargeId": "A String", # The charge ID for this event. Only returned for charge events.
- "products": [ # Products associated with the event.
- {
- "networkFee": { # An ApiMoneyProto. # Fee that the advertiser paid to the Google Affiliate Network for this product.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "sku": "A String", # Sku of this product.
- "categoryName": "A String", # Name of the category this product belongs to.
- "skuName": "A String", # Sku name of this product.
- "publisherFee": { # An ApiMoneyProto. # Fee that the advertiser paid to the publisehr for this product.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "earnings": { # An ApiMoneyProto. # Amount earned by the publisher on this product.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "unitPrice": { # An ApiMoneyProto. # Price per unit of this product.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "categoryId": "A String", # Id of the category this product belongs to.
- "quantity": "A String", # Quantity of this product bought/exchanged.
- },
- ],
- "earnings": { # An ApiMoneyProto. # Earnings by the publisher.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "chargeType": "A String", # Charge type of the event (other|slotting_fee|monthly_minimum|tier_bonus|debit|credit). Only returned for charge events.
- "publisherFee": { # An ApiMoneyProto. # Fee that the advertiser paid to the publisher.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "commissionableSales": { # An ApiMoneyProto. # Amount of money exchanged during the transaction. Only returned for charge and conversion events.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "publisherId": "A String", # The ID of the publisher for this event.
- "eventDate": "A String", # The date-time this event was initiated as a RFC 3339 date-time value.
- },
- ],
- "kind": "gan#events", # The kind for a page of events.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.html b/docs/dyn/gan_v1beta1.html
deleted file mode 100644
index 10402cc..0000000
--- a/docs/dyn/gan_v1beta1.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
Retrieves data about a single link if the requesting advertiser/publisher has access to it. Advertisers can look up their own links. Publishers can look up visible links or links belonging to advertisers they are in a relationship with.
Retrieves data about a single link if the requesting advertiser/publisher has access to it. Advertisers can look up their own links. Publishers can look up visible links or links belonging to advertisers they are in a relationship with.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- linkId: string, The ID of the link to look up. (required)
-
-Returns:
- An object of the form:
-
- { # A LinkResource.
- "isActive": True or False, # Flag for if this link is active.
- "linkType": "A String", # The link type.
- "kind": "gan#link", # The kind for one entity.
- "endDate": "A String", # Date that this link becomes inactive.
- "description": "A String", # Description.
- "name": "A String", # The logical name for this link.
- "specialOffers": { # Special offers on the link.
- "priceCut": { # An ApiMoneyProto. # Price cut on the purchase
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "priceCutMin": { # An ApiMoneyProto. # Minimum purchase amount for price cut promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeShipping": True or False, # Whether there is free shipping
- "promotionCodes": [ # List of promotion code associated with the link
- "A String",
- ],
- "percentOff": 3.14, # Percent off on the purchase
- "percentOffMin": { # An ApiMoneyProto. # Minimum purchase amount for percent off promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeGift": True or False, # Whether there is a free gift
- "freeShippingMin": { # An ApiMoneyProto. # Minimum purchase amount for free shipping promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- },
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "createDate": "A String", # Date that this link was created.
- "imageAltText": "A String", # image alt text.
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "advertiserId": "A String", # The advertiser id for the advertiser who owns this link.
- "id": "A String", # The ID of this link.
- "impressionTrackingUrl": "A String", # Tracking url for impressions.
- "promotionType": "A String", # Promotion Type
- "duration": "A String", # Duration
- "authorship": "A String", # Authorship
- "startDate": "A String", # Date that this link becomes active.
- "availability": "A String", # Availability.
- "clickTrackingUrl": "A String", # Tracking url for clicks.
- "destinationUrl": "A String", # The destination URL for the link.
- }
-
-
-
- insert(role, roleId, body)
-
Inserts a new link.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A LinkResource.
- "isActive": True or False, # Flag for if this link is active.
- "linkType": "A String", # The link type.
- "kind": "gan#link", # The kind for one entity.
- "endDate": "A String", # Date that this link becomes inactive.
- "description": "A String", # Description.
- "name": "A String", # The logical name for this link.
- "specialOffers": { # Special offers on the link.
- "priceCut": { # An ApiMoneyProto. # Price cut on the purchase
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "priceCutMin": { # An ApiMoneyProto. # Minimum purchase amount for price cut promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeShipping": True or False, # Whether there is free shipping
- "promotionCodes": [ # List of promotion code associated with the link
- "A String",
- ],
- "percentOff": 3.14, # Percent off on the purchase
- "percentOffMin": { # An ApiMoneyProto. # Minimum purchase amount for percent off promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeGift": True or False, # Whether there is a free gift
- "freeShippingMin": { # An ApiMoneyProto. # Minimum purchase amount for free shipping promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- },
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "createDate": "A String", # Date that this link was created.
- "imageAltText": "A String", # image alt text.
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "advertiserId": "A String", # The advertiser id for the advertiser who owns this link.
- "id": "A String", # The ID of this link.
- "impressionTrackingUrl": "A String", # Tracking url for impressions.
- "promotionType": "A String", # Promotion Type
- "duration": "A String", # Duration
- "authorship": "A String", # Authorship
- "startDate": "A String", # Date that this link becomes active.
- "availability": "A String", # Availability.
- "clickTrackingUrl": "A String", # Tracking url for clicks.
- "destinationUrl": "A String", # The destination URL for the link.
- }
-
-
-Returns:
- An object of the form:
-
- { # A LinkResource.
- "isActive": True or False, # Flag for if this link is active.
- "linkType": "A String", # The link type.
- "kind": "gan#link", # The kind for one entity.
- "endDate": "A String", # Date that this link becomes inactive.
- "description": "A String", # Description.
- "name": "A String", # The logical name for this link.
- "specialOffers": { # Special offers on the link.
- "priceCut": { # An ApiMoneyProto. # Price cut on the purchase
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "priceCutMin": { # An ApiMoneyProto. # Minimum purchase amount for price cut promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeShipping": True or False, # Whether there is free shipping
- "promotionCodes": [ # List of promotion code associated with the link
- "A String",
- ],
- "percentOff": 3.14, # Percent off on the purchase
- "percentOffMin": { # An ApiMoneyProto. # Minimum purchase amount for percent off promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeGift": True or False, # Whether there is a free gift
- "freeShippingMin": { # An ApiMoneyProto. # Minimum purchase amount for free shipping promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- },
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "createDate": "A String", # Date that this link was created.
- "imageAltText": "A String", # image alt text.
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "advertiserId": "A String", # The advertiser id for the advertiser who owns this link.
- "id": "A String", # The ID of this link.
- "impressionTrackingUrl": "A String", # Tracking url for impressions.
- "promotionType": "A String", # Promotion Type
- "duration": "A String", # Duration
- "authorship": "A String", # Authorship
- "startDate": "A String", # Date that this link becomes active.
- "availability": "A String", # Availability.
- "clickTrackingUrl": "A String", # Tracking url for clicks.
- "destinationUrl": "A String", # The destination URL for the link.
- }
Retrieves all links that match the query parameters.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- linkType: string, The type of the link.
- Allowed values
- banner -
- text -
- promotionType: string, The promotion type. (repeated)
- Allowed values
- coupon -
- free_gift -
- free_shipping -
- percent_off -
- price_cut -
- createDateMax: string, The end of the create date range.
- advertiserId: string, Limits the resulting links to the ones belonging to the listed advertisers. (repeated)
- pageToken: string, The value of 'nextPageToken' from the previous page. Optional.
- relationshipStatus: string, The status of the relationship.
- Allowed values
- approved -
- available -
- maxResults: integer, Max number of items to return in this page. Optional. Defaults to 20.
- authorship: string, The role of the author of the link.
- Allowed values
- advertiser -
- publisher -
- startDateMin: string, The beginning of the start date range.
- assetSize: string, The size of the given asset. (repeated)
- searchText: string, Field for full text search across title and merchandising text, supports link id search.
- startDateMax: string, The end of the start date range.
- createDateMin: string, The beginning of the create date range.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The next page token.
- "items": [ # The links.
- { # A LinkResource.
- "isActive": True or False, # Flag for if this link is active.
- "linkType": "A String", # The link type.
- "kind": "gan#link", # The kind for one entity.
- "endDate": "A String", # Date that this link becomes inactive.
- "description": "A String", # Description.
- "name": "A String", # The logical name for this link.
- "specialOffers": { # Special offers on the link.
- "priceCut": { # An ApiMoneyProto. # Price cut on the purchase
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "priceCutMin": { # An ApiMoneyProto. # Minimum purchase amount for price cut promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeShipping": True or False, # Whether there is free shipping
- "promotionCodes": [ # List of promotion code associated with the link
- "A String",
- ],
- "percentOff": 3.14, # Percent off on the purchase
- "percentOffMin": { # An ApiMoneyProto. # Minimum purchase amount for percent off promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "freeGift": True or False, # Whether there is a free gift
- "freeShippingMin": { # An ApiMoneyProto. # Minimum purchase amount for free shipping promotion
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- },
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past seven days on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "createDate": "A String", # Date that this link was created.
- "imageAltText": "A String", # image alt text.
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to publishers divided by the total number of clicks over the past three months on this link. This value should be multiplied by 100 at the time of display.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "advertiserId": "A String", # The advertiser id for the advertiser who owns this link.
- "id": "A String", # The ID of this link.
- "impressionTrackingUrl": "A String", # Tracking url for impressions.
- "promotionType": "A String", # Promotion Type
- "duration": "A String", # Duration
- "authorship": "A String", # Authorship
- "startDate": "A String", # Date that this link becomes active.
- "availability": "A String", # Availability.
- "clickTrackingUrl": "A String", # Tracking url for clicks.
- "destinationUrl": "A String", # The destination URL for the link.
- },
- ],
- "kind": "gan#links", # The kind for a page of links.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.publishers.html b/docs/dyn/gan_v1beta1.publishers.html
deleted file mode 100644
index 5d6a741..0000000
--- a/docs/dyn/gan_v1beta1.publishers.html
+++ /dev/null
@@ -1,195 +0,0 @@
-
-
-
-
Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.
Retrieves data about a single advertiser if that the requesting advertiser/publisher has access to it. Only advertisers can look up publishers. Publishers can request information about themselves by omitting the publisherId query parameter.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- publisherId: string, The ID of the publisher to look up. Optional.
-
-Returns:
- An object of the form:
-
- { # A PublisherResource.
- "status": "A String", # The status of the requesting advertiser's relationship with this publisher.
- "kind": "gan#publisher", # The kind for a publisher.
- "name": "A String", # The name of this publisher.
- "classification": "A String", # Classification that this publisher belongs to. See this link for all publisher classifications: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107625&ctx=cb&src=cb&cbid=-k5fihzthfaik&cbrank=4
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to this publisher divided by the total number of clicks over the past seven days. Values are multiplied by 100 for display purposes.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "payoutRank": "A String", # A rank based on commissions paid to this publisher over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid).
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to this publisher divided by the total number of clicks over the past three months. Values are multiplied by 100 for display purposes.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "item": # Object with schema name: Publisher # The requested publisher.
- "joinDate": "A String", # Date that this publisher was approved as a Google Affiliate Network publisher.
- "sites": [ # Websites that this publisher uses to advertise.
- "A String",
- ],
- "id": "A String", # The ID of this publisher.
- }
Retrieves data about all publishers that the requesting advertiser/publisher has access to.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- publisherCategory: string, Caret(^) delimted list of publisher categories. Valid categories: (unclassified|community_and_content|shopping_and_promotion|loyalty_and_rewards|network|search_specialist|comparison_shopping|email). Filters out all publishers not in one of the given advertiser categories. Optional.
- relationshipStatus: string, Filters out all publishers for which do not have the given relationship status with the requesting publisher.
- Allowed values
- approved - Publishers you've approved to your program.
- available - Publishers available for you to recruit.
- deactivated - A publisher that you terminated from your program. Publishers also have the ability to remove themselves from your program.
- declined - A publisher that you did not approve to your program.
- pending - Publishers that have applied to your program. We recommend reviewing and deciding on pending publishers on a weekly basis.
- pageToken: string, The value of 'nextPageToken' from the previous page. Optional.
- minSevenDayEpc: number, Filters out all publishers that have a seven day EPC average lower than the given value (inclusive). Min value 0.0. Optional.
- minNinetyDayEpc: number, Filters out all publishers that have a ninety day EPC average lower than the given value (inclusive). Min value: 0.0. Optional.
- maxResults: integer, Max number of items to return in this page. Optional. Defaults to 20.
- minPayoutRank: integer, A value between 1 and 4, where 1 represents the quartile of publishers with the lowest ranks and 4 represents the quartile of publishers with the highest ranks. Filters out all publishers with a lower rank than the given quartile. For example if a 2 was given only publishers with a payout rank of 25 or higher would be included. Optional.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The 'pageToken' to pass to the next request to get the next page, if there are more to retrieve.
- "items": [ # The entity list.
- { # A PublisherResource.
- "status": "A String", # The status of the requesting advertiser's relationship with this publisher.
- "kind": "gan#publisher", # The kind for a publisher.
- "name": "A String", # The name of this publisher.
- "classification": "A String", # Classification that this publisher belongs to. See this link for all publisher classifications: http://www.google.com/support/affiliatenetwork/advertiser/bin/answer.py?hl=en&answer=107625&ctx=cb&src=cb&cbid=-k5fihzthfaik&cbrank=4
- "epcSevenDayAverage": { # An ApiMoneyProto. # The sum of fees paid to this publisher divided by the total number of clicks over the past seven days. Values are multiplied by 100 for display purposes.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "payoutRank": "A String", # A rank based on commissions paid to this publisher over the past 90 days. A number between 1 and 4 where 4 means the top quartile (most money paid) and 1 means the bottom quartile (least money paid).
- "epcNinetyDayAverage": { # An ApiMoneyProto. # The sum of fees paid to this publisher divided by the total number of clicks over the past three months. Values are multiplied by 100 for display purposes.
- "amount": 3.14, # The amount of money.
- "currencyCode": "A String", # The 3-letter code of the currency in question.
- },
- "item": # Object with schema name: Publisher # The requested publisher.
- "joinDate": "A String", # Date that this publisher was approved as a Google Affiliate Network publisher.
- "sites": [ # Websites that this publisher uses to advertise.
- "A String",
- ],
- "id": "A String", # The ID of this publisher.
- },
- ],
- "kind": "gan#publishers", # The kind for a page of entities.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/gan_v1beta1.reports.html b/docs/dyn/gan_v1beta1.reports.html
deleted file mode 100644
index 8c1d646..0000000
--- a/docs/dyn/gan_v1beta1.reports.html
+++ /dev/null
@@ -1,139 +0,0 @@
-
-
-
-
Retrieves a report of the specified type.
-
-Args:
- role: string, The role of the requester. Valid values: 'advertisers' or 'publishers'. (required)
- Allowed values
- advertisers - The requester is requesting as an advertiser.
- publishers - The requester is requesting as a publisher.
- roleId: string, The ID of the requesting advertiser or publisher. (required)
- reportType: string, The type of report being requested. Valid values: 'order_delta'. Required. (required)
- Allowed values
- order_delta - The order delta report type.
- startDate: string, The start date (inclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day before endDate, if that is given, or yesterday. Optional.
- endDate: string, The end date (exclusive), in RFC 3339 format, for the report data to be returned. Defaults to one day after startDate, if that is given, or today. Optional.
- eventType: string, Filters out all events that are not of the given type. Valid values: 'action', 'transaction', or 'charge'. Optional.
- Allowed values
- action - Event type is action.
- charge - Event type is charge.
- transaction - Event type is transaction.
- advertiserId: string, The IDs of the advertisers to look up, if applicable. (repeated)
- startIndex: integer, Offset on which to return results when paging. Optional.
- calculateTotals: boolean, Whether or not to calculate totals rows. Optional.
- linkId: string, Filters to capture one of given link IDs. Optional. (repeated)
- orderId: string, Filters to capture one of the given order IDs. Optional. (repeated)
- maxResults: integer, Max number of items to return in this page. Optional. Defaults to return all results.
- status: string, Filters out all events that do not have the given status. Valid values: 'active', 'canceled', or 'invalid'. Optional.
- Allowed values
- active - Event is currently active.
- canceled - Event is currently canceled.
- invalid - Event is currently invalid.
- publisherId: string, The IDs of the publishers to look up, if applicable. (repeated)
-
-Returns:
- An object of the form:
-
- { # A ReportResource representing a report of a certain type either for an advertiser or publisher.
- "totals_rows": [ # The totals rows for the report
- [ # Loop over each column in the row.
- "",
- ],
- ],
- "kind": "gan#report", # The kind for a report.
- "rows": [ # The rows of data for the report
- [ # Loop over each column in the row.
- "",
- ],
- ],
- "end_date": "A String", # The end of the date range for this report, exclusive.
- "matching_row_count": "A String", # The number of matching rows before paging is applied.
- "column_names": [ # The column names for the report
- "A String",
- ],
- "type": "A String", # The report type.
- "start_date": "A String", # The start of the date range for this report, inclusive.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/groupsmigration_v1.archive.html b/docs/dyn/groupsmigration_v1.archive.html
deleted file mode 100644
index 8bf8875..0000000
--- a/docs/dyn/groupsmigration_v1.archive.html
+++ /dev/null
@@ -1,98 +0,0 @@
-
-
-
-
Inserts a new mail into the archive of the Google group.
-
Method Details
-
- insert(groupId, media_body=None)
-
Inserts a new mail into the archive of the Google group.
-
-Args:
- groupId: string, The group ID (required)
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # JSON response template for groups migration API.
- "kind": "groupsmigration#groups", # The kind of insert resource this is.
- "responseCode": "A String", # The status of the insert request.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/groupsmigration_v1.html b/docs/dyn/groupsmigration_v1.html
deleted file mode 100644
index 4ff4e68..0000000
--- a/docs/dyn/groupsmigration_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Gets one resource by id.
-
-Args:
- groupUniqueId: string, The resource ID (required)
-
-Returns:
- An object of the form:
-
- { # JSON template for Group resource
- "allowExternalMembers": "A String", # Are external members allowed to join the group.
- "whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
- "primaryLanguage": "A String", # Primary language for the group.
- "whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "defaultMessageDenyNotificationText": "A String", # Default message deny notification message
- "includeInGlobalAddressList": "A String", # If this groups should be included in global address list or not.
- "archiveOnly": "A String", # If the group is archive only
- "isArchived": "A String", # If the contents of the group are archived.
- "membersCanPostAsTheGroup": "A String", # Can members post using the group email address.
- "allowWebPosting": "A String", # If posting from web is allowed.
- "email": "A String", # Email id of the group
- "messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE
- "description": "A String", # Description of the group
- "replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
- "customReplyTo": "A String", # Default email to which reply to any message should go.
- "sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.
- "messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT
- "whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN
- "name": "A String", # Name of the Group
- "kind": "groupsSettings#groups", # The type of the resource.
- "whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE
- "spamModerationLevel": "A String", # Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
- "whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "showInGroupDirectory": "A String", # Is the group listed in groups directory
- "maxMessageBytes": 42, # Maximum message size allowed.
- "allowGoogleCommunication": "A String", # Is google allowed to contact admins.
- }
-
-
-
- patch(groupUniqueId, body)
-
Updates an existing resource. This method supports patch semantics.
-
-Args:
- groupUniqueId: string, The resource ID (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for Group resource
- "allowExternalMembers": "A String", # Are external members allowed to join the group.
- "whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
- "primaryLanguage": "A String", # Primary language for the group.
- "whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "defaultMessageDenyNotificationText": "A String", # Default message deny notification message
- "includeInGlobalAddressList": "A String", # If this groups should be included in global address list or not.
- "archiveOnly": "A String", # If the group is archive only
- "isArchived": "A String", # If the contents of the group are archived.
- "membersCanPostAsTheGroup": "A String", # Can members post using the group email address.
- "allowWebPosting": "A String", # If posting from web is allowed.
- "email": "A String", # Email id of the group
- "messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE
- "description": "A String", # Description of the group
- "replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
- "customReplyTo": "A String", # Default email to which reply to any message should go.
- "sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.
- "messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT
- "whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN
- "name": "A String", # Name of the Group
- "kind": "groupsSettings#groups", # The type of the resource.
- "whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE
- "spamModerationLevel": "A String", # Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
- "whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "showInGroupDirectory": "A String", # Is the group listed in groups directory
- "maxMessageBytes": 42, # Maximum message size allowed.
- "allowGoogleCommunication": "A String", # Is google allowed to contact admins.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for Group resource
- "allowExternalMembers": "A String", # Are external members allowed to join the group.
- "whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
- "primaryLanguage": "A String", # Primary language for the group.
- "whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "defaultMessageDenyNotificationText": "A String", # Default message deny notification message
- "includeInGlobalAddressList": "A String", # If this groups should be included in global address list or not.
- "archiveOnly": "A String", # If the group is archive only
- "isArchived": "A String", # If the contents of the group are archived.
- "membersCanPostAsTheGroup": "A String", # Can members post using the group email address.
- "allowWebPosting": "A String", # If posting from web is allowed.
- "email": "A String", # Email id of the group
- "messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE
- "description": "A String", # Description of the group
- "replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
- "customReplyTo": "A String", # Default email to which reply to any message should go.
- "sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.
- "messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT
- "whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN
- "name": "A String", # Name of the Group
- "kind": "groupsSettings#groups", # The type of the resource.
- "whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE
- "spamModerationLevel": "A String", # Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
- "whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "showInGroupDirectory": "A String", # Is the group listed in groups directory
- "maxMessageBytes": 42, # Maximum message size allowed.
- "allowGoogleCommunication": "A String", # Is google allowed to contact admins.
- }
-
-
-
- update(groupUniqueId, body)
-
Updates an existing resource.
-
-Args:
- groupUniqueId: string, The resource ID (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for Group resource
- "allowExternalMembers": "A String", # Are external members allowed to join the group.
- "whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
- "primaryLanguage": "A String", # Primary language for the group.
- "whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "defaultMessageDenyNotificationText": "A String", # Default message deny notification message
- "includeInGlobalAddressList": "A String", # If this groups should be included in global address list or not.
- "archiveOnly": "A String", # If the group is archive only
- "isArchived": "A String", # If the contents of the group are archived.
- "membersCanPostAsTheGroup": "A String", # Can members post using the group email address.
- "allowWebPosting": "A String", # If posting from web is allowed.
- "email": "A String", # Email id of the group
- "messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE
- "description": "A String", # Description of the group
- "replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
- "customReplyTo": "A String", # Default email to which reply to any message should go.
- "sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.
- "messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT
- "whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN
- "name": "A String", # Name of the Group
- "kind": "groupsSettings#groups", # The type of the resource.
- "whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE
- "spamModerationLevel": "A String", # Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
- "whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "showInGroupDirectory": "A String", # Is the group listed in groups directory
- "maxMessageBytes": 42, # Maximum message size allowed.
- "allowGoogleCommunication": "A String", # Is google allowed to contact admins.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for Group resource
- "allowExternalMembers": "A String", # Are external members allowed to join the group.
- "whoCanPostMessage": "A String", # Permissions to post messages to the group. Possible values are: NONE_CAN_POST ALL_MANAGERS_CAN_POST ALL_MEMBERS_CAN_POST ALL_IN_DOMAIN_CAN_POST ANYONE_CAN_POST
- "primaryLanguage": "A String", # Primary language for the group.
- "whoCanViewMembership": "A String", # Permissions to view membership. Possbile values are: ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "defaultMessageDenyNotificationText": "A String", # Default message deny notification message
- "includeInGlobalAddressList": "A String", # If this groups should be included in global address list or not.
- "archiveOnly": "A String", # If the group is archive only
- "isArchived": "A String", # If the contents of the group are archived.
- "membersCanPostAsTheGroup": "A String", # Can members post using the group email address.
- "allowWebPosting": "A String", # If posting from web is allowed.
- "email": "A String", # Email id of the group
- "messageModerationLevel": "A String", # Moderation level for messages. Possible values are: MODERATE_ALL_MESSAGES MODERATE_NON_MEMBERS MODERATE_NEW_MEMBERS MODERATE_NONE
- "description": "A String", # Description of the group
- "replyTo": "A String", # Whome should the default reply to a message go to. Possible values are: REPLY_TO_CUSTOM REPLY_TO_SENDER REPLY_TO_LIST REPLY_TO_OWNER REPLY_TO_IGNORE REPLY_TO_MANAGERS
- "customReplyTo": "A String", # Default email to which reply to any message should go.
- "sendMessageDenyNotification": "A String", # Should the member be notified if his message is denied by owner.
- "messageDisplayFont": "A String", # Default message display font. Possible values are: DEFAULT_FONT FIXED_WIDTH_FONT
- "whoCanJoin": "A String", # Permissions to join the group. Possible values are: ANYONE_CAN_JOIN ALL_IN_DOMAIN_CAN_JOIN INVITED_CAN_JOIN CAN_REQUEST_TO_JOIN
- "name": "A String", # Name of the Group
- "kind": "groupsSettings#groups", # The type of the resource.
- "whoCanInvite": "A String", # Permissions to invite members. Possbile values are: ALL_MEMBERS_CAN_INVITE ALL_MANAGERS_CAN_INVITE
- "spamModerationLevel": "A String", # Moderation level for messages detected as spam. Possible values are: ALLOW MODERATE SILENTLY_MODERATE REJECT
- "whoCanViewGroup": "A String", # Permissions to view group. Possbile values are: ANYONE_CAN_VIEW ALL_IN_DOMAIN_CAN_VIEW ALL_MEMBERS_CAN_VIEW ALL_MANAGERS_CAN_VIEW
- "showInGroupDirectory": "A String", # Is the group listed in groups directory
- "maxMessageBytes": 42, # Maximum message size allowed.
- "allowGoogleCommunication": "A String", # Is google allowed to contact admins.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/groupssettings_v1.html b/docs/dyn/groupssettings_v1.html
deleted file mode 100644
index 4c44371..0000000
--- a/docs/dyn/groupssettings_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Creates the URI used by the IdP to authenticate the user.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to get the IDP authentication URL.
- "openidRealm": "A String", # Optional realm for OpenID protocol. The sub string "scheme://domain:port" of the param "continueUri" is used if this is not set.
- "clientId": "A String", # The relying party OAuth client ID.
- "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
- "context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
- "continueUri": "A String", # The URI to which the IDP redirects the user after the federated login flow.
- "identifier": "A String", # The email or federated ID of the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Response of creating the IDP authentication URL.
- "kind": "identitytoolkit#CreateAuthUriResponse", # The fixed string identitytoolkit#CreateAuthUriResponse".
- "providers": [ # Existing IDP's for the user.
- "A String",
- ],
- "registered": True or False, # Whether the user is registered if the identifier is an email.
- "authUri": "A String", # The URI used by the IDP to authenticate the user.
- }
-
-
-
- deleteAccount(body)
-
Delete user account.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to delete account.
- "localId": "A String", # The local ID of the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Respone of deleting account.
- "kind": "identitytoolkit#DeleteAccountResponse", # The fixed string "identitytoolkit#DeleteAccountResponse".
- }
-
-
-
- getAccountInfo(body)
-
Returns the account info.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to get the account information.
- "idToken": "A String", # The GITKit token of the authenticated user.
- "email": [ # The list of emails of the users to inquiry.
- "A String",
- ],
- "localId": [ # The list of local ID's of the users to inquiry.
- "A String",
- ],
- }
-
-
-Returns:
- An object of the form:
-
- { # Response of getting account information.
- "kind": "identitytoolkit#GetAccountInfoResponse", # The fixed string "identitytoolkit#GetAccountInfoResponse".
- "users": [ # The info of the users.
- {
- "displayName": "A String", # The name of the user.
- "localId": "A String", # The local ID of the user.
- "language": "A String", # The language of the user.
- "photoUrl": "A String", # The URL of the user profile photo.
- "dateOfBirth": "A String", # The user's date of birth.
- "version": 42, # Version of the user's password.
- "providerUserInfo": [ # The IDP of the user.
- {
- "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name, e.g., google.com, aol.com, live.net and yahoo.com. For other OpenID IdPs it's the OP identifier.
- "displayName": "A String", # The user's display name at the IDP.
- "photoUrl": "A String", # The user's photo url at the IDP.
- },
- ],
- "timeZone": "A String", # The time zone of the user.
- "passwordUpdatedAt": "A String", # The timestamp when the password was last updated.
- "password": "A String", # The user's hashed password.
- "salt": "A String", # The user's password salt.
- "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
- },
- ],
- }
-
-
-
- getOobConfirmationCode(body)
-
Get a code for user action confirmation.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request of getting a code for user confirmation (reset password, change email etc.)
- "kind": "identitytoolkit#relyingparty", # The fixed string "identitytoolkit#relyingparty".
- "requestType": "A String", # The request type.
- "idToken": "A String", # The user's Gitkit login token for email change.
- "challenge": "A String", # The recaptcha challenge presented to the user.
- "newEmail": "A String", # The new email if the code is for email change.
- "userIp": "A String", # The IP address of the user.
- "email": "A String", # The email of the user.
- "captchaResp": "A String", # The recaptcha response from the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Response of getting a code for user confirmation (reset password, change email etc.).
- "kind": "identitytoolkit#GetOobConfirmationCodeResponse", # The fixed string "identitytoolkit#GetOobConfirmationCodeResponse".
- "oobCode": "A String", # The code to be send to the user.
- }
-
-
-
- resetPassword(body)
-
Set account info for a user.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to reset the password.
- "newPassword": "A String", # The new password inputted by the user.
- "oldPassword": "A String", # The old password inputted by the user.
- "oobCode": "A String", # The confirmation code.
- "email": "A String", # The email address of the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Response of resetting the password.
- "kind": "identitytoolkit#ResetPasswordResponse", # The fixed string "identitytoolkit#ResetPasswordResponse".
- "email": "A String", # The user's email.
- }
-
-
-
- setAccountInfo(body)
-
Set account info for a user.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to set the account information.
- "oobCode": "A String", # The out-of-band code of the change email request.
- "localId": "A String", # The local ID of the user.
- "upgradeToFederatedLogin": True or False, # Mark the user to upgrade to federated login.
- "emailVerified": True or False, # Mark the email as verified or not.
- "provider": [ # The associated IDPs of the user.
- "A String",
- ],
- "idToken": "A String", # The GITKit token of the authenticated user.
- "displayName": "A String", # The name of the user.
- "password": "A String", # The new password of the user.
- "email": "A String", # The email of the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Respone of setting the account information.
- "kind": "identitytoolkit#SetAccountInfoResponse", # The fixed string "identitytoolkit#SetAccountInfoResponse".
- "displayName": "A String", # The name of the user.
- "email": "A String", # The email of the user.
- "provider": [ # The associated IDPs of the user.
- "A String",
- ],
- }
-
-
-
- uploadAccount(body)
-
Batch upload existing user accounts.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to upload user account in batch.
- "hashAlgorithm": "A String",
- "signerKey": "A String",
- "memoryCost": 42,
- "saltSeparator": "A String",
- "userAccount": [ # The account info to be stored.
- { # Template for an individual account info.
- "kind": "identitytoolkit#userinfo", # Identifies this object as a user info.
- "password": "A String", # password
- "salt": "A String", # salt
- "email": "A String", # email
- "localId": "A String", # user's id at the site
- },
- ],
- "rounds": 42,
- }
-
-
-Returns:
- An object of the form:
-
- { # Respone of uploading accounts in batch.
- "kind": "identitytoolkit#UploadAccountResponse", # The fixed string "identitytoolkit#UploadAccountResponse".
- "error": [ # The error encountered while processing the account info.
- {
- "index": 42, # The index of the malformed account, starting from 0.
- "message": "A String", # Detailed error message for the account info.
- },
- ],
- }
-
-
-
- verifyAssertion(body)
-
Verifies the assertion returned by the IdP.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to verify the IDP assertion.
- "requestUri": "A String", # The URI to which the IDP redirects the user back. It may contain federated login result params added by the IDP.
- "postBody": "A String", # The post body if the request is a HTTP POST.
- "pendingIdToken": "A String", # The GITKit token for the non-trusted IDP pending to be confirmed by the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Response of verifying the IDP assertion.
- "federatedId": "A String", # The unique ID identifies the IdP account.
- "localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
- "photoUrl": "A String", # The URI of the public accessible profiel picture.
- "inputEmail": "A String", # It's the identifier param in the createAuthUri request if the identifier is an email. It can be used to check whether the user input email is different from the asserted email.
- "verifiedProvider": [ # When action is 'map', contains the idps which can be used for confirmation.
- "A String",
- ],
- "originalEmail": "A String", # The original email stored in the mapping storage. It's returned when the federated ID is associated to a different email.
- "dateOfBirth": "A String", # The birth date of the IdP account.
- "nickName": "A String", # The nick name of the user.
- "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
- "idToken": "A String", # The ID token.
- "fullName": "A String", # The full name of the user.
- "kind": "identitytoolkit#VerifyAssertionResponse", # The fixed string "identitytoolkit#VerifyAssertionResponse".
- "displayName": "A String", # The display name of the user.
- "firstName": "A String", # The first name of the user.
- "language": "A String", # The language preference of the user.
- "emailVerified": True or False, # The value is true if the IDP is also the email provider. It means the user owns the email.
- "oauthScope": "A String", # The scope for the OpenID OAuth extension.
- "oauthRequestToken": "A String", # The user approved request token for the OpenID OAuth extension.
- "providerId": "A String", # The IdP ID. For white listed IdPs it's a short domain name e.g. google.com, aol.com, live.net and yahoo.com. If the "providerId" param is set to OpenID OP identifer other than the whilte listed IdPs the OP identifier is returned. If the "identifier" param is federated ID in the createAuthUri request. The domain part of the federated ID is returned.
- "context": "A String", # The opaque value used by the client to maintain context info between the authentication request and the IDP callback.
- "lastName": "A String", # The last name of the user.
- "action": "A String", # The action code.
- "timeZone": "A String", # The timezone of the user.
- "emailRecycled": True or False, # It's true if the email is recycled.
- }
-
-
-
- verifyPassword(body)
-
Verifies the user entered password.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Request to verify the password.
- "password": "A String", # The password inputed by the user.
- "email": "A String", # The email of the user.
- "pendingIdToken": "A String", # The GITKit token for the non-trusted IDP, which is to be confirmed by the user.
- }
-
-
-Returns:
- An object of the form:
-
- { # Request of verifying the password.
- "kind": "identitytoolkit#VerifyPasswordResponse", # The fixed string "identitytoolkit#VerifyPasswordResponse".
- "displayName": "A String", # The name of the user.
- "localId": "A String", # The RP local ID if it's already been mapped to the IdP account identified by the federated ID.
- "idToken": "A String", # The GITKit token for authenticated user.
- "registered": True or False, # Whether the email is registered.
- "email": "A String", # The email returned by the IdP. NOTE: The federated login user may not own the email.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/latitude_v1.currentLocation.html b/docs/dyn/latitude_v1.currentLocation.html
deleted file mode 100644
index 51edf98..0000000
--- a/docs/dyn/latitude_v1.currentLocation.html
+++ /dev/null
@@ -1,161 +0,0 @@
-
-
-
-
Deletes the authenticated user's current location.
-
-Args:
-
-
-
-
- get(granularity=None)
-
Returns the authenticated user's current location.
-
-Args:
- granularity: string, Granularity of the requested location.
- Allowed values
- best - Request best available granularity.
- city - Request city-level granularty.
-
-Returns:
- An object of the form:
-
- { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- }
-
-
-
- insert(body)
-
Updates or creates the user's current location.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- }
-
-
-Returns:
- An object of the form:
-
- { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/latitude_v1.html b/docs/dyn/latitude_v1.html
deleted file mode 100644
index 8de4b31..0000000
--- a/docs/dyn/latitude_v1.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Deletes a location from the user's location history.
-
-Args:
- locationId: string, Timestamp of the location to delete (ms since epoch). (required)
-
-
-
-
- get(locationId, granularity=None)
-
Reads a location from the user's location history.
-
-Args:
- locationId: string, Timestamp of the location to read (ms since epoch). (required)
- granularity: string, Granularity of the location to return.
- Allowed values
- best - Request best available granularity.
- city - Request city-level granularty.
-
-Returns:
- An object of the form:
-
- { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- }
-
-
-
- insert(body)
-
Inserts or updates a location in the user's location history.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
-}
-
-
-Returns:
- An object of the form:
-
- { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- }
Lists the user's location history.
-
-Args:
- min_time: string, Minimum timestamp of locations to return (ms since epoch).
- max_results: string, Maximum number of locations to return.
- granularity: string, Granularity of the requested locations.
- Allowed values
- best - Request best available granularity.
- city - Request city-level granularty.
- max_time: string, Maximum timestamp of locations to return (ms since epoch).
-
-Returns:
- An object of the form:
-
- {
- "items": [
- { # A Location resource identifies a user's position at a particular time. It may include metadata about the user's position, such as a venue if the location was recorded at the time of a check-in.
- "kind": "latitude#location", # Kind of this item.
- "altitude": "", # Altitude of the location, in meters. Optional.
- "longitude": "", # Longitude of the location, in decimal degrees.
- "activityId": "", # Unique ID of the Buzz message that corresponds to the check-in associated with this location. Available only for check-in locations. Optional.
- "latitude": "", # Latitude of the location, in decimal degrees.
- "altitudeAccuracy": "", # Accuracy of the altitude value, in meters. Optional.
- "timestampMs": "", # Timestamp of the Location Resource, in milliseconds since the epoch (UTC). This is also the Location Resource's unique id.
- "speed": "", # Ground speed of the user at the time this location was recorded, in meters per second. Non-negative. Optional.
- "heading": "", # Direction of travel of the user when this location was recorded. In degrees, clockwise relative to true north. Optional.
- "accuracy": "", # Accuracy of the latitude and longitude coordinates, in non-negative meters. Optional.
- },
- ],
- "kind": "latitude#locationFeed",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/licensing_v1.html b/docs/dyn/licensing_v1.html
deleted file mode 100644
index ab4efbb..0000000
--- a/docs/dyn/licensing_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Revoke License.
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku (required)
- userId: string, email id or unique Id of the user (required)
-
-
-
-
- get(productId, skuId, userId)
-
Get license assignment of a particular product and sku for a user
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku (required)
- userId: string, email id or unique Id of the user (required)
-
-Returns:
- An object of the form:
-
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- }
-
-
-
- insert(productId, skuId, body)
-
Assign License.
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Template for LicenseAssignment Insert request
- "userId": "A String", # Email id of the user
- }
-
-
-Returns:
- An object of the form:
-
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- }
List license assignments for given product of the customer.
-
-Args:
- productId: string, Name for product (required)
- customerId: string, CustomerId represents the customer for whom licenseassignments are queried (required)
- pageToken: string, Token to fetch the next page.Optional. By default server will return first page
- maxResults: integer, Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
-
-Returns:
- An object of the form:
-
- { # LicesnseAssignment List for a given product/sku for a customer.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The LicenseAssignments in this page of results.
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- },
- ],
- "kind": "licensing#licenseAssignmentList", # Identifies the resource as a collection of LicenseAssignments.
- "etag": "A String", # ETag of the resource.
- }
List license assignments for given product and sku of the customer.
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku (required)
- customerId: string, CustomerId represents the customer for whom licenseassignments are queried (required)
- pageToken: string, Token to fetch the next page.Optional. By default server will return first page
- maxResults: integer, Maximum number of campaigns to return at one time. Must be positive. Optional. Default value is 100.
-
-Returns:
- An object of the form:
-
- { # LicesnseAssignment List for a given product/sku for a customer.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The LicenseAssignments in this page of results.
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- },
- ],
- "kind": "licensing#licenseAssignmentList", # Identifies the resource as a collection of LicenseAssignments.
- "etag": "A String", # ETag of the resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(productId, skuId, userId, body)
-
Assign License. This method supports patch semantics.
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku for which license would be revoked (required)
- userId: string, email id or unique Id of the user (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
-}
-
-
-Returns:
- An object of the form:
-
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- }
-
-
-
- update(productId, skuId, userId, body)
-
Assign License.
-
-Args:
- productId: string, Name for product (required)
- skuId: string, Name for sku for which license would be revoked (required)
- userId: string, email id or unique Id of the user (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
-}
-
-
-Returns:
- An object of the form:
-
- { # Template for LiscenseAssignment Resource
- "skuId": "A String", # Name of the sku of the product.
- "kind": "licensing#licenseAssignment", # Identifies the resource as a LicenseAssignment.
- "userId": "A String", # Email id of the user.
- "etags": "A String", # ETag of the resource.
- "selfLink": "A String", # Link to this page.
- "productId": "A String", # Name of the product.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/mirror_v1.contacts.html b/docs/dyn/mirror_v1.contacts.html
deleted file mode 100644
index dc73645..0000000
--- a/docs/dyn/mirror_v1.contacts.html
+++ /dev/null
@@ -1,316 +0,0 @@
-
-
-
-
Deletes a contact.
-
-Args:
- id: string, The ID of the contact. (required)
-
-
-
-
- get(id)
-
Gets a single contact by ID.
-
-Args:
- id: string, The ID of the contact. (required)
-
-Returns:
- An object of the form:
-
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-
- insert(body)
-
Inserts a new contact.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-Returns:
- An object of the form:
-
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-
- list()
-
Retrieves a list of contacts for the authenticated user.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A list of Contacts representing contacts. This is the response from the server to GET requests on the contacts collection.
- "items": [ # Contact list.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#contacts", # The type of resource. This is always mirror#contacts.
- }
-
-
-
- patch(id, body)
-
Updates a contact in place. This method supports patch semantics.
-
-Args:
- id: string, The ID of the contact. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-Returns:
- An object of the form:
-
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-
- update(id, body)
-
Updates a contact in place.
-
-Args:
- id: string, The ID of the contact. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-Returns:
- An object of the form:
-
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/mirror_v1.html b/docs/dyn/mirror_v1.html
deleted file mode 100644
index 487a745..0000000
--- a/docs/dyn/mirror_v1.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Gets a single location by ID.
-
-Args:
- id: string, The ID of the location or latest for the last known location. (required)
-
-Returns:
- An object of the form:
-
- { # A geographic location that can be associated with a timeline item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- }
-
-
-
- list()
-
Retrieves a list of locations for the user.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A list of Locations. This is the response from the server to GET requests on the locations collection.
- "items": [ # The list of locations.
- { # A geographic location that can be associated with a timeline item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- ],
- "kind": "mirror#locationsList", # The type of resource. This is always mirror#locationsList.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/mirror_v1.subscriptions.html b/docs/dyn/mirror_v1.subscriptions.html
deleted file mode 100644
index 56ade50..0000000
--- a/docs/dyn/mirror_v1.subscriptions.html
+++ /dev/null
@@ -1,346 +0,0 @@
-
-
-
-
Deletes a subscription.
-
-Args:
- id: string, The ID of the subscription. (required)
-
-
-
-
- insert(body)
-
Creates a new subscription.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A subscription to events on a collection.
- "kind": "mirror#subscription", # The type of resource. This is always mirror#subscription.
- "notification": { # A notification delivered by the API. # Container object for notifications. This is not populated in the Subscription resource.
- "itemId": "A String", # The ID of the item that generated the notification.
- "collection": "A String", # The collection that generated the notification.
- "verifyToken": "A String", # The secret verify token provided by the service when it subscribed for notifications.
- "userToken": "A String", # The user token provided by the service when it subscribed for notifications.
- "userActions": [ # A list of actions taken by the user that triggered the notification.
- { # Represents an action taken by the user that triggered a notification.
- "type": "A String", # The type of action. The value of this can be:
- # - SHARE - the user shared an item.
- # - REPLY - the user replied to an item.
- # - REPLY_ALL - the user replied to all recipients of an item.
- # - CUSTOM - the user selected a custom menu item on the timeline item.
- # - DELETE - the user deleted the item.
- # - PIN - the user pinned the item.
- # - UNPIN - the user unpinned the item. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
- "payload": "A String", # An optional payload for the action.
- #
- # For actions of type CUSTOM, this is the ID of the custom menu item that was selected.
- },
- ],
- "operation": "A String", # The type of operation that generated the notification.
- },
- "updated": "A String", # The time at which this subscription was last modified, formatted according to RFC 3339.
- "collection": "A String", # The collection to subscribe to. Allowed values are:
- # - timeline - Changes in the timeline including insertion, deletion, and updates.
- # - locations - Location updates.
- "verifyToken": "A String", # A secret token sent to the subscriber in notifications so that it can verify that the notification was generated by Google.
- "userToken": "A String", # An opaque token sent to the subscriber in notifications so that it can determine the ID of the user.
- "operation": [ # A list of operations that should be subscribed to. An empty list indicates that all operations on the collection should be subscribed to. Allowed values are:
- # - UPDATE - The item has been updated.
- # - INSERT - A new item has been inserted.
- # - DELETE - The item has been deleted.
- # - MENU_ACTION - A custom menu item has been triggered by the user.
- "A String",
- ],
- "id": "A String", # The ID of the subscription.
- "callbackUrl": "A String", # The URL where notifications should be delivered (must start with https://).
- }
-
-
-Returns:
- An object of the form:
-
- { # A subscription to events on a collection.
- "kind": "mirror#subscription", # The type of resource. This is always mirror#subscription.
- "notification": { # A notification delivered by the API. # Container object for notifications. This is not populated in the Subscription resource.
- "itemId": "A String", # The ID of the item that generated the notification.
- "collection": "A String", # The collection that generated the notification.
- "verifyToken": "A String", # The secret verify token provided by the service when it subscribed for notifications.
- "userToken": "A String", # The user token provided by the service when it subscribed for notifications.
- "userActions": [ # A list of actions taken by the user that triggered the notification.
- { # Represents an action taken by the user that triggered a notification.
- "type": "A String", # The type of action. The value of this can be:
- # - SHARE - the user shared an item.
- # - REPLY - the user replied to an item.
- # - REPLY_ALL - the user replied to all recipients of an item.
- # - CUSTOM - the user selected a custom menu item on the timeline item.
- # - DELETE - the user deleted the item.
- # - PIN - the user pinned the item.
- # - UNPIN - the user unpinned the item. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
- "payload": "A String", # An optional payload for the action.
- #
- # For actions of type CUSTOM, this is the ID of the custom menu item that was selected.
- },
- ],
- "operation": "A String", # The type of operation that generated the notification.
- },
- "updated": "A String", # The time at which this subscription was last modified, formatted according to RFC 3339.
- "collection": "A String", # The collection to subscribe to. Allowed values are:
- # - timeline - Changes in the timeline including insertion, deletion, and updates.
- # - locations - Location updates.
- "verifyToken": "A String", # A secret token sent to the subscriber in notifications so that it can verify that the notification was generated by Google.
- "userToken": "A String", # An opaque token sent to the subscriber in notifications so that it can determine the ID of the user.
- "operation": [ # A list of operations that should be subscribed to. An empty list indicates that all operations on the collection should be subscribed to. Allowed values are:
- # - UPDATE - The item has been updated.
- # - INSERT - A new item has been inserted.
- # - DELETE - The item has been deleted.
- # - MENU_ACTION - A custom menu item has been triggered by the user.
- "A String",
- ],
- "id": "A String", # The ID of the subscription.
- "callbackUrl": "A String", # The URL where notifications should be delivered (must start with https://).
- }
-
-
-
- list()
-
Retrieves a list of subscriptions for the authenticated user and service.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # A list of Subscriptions. This is the response from the server to GET requests on the subscription collection.
- "items": [ # The list of subscriptions.
- { # A subscription to events on a collection.
- "kind": "mirror#subscription", # The type of resource. This is always mirror#subscription.
- "notification": { # A notification delivered by the API. # Container object for notifications. This is not populated in the Subscription resource.
- "itemId": "A String", # The ID of the item that generated the notification.
- "collection": "A String", # The collection that generated the notification.
- "verifyToken": "A String", # The secret verify token provided by the service when it subscribed for notifications.
- "userToken": "A String", # The user token provided by the service when it subscribed for notifications.
- "userActions": [ # A list of actions taken by the user that triggered the notification.
- { # Represents an action taken by the user that triggered a notification.
- "type": "A String", # The type of action. The value of this can be:
- # - SHARE - the user shared an item.
- # - REPLY - the user replied to an item.
- # - REPLY_ALL - the user replied to all recipients of an item.
- # - CUSTOM - the user selected a custom menu item on the timeline item.
- # - DELETE - the user deleted the item.
- # - PIN - the user pinned the item.
- # - UNPIN - the user unpinned the item. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
- "payload": "A String", # An optional payload for the action.
- #
- # For actions of type CUSTOM, this is the ID of the custom menu item that was selected.
- },
- ],
- "operation": "A String", # The type of operation that generated the notification.
- },
- "updated": "A String", # The time at which this subscription was last modified, formatted according to RFC 3339.
- "collection": "A String", # The collection to subscribe to. Allowed values are:
- # - timeline - Changes in the timeline including insertion, deletion, and updates.
- # - locations - Location updates.
- "verifyToken": "A String", # A secret token sent to the subscriber in notifications so that it can verify that the notification was generated by Google.
- "userToken": "A String", # An opaque token sent to the subscriber in notifications so that it can determine the ID of the user.
- "operation": [ # A list of operations that should be subscribed to. An empty list indicates that all operations on the collection should be subscribed to. Allowed values are:
- # - UPDATE - The item has been updated.
- # - INSERT - A new item has been inserted.
- # - DELETE - The item has been deleted.
- # - MENU_ACTION - A custom menu item has been triggered by the user.
- "A String",
- ],
- "id": "A String", # The ID of the subscription.
- "callbackUrl": "A String", # The URL where notifications should be delivered (must start with https://).
- },
- ],
- "kind": "mirror#subscriptionsList", # The type of resource. This is always mirror#subscriptionsList.
- }
-
-
-
- update(id, body)
-
Updates an existing subscription in place.
-
-Args:
- id: string, The ID of the subscription. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A subscription to events on a collection.
- "kind": "mirror#subscription", # The type of resource. This is always mirror#subscription.
- "notification": { # A notification delivered by the API. # Container object for notifications. This is not populated in the Subscription resource.
- "itemId": "A String", # The ID of the item that generated the notification.
- "collection": "A String", # The collection that generated the notification.
- "verifyToken": "A String", # The secret verify token provided by the service when it subscribed for notifications.
- "userToken": "A String", # The user token provided by the service when it subscribed for notifications.
- "userActions": [ # A list of actions taken by the user that triggered the notification.
- { # Represents an action taken by the user that triggered a notification.
- "type": "A String", # The type of action. The value of this can be:
- # - SHARE - the user shared an item.
- # - REPLY - the user replied to an item.
- # - REPLY_ALL - the user replied to all recipients of an item.
- # - CUSTOM - the user selected a custom menu item on the timeline item.
- # - DELETE - the user deleted the item.
- # - PIN - the user pinned the item.
- # - UNPIN - the user unpinned the item. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
- "payload": "A String", # An optional payload for the action.
- #
- # For actions of type CUSTOM, this is the ID of the custom menu item that was selected.
- },
- ],
- "operation": "A String", # The type of operation that generated the notification.
- },
- "updated": "A String", # The time at which this subscription was last modified, formatted according to RFC 3339.
- "collection": "A String", # The collection to subscribe to. Allowed values are:
- # - timeline - Changes in the timeline including insertion, deletion, and updates.
- # - locations - Location updates.
- "verifyToken": "A String", # A secret token sent to the subscriber in notifications so that it can verify that the notification was generated by Google.
- "userToken": "A String", # An opaque token sent to the subscriber in notifications so that it can determine the ID of the user.
- "operation": [ # A list of operations that should be subscribed to. An empty list indicates that all operations on the collection should be subscribed to. Allowed values are:
- # - UPDATE - The item has been updated.
- # - INSERT - A new item has been inserted.
- # - DELETE - The item has been deleted.
- # - MENU_ACTION - A custom menu item has been triggered by the user.
- "A String",
- ],
- "id": "A String", # The ID of the subscription.
- "callbackUrl": "A String", # The URL where notifications should be delivered (must start with https://).
- }
-
-
-Returns:
- An object of the form:
-
- { # A subscription to events on a collection.
- "kind": "mirror#subscription", # The type of resource. This is always mirror#subscription.
- "notification": { # A notification delivered by the API. # Container object for notifications. This is not populated in the Subscription resource.
- "itemId": "A String", # The ID of the item that generated the notification.
- "collection": "A String", # The collection that generated the notification.
- "verifyToken": "A String", # The secret verify token provided by the service when it subscribed for notifications.
- "userToken": "A String", # The user token provided by the service when it subscribed for notifications.
- "userActions": [ # A list of actions taken by the user that triggered the notification.
- { # Represents an action taken by the user that triggered a notification.
- "type": "A String", # The type of action. The value of this can be:
- # - SHARE - the user shared an item.
- # - REPLY - the user replied to an item.
- # - REPLY_ALL - the user replied to all recipients of an item.
- # - CUSTOM - the user selected a custom menu item on the timeline item.
- # - DELETE - the user deleted the item.
- # - PIN - the user pinned the item.
- # - UNPIN - the user unpinned the item. In the future, additional types may be added. UserActions with unrecognized types should be ignored.
- "payload": "A String", # An optional payload for the action.
- #
- # For actions of type CUSTOM, this is the ID of the custom menu item that was selected.
- },
- ],
- "operation": "A String", # The type of operation that generated the notification.
- },
- "updated": "A String", # The time at which this subscription was last modified, formatted according to RFC 3339.
- "collection": "A String", # The collection to subscribe to. Allowed values are:
- # - timeline - Changes in the timeline including insertion, deletion, and updates.
- # - locations - Location updates.
- "verifyToken": "A String", # A secret token sent to the subscriber in notifications so that it can verify that the notification was generated by Google.
- "userToken": "A String", # An opaque token sent to the subscriber in notifications so that it can determine the ID of the user.
- "operation": [ # A list of operations that should be subscribed to. An empty list indicates that all operations on the collection should be subscribed to. Allowed values are:
- # - UPDATE - The item has been updated.
- # - INSERT - A new item has been inserted.
- # - DELETE - The item has been deleted.
- # - MENU_ACTION - A custom menu item has been triggered by the user.
- "A String",
- ],
- "id": "A String", # The ID of the subscription.
- "callbackUrl": "A String", # The URL where notifications should be delivered (must start with https://).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/mirror_v1.timeline.attachments.html b/docs/dyn/mirror_v1.timeline.attachments.html
deleted file mode 100644
index 4684465..0000000
--- a/docs/dyn/mirror_v1.timeline.attachments.html
+++ /dev/null
@@ -1,178 +0,0 @@
-
-
-
-
Returns a list of attachments for a timeline item.
-
Method Details
-
- delete(itemId, attachmentId)
-
Deletes an attachment from a timeline item.
-
-Args:
- itemId: string, The ID of the timeline item the attachment belongs to. (required)
- attachmentId: string, The ID of the attachment. (required)
-
-
-
-
- get(itemId, attachmentId)
-
Retrieves an attachment on a timeline item by item ID and attachment ID.
-
-Args:
- itemId: string, The ID of the timeline item the attachment belongs to. (required)
- attachmentId: string, The ID of the attachment. (required)
-
-Returns:
- An object of the form:
-
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- }
-
-
-
- get_media(itemId, attachmentId)
-
Retrieves an attachment on a timeline item by item ID and attachment ID.
-
-Args:
- itemId: string, The ID of the timeline item the attachment belongs to. (required)
- attachmentId: string, The ID of the attachment. (required)
-
-Returns:
- The media object as a string.
-
-
-
-
-
- insert(itemId, media_body=None)
-
Adds a new attachment to a timeline item.
-
-Args:
- itemId: string, The ID of the timeline item the attachment belongs to. (required)
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- }
-
-
-
- list(itemId)
-
Returns a list of attachments for a timeline item.
-
-Args:
- itemId: string, The ID of the timeline item whose attachments should be listed. (required)
-
-Returns:
- An object of the form:
-
- { # A list of Attachments. This is the response from the server to GET requests on the attachments collection.
- "items": [ # The list of attachments.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "kind": "mirror#attachmentsList", # The type of resource. This is always mirror#attachmentsList.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/mirror_v1.timeline.html b/docs/dyn/mirror_v1.timeline.html
deleted file mode 100644
index 9d7d88b..0000000
--- a/docs/dyn/mirror_v1.timeline.html
+++ /dev/null
@@ -1,1351 +0,0 @@
-
-
-
-
Deletes a timeline item.
-
-Args:
- id: string, The ID of the timeline item. (required)
-
-
-
-
- get(id)
-
Gets a single timeline item by ID.
-
-Args:
- id: string, The ID of the timeline item. (required)
-
-Returns:
- An object of the form:
-
- { # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
-
-
- insert(body=None, media_body=None)
-
Inserts a new item into the timeline.
-
-Args:
- body: object, The request body.
- The object takes the form of:
-
-{ # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
Retrieves a list of timeline items for the authenticated user.
-
-Args:
- orderBy: string, Controls the order in which timeline items are returned.
- Allowed values
- displayTime - Results will be ordered by displayTime (default). This is the same ordering as is used in the timeline on the device.
- writeTime - Results will be ordered by the time at which they were last written to the data store.
- includeDeleted: boolean, If true, tombstone records for deleted items will be returned.
- pageToken: string, Token for the page of results to return.
- maxResults: integer, The maximum number of items to include in the response, used for paging.
- pinnedOnly: boolean, If true, only pinned items will be returned.
- sourceItemId: string, If provided, only items with the given sourceItemId will be returned.
- bundleId: string, If provided, only items with the given bundleId will be returned.
-
-Returns:
- An object of the form:
-
- { # A list of timeline items. This is the response from the server to GET requests on the timeline collection.
- "nextPageToken": "A String", # The next page token. Provide this as the pageToken parameter in the request to retrieve the next page of results.
- "items": [ # Items in the timeline.
- { # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- },
- ],
- "kind": "mirror#timeline", # The type of resource. This is always mirror#timeline.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(id, body)
-
Updates a timeline item in place. This method supports patch semantics.
-
-Args:
- id: string, The ID of the timeline item. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
-
-Returns:
- An object of the form:
-
- { # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
-
-
- update(id, body=None, media_body=None)
-
Updates a timeline item in place.
-
-Args:
- id: string, The ID of the timeline item. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # Each item in the user's timeline is represented as a TimelineItem JSON structure, described below.
- "attachments": [ # A list of media attachments associated with this item. As a convenience, you can refer to attachments in your HTML payloads with the attachment or cid scheme. For example:
- # - attachment: where attachment_index is the 0-based index of this array.
- # - cid: where attachment_id is the ID of the attachment.
- { # Represents media content, such as a photo, that can be attached to a timeline item.
- "contentUrl": "A String", # The URL for the content.
- "contentType": "A String", # The MIME type of the attachment.
- "id": "A String", # The ID of the attachment.
- "isProcessingContent": True or False, # Indicates that the contentUrl is not available because the attachment content is still being processed. If the caller wishes to retrieve the content, it should try again later.
- },
- ],
- "displayTime": "A String", # The time that should be displayed when this item is viewed in the timeline, formatted according to RFC 3339. This user's timeline is sorted chronologically on display time, so this will also determine where the item is displayed in the timeline. If not set by the service, the display time defaults to the updated time.
- "creator": { # A person or group that can be used as a creator or a contact. # The user or group that created this item.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- "text": "A String", # Text content of this item.
- "menuItems": [ # A list of menu items that will be presented to the user when this item is selected in the timeline.
- { # A custom menu item that can be presented to the user by a timeline item.
- "action": "A String", # Controls the behavior when the user picks the menu option. Allowed values are:
- # - CUSTOM - Custom action set by the service. When the user selects this menuItem, the API triggers a notification to your callbackUrl with the userActions.type set to CUSTOM and the userActions.payload set to the ID of this menu item. This is the default value.
- # - Built-in actions:
- # - REPLY - Initiate a reply to the timeline item using the voice recording UI. The creator attribute must be set in the timeline item for this menu to be available.
- # - REPLY_ALL - Same behavior as REPLY. The original timeline item's recipients will be added to the reply item.
- # - DELETE - Delete the timeline item.
- # - SHARE - Share the timeline item with the available contacts.
- # - READ_ALOUD - Read the timeline item's speakableText aloud; if this field is not set, read the text field; if none of those fields are set, this menu item is ignored.
- # - VOICE_CALL - Initiate a phone call using the timeline item's creator.phone_number attribute as recipient.
- # - NAVIGATE - Navigate to the timeline item's location.
- # - TOGGLE_PINNED - Toggle the isPinned state of the timeline item.
- "removeWhenSelected": True or False, # If set to true on a CUSTOM menu item, that item will be removed from the menu after it is selected.
- "values": [ # For CUSTOM items, a list of values controlling the appearance of the menu item in each of its states. A value for the DEFAULT state must be provided. If the PENDING or CONFIRMED states are missing, they will not be shown.
- { # A single value that is part of a MenuItem.
- "iconUrl": "A String", # URL of an icon to display with the menu item.
- "state": "A String", # The state that this value applies to. Allowed values are:
- # - DEFAULT - Default value shown when displayed in the menuItems list.
- # - PENDING - Value shown when the menuItem has been selected by the user but can still be cancelled.
- # - CONFIRMED - Value shown when the menuItem has been selected by the user and can no longer be cancelled.
- "displayName": "A String", # The name to display for the menu item.
- },
- ],
- "id": "A String", # The ID for this menu item. This is generated by the application and is treated as an opaque token.
- },
- ],
- "isBundleCover": True or False, # Whether this item is a bundle cover.
- #
- # If an item is marked as a bundle cover, it will be the entry point to the bundle of items that have the same bundleId as that item. It will be shown only on the main timeline — not within the opened bundle.
- #
- # On the main timeline, items that are shown are:
- # - Items that have isBundleCover set to true
- # - Items that do not have a bundleId In a bundle sub-timeline, items that are shown are:
- # - Items that have the bundleId in question AND isBundleCover set to false
- "etag": "A String", # ETag for this item.
- "id": "A String", # The ID of the timeline item. This is unique within a user's timeline.
- "isDeleted": True or False, # When true, indicates this item is deleted, and only the ID property is set.
- "bundleId": "A String", # The bundle ID for this item. Services can specify a bundleId to group many items together. They appear under a single top-level item on the device.
- "isPinned": True or False, # When true, indicates this item is pinned, which means it's grouped alongside "active" items like navigation and hangouts, on the opposite side of the home screen from historical (non-pinned) timeline items. You can allow the user to toggle the value of this property with the TOGGLE_PINNED built-in menu item.
- "title": "A String", # The title of this item.
- "notification": { # Controls how notifications for a timeline item are presented to the user. # Controls how notifications for this item are presented on the device. If this is missing, no notification will be generated.
- "level": "A String", # Describes how important the notification is. Allowed values are:
- # - DEFAULT - Notifications of default importance. A chime will be played to alert users.
- "deliveryTime": "A String", # The time at which the notification should be delivered.
- },
- "speakableText": "A String", # The speakable version of the content of this item. Along with the READ_ALOUD menu item, use this field to provide text that would be clearer when read aloud, or to provide extended information to what is displayed visually on Glass.
- #
- # Glassware should also specify the speakableType field, which will be spoken before this text in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- "html": "A String", # HTML content for this item. If both text and html are provided for an item, the html will be rendered in the timeline.
- # Allowed HTML elements - You can use these elements in your timeline cards.
- #
- # - Headers: h1, h2, h3, h4, h5, h6
- # - Images: img
- # - Lists: li, ol, ul
- # - HTML5 semantics: article, aside, details, figure, figcaption, footer, header, nav, section, summary, time
- # - Structural: blockquote, br, div, hr, p, span
- # - Style: b, big, center, em, i, u, s, small, strike, strong, style, sub, sup
- # - Tables: table, tbody, td, tfoot, th, thead, tr
- # Blocked HTML elements: These elements and their contents are removed from HTML payloads.
- #
- # - Document headers: head, title
- # - Embeds: audio, embed, object, source, video
- # - Frames: frame, frameset
- # - Scripting: applet, script
- # Other elements: Any elements that aren't listed are removed, but their contents are preserved.
- "location": { # A geographic location that can be associated with a timeline item. # The geographic location associated with this item.
- "kind": "mirror#location", # The type of resource. This is always mirror#location.
- "displayName": "A String", # The name to be displayed. This may be a business name or a user-defined place, such as "Home".
- "timestamp": "A String", # The time at which this location was captured, formatted according to RFC 3339.
- "longitude": 3.14, # The longitude, in degrees.
- "address": "A String", # The full address of the location.
- "latitude": 3.14, # The latitude, in degrees.
- "id": "A String", # The ID of the location.
- "accuracy": 3.14, # The accuracy of the location fix in meters.
- },
- "sourceItemId": "A String", # Opaque string you can use to map a timeline item to data in your own service.
- "inReplyTo": "A String", # If this item was generated as a reply to another item, this field will be set to the ID of the item being replied to. This can be used to attach a reply to the appropriate conversation or post.
- "updated": "A String", # The time at which this item was last modified, formatted according to RFC 3339.
- "canonicalUrl": "A String", # A canonical URL pointing to the canonical/high quality version of the data represented by the timeline item.
- "recipients": [ # A list of users or groups that this item has been shared with.
- { # A person or group that can be used as a creator or a contact.
- "kind": "mirror#contact", # The type of resource. This is always mirror#contact.
- "displayName": "A String", # The name to display for this contact.
- "acceptTypes": [ # A list of MIME types that a contact supports. The contact will be shown to the user if any of its acceptTypes matches any of the types of the attachments on the item. If no acceptTypes are given, the contact will be shown for all items.
- "A String",
- ],
- "type": "A String", # The type for this contact. This is used for sorting in UIs. Allowed values are:
- # - INDIVIDUAL - Represents a single person. This is the default.
- # - GROUP - Represents more than a single person.
- "priority": 42, # Priority for the contact to determine ordering in a list of contacts. Contacts with higher priorities will be shown before ones with lower priorities.
- "source": "A String", # The ID of the application that created this contact. This is populated by the API
- "phoneNumber": "A String", # Primary phone number for the contact. This can be a fully-qualified number, with country calling code and area code, or a local number.
- "imageUrls": [ # Set of image URLs to display for a contact. Most contacts will have a single image, but a "group" contact may include up to 8 image URLs and they will be resized and cropped into a mosaic on the client.
- "A String",
- ],
- "id": "A String", # An ID for this contact. This is generated by the application and is treated as an opaque token.
- },
- ],
- "kind": "mirror#timelineItem", # The type of resource. This is always mirror#timelineItem.
- "created": "A String", # The time at which this item was created, formatted according to RFC 3339.
- "htmlPages": [ # Additional pages of HTML content associated with this item. If this field is specified, the item will be displayed as a bundle, with the html field as the cover. It is an error to specify this field without specifying the html field.
- "A String",
- ],
- "pinScore": 42, # For pinned items, this determines the order in which the item is displayed in the timeline, with a higher score appearing closer to the clock. Note: setting this field is currently not supported.
- "speakableType": "A String", # A speakable description of the type of this item. This will be announced to the user prior to reading the content of the item in cases where the additional context is useful, for example when the user requests that the item be read aloud following a notification.
- #
- # This should be a short, simple noun phrase such as "Email", "Text message", or "Daily Planet News Update".
- #
- # Glassware are encouraged to populate this field for every timeline item, even if the item does not contain speakableText or text so that the user can learn the type of the item without looking at the screen.
- "selfLink": "A String", # A URL that can be used to retrieve this item.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.featured.html b/docs/dyn/moderator_v1.featured.html
deleted file mode 100644
index 4f5086f..0000000
--- a/docs/dyn/moderator_v1.featured.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Lists or searches the responses for the specified submission within the specified series and returns the search results.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- sort: string, Sort order.
- author: string, Restricts the results to submissions by a specific author.
- q: string, Search query.
- max_results: integer, Maximum number of results to return.
- hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.
- start_index: integer, Index of the first result to be retrieved.
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "kind": "moderator#submission",
- "attribution": {
- "displayName": "A String",
- "location": "A String",
- "avatarUrl": "A String",
- },
- "created": "A String",
- "text": "A String",
- "topics": [
- {
- "id": {
- "seriesId": "A String",
- "topicId": "A String",
- },
- },
- ],
- "author": "A String",
- "translations": [
- {
- "lang": "A String",
- "text": "A String",
- },
- ],
- "parentSubmissionId": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "vote": {
- "vote": "A String",
- "flag": "A String",
- },
- "attachmentUrl": "A String",
- "geo": {
- "latitude": 3.14,
- "location": "A String",
- "longitude": 3.14,
- },
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "counters": {
- "noneVotes": 42,
- "minusVotes": 42,
- "plusVotes": 42,
- },
- },
- ],
- "kind": "moderator#submissionList",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.series.html b/docs/dyn/moderator_v1.series.html
deleted file mode 100644
index e6d53cb..0000000
--- a/docs/dyn/moderator_v1.series.html
+++ /dev/null
@@ -1,437 +0,0 @@
-
-
-
-
Searches the responses for the specified series and returns the search results.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- sort: string, Sort order.
- author: string, Restricts the results to submissions by a specific author.
- q: string, Search query.
- max_results: integer, Maximum number of results to return.
- hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.
- start_index: integer, Index of the first result to be retrieved.
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "kind": "moderator#series",
- "description": "A String",
- "rules": {
- "votes": {
- "close": "A String",
- "open": "A String",
- },
- "submissions": {
- "close": "A String",
- "open": "A String",
- },
- },
- "unauthVotingAllowed": True or False,
- "videoSubmissionAllowed": True or False,
- "name": "A String",
- "numTopics": 42,
- "anonymousSubmissionAllowed": True or False,
- "unauthSubmissionAllowed": True or False,
- "id": {
- "seriesId": "A String",
- },
- "counters": {
- "users": 42,
- "noneVotes": 42,
- "videoSubmissions": 42,
- "minusVotes": 42,
- "anonymousSubmissions": 42,
- "submissions": 42,
- "plusVotes": 42,
- },
- },
- ],
- "kind": "moderator#seriesList",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.series.submissions.html b/docs/dyn/moderator_v1.series.submissions.html
deleted file mode 100644
index 510d475..0000000
--- a/docs/dyn/moderator_v1.series.submissions.html
+++ /dev/null
@@ -1,154 +0,0 @@
-
-
-
-
Searches the submissions for the specified series and returns the search results.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- lang: string, The language code for the language the client prefers resuls in.
- includeVotes: boolean, Specifies whether to include the current user's vote
- author: string, Restricts the results to submissions by a specific author.
- sort: string, Sort order.
- max_results: integer, Maximum number of results to return.
- q: string, Search query.
- start_index: integer, Index of the first result to be retrieved.
- hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "kind": "moderator#submission",
- "attribution": {
- "displayName": "A String",
- "location": "A String",
- "avatarUrl": "A String",
- },
- "created": "A String",
- "text": "A String",
- "topics": [
- {
- "id": {
- "seriesId": "A String",
- "topicId": "A String",
- },
- },
- ],
- "author": "A String",
- "translations": [
- {
- "lang": "A String",
- "text": "A String",
- },
- ],
- "parentSubmissionId": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "vote": {
- "vote": "A String",
- "flag": "A String",
- },
- "attachmentUrl": "A String",
- "geo": {
- "latitude": 3.14,
- "location": "A String",
- "longitude": 3.14,
- },
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "counters": {
- "noneVotes": 42,
- "minusVotes": 42,
- "plusVotes": 42,
- },
- },
- ],
- "kind": "moderator#submissionList",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.submissions.html b/docs/dyn/moderator_v1.submissions.html
deleted file mode 100644
index db35fb6..0000000
--- a/docs/dyn/moderator_v1.submissions.html
+++ /dev/null
@@ -1,262 +0,0 @@
-
-
-
-
Returns the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- lang: string, The language code for the language the client prefers resuls in.
- includeVotes: boolean, Specifies whether to include the current user's vote
-
-Returns:
- An object of the form:
-
- {
- "kind": "moderator#submission",
- "attribution": {
- "displayName": "A String",
- "location": "A String",
- "avatarUrl": "A String",
- },
- "created": "A String",
- "text": "A String",
- "topics": [
- {
- "id": {
- "seriesId": "A String",
- "topicId": "A String",
- },
- },
- ],
- "author": "A String",
- "translations": [
- {
- "lang": "A String",
- "text": "A String",
- },
- ],
- "parentSubmissionId": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "vote": {
- "vote": "A String",
- "flag": "A String",
- },
- "attachmentUrl": "A String",
- "geo": {
- "latitude": 3.14,
- "location": "A String",
- "longitude": 3.14,
- },
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "counters": {
- "noneVotes": 42,
- "minusVotes": 42,
- "plusVotes": 42,
- },
- }
Lists all tags for the specified submission within the specified series.
-
Method Details
-
- delete(seriesId, submissionId, tagId)
-
Deletes the specified tag from the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- tagId: string, A parameter (required)
-
-
-
-
- insert(seriesId, submissionId, body)
-
Inserts a new tag for the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "text": "A String",
- "kind": "moderator#tag",
- "id": {
- "seriesId": "A String",
- "tagId": "A String",
- "submissionId": "A String",
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "text": "A String",
- "kind": "moderator#tag",
- "id": {
- "seriesId": "A String",
- "tagId": "A String",
- "submissionId": "A String",
- },
- }
-
-
-
- list(seriesId, submissionId)
-
Lists all tags for the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "text": "A String",
- "kind": "moderator#tag",
- "id": {
- "seriesId": "A String",
- "tagId": "A String",
- "submissionId": "A String",
- },
- },
- ],
- "kind": "moderator#tagList",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.topics.html b/docs/dyn/moderator_v1.topics.html
deleted file mode 100644
index c86990d..0000000
--- a/docs/dyn/moderator_v1.topics.html
+++ /dev/null
@@ -1,618 +0,0 @@
-
-
-
-
Searches the submissions for the specified topic within the specified series and returns the search results.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- topicId: integer, The decimal ID of the Topic within the Series. (required)
- includeVotes: boolean, Specifies whether to include the current user's vote
- author: string, Restricts the results to submissions by a specific author.
- sort: string, Sort order.
- max_results: integer, Maximum number of results to return.
- q: string, Search query.
- start_index: integer, Index of the first result to be retrieved.
- hasAttachedVideo: boolean, Specifies whether to restrict to submissions that have videos attached.
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "kind": "moderator#submission",
- "attribution": {
- "displayName": "A String",
- "location": "A String",
- "avatarUrl": "A String",
- },
- "created": "A String",
- "text": "A String",
- "topics": [
- {
- "id": {
- "seriesId": "A String",
- "topicId": "A String",
- },
- },
- ],
- "author": "A String",
- "translations": [
- {
- "lang": "A String",
- "text": "A String",
- },
- ],
- "parentSubmissionId": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "vote": {
- "vote": "A String",
- "flag": "A String",
- },
- "attachmentUrl": "A String",
- "geo": {
- "latitude": 3.14,
- "location": "A String",
- "longitude": 3.14,
- },
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "counters": {
- "noneVotes": 42,
- "minusVotes": 42,
- "plusVotes": 42,
- },
- },
- ],
- "kind": "moderator#submissionList",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/moderator_v1.votes.html b/docs/dyn/moderator_v1.votes.html
deleted file mode 100644
index c2e2e09..0000000
--- a/docs/dyn/moderator_v1.votes.html
+++ /dev/null
@@ -1,255 +0,0 @@
-
-
-
-
Returns the votes by the authenticated user for the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- unauthToken: string, User identifier for unauthenticated usage mode
- userId: string, A parameter
-
-Returns:
- An object of the form:
-
- {
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
Inserts a new vote by the authenticated user for the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
-
- unauthToken: string, User identifier for unauthenticated usage mode
-
-Returns:
- An object of the form:
-
- {
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
Lists the votes by the authenticated user for the given series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- max_results: integer, Maximum number of results to return.
- start_index: integer, Index of the first result to be retrieved.
-
-Returns:
- An object of the form:
-
- {
- "items": [
- {
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- },
- ],
- "kind": "moderator#voteList",
- }
Updates the votes by the authenticated user for the specified submission within the specified series. This method supports patch semantics.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
-
- unauthToken: string, User identifier for unauthenticated usage mode
- userId: string, A parameter
-
-Returns:
- An object of the form:
-
- {
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
Updates the votes by the authenticated user for the specified submission within the specified series.
-
-Args:
- seriesId: integer, The decimal ID of the Series. (required)
- submissionId: integer, The decimal ID of the Submission within the Series. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
-
- unauthToken: string, User identifier for unauthenticated usage mode
- userId: string, A parameter
-
-Returns:
- An object of the form:
-
- {
- "vote": "A String",
- "flag": "A String",
- "id": {
- "seriesId": "A String",
- "submissionId": "A String",
- },
- "kind": "moderator#vote",
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/oauth2_v2.html b/docs/dyn/oauth2_v2.html
deleted file mode 100644
index 8c22fe5..0000000
--- a/docs/dyn/oauth2_v2.html
+++ /dev/null
@@ -1,109 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
- access_token: string, A parameter
- id_token: string, A parameter
-
-Returns:
- An object of the form:
-
- {
- "issued_to": "A String", # To whom was the token issued to. In general the same as audience.
- "user_id": "A String", # The Gaia obfuscated user id.
- "expires_in": 42, # The expiry time of the token, as number of seconds left until expiry.
- "access_type": "A String", # The access type granted with this token. It can be offline or online.
- "audience": "A String", # Who is the intended audience for this token. In general the same as issued_to.
- "scope": "A String", # The space separated list of scopes granted to this token.
- "email": "A String", # The email address of the user. Present only if the email scope is present in the request.
- "verified_email": True or False, # Boolean flag which is true if the email address is verified. Present only if the email scope is present in the request.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/oauth2_v2.userinfo.html b/docs/dyn/oauth2_v2.userinfo.html
deleted file mode 100644
index dab5c0d..0000000
--- a/docs/dyn/oauth2_v2.userinfo.html
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "family_name": "A String", # The user's last name.
- "name": "A String", # The user's full name.
- "picture": "A String", # URL of the user's picture image.
- "locale": "A String", # The user's default locale.
- "gender": "A String", # The user's gender.
- "id": "A String", # The focus obfuscated gaia id of the user.
- "birthday": "A String", # The user's birthday. The year is not present.
- "link": "A String", # URL of the profile page.
- "given_name": "A String", # The user's first name.
- "timezone": "A String", # The user's default timezone.
- "email": "A String", # The user's email address.
- "hd": "A String", # The hosted domain e.g. example.com if the user is Google apps user.
- "verified_email": True or False, # Boolean flag which is true if the email address is verified.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/oauth2_v2.userinfo.v2.html b/docs/dyn/oauth2_v2.userinfo.v2.html
deleted file mode 100644
index 230b0b3..0000000
--- a/docs/dyn/oauth2_v2.userinfo.v2.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "family_name": "A String", # The user's last name.
- "name": "A String", # The user's full name.
- "picture": "A String", # URL of the user's picture image.
- "locale": "A String", # The user's default locale.
- "gender": "A String", # The user's gender.
- "id": "A String", # The focus obfuscated gaia id of the user.
- "birthday": "A String", # The user's birthday. The year is not present.
- "link": "A String", # URL of the profile page.
- "given_name": "A String", # The user's first name.
- "timezone": "A String", # The user's default timezone.
- "email": "A String", # The user's email address.
- "hd": "A String", # The hosted domain e.g. example.com if the user is Google apps user.
- "verified_email": True or False, # Boolean flag which is true if the email address is verified.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.acl.html b/docs/dyn/orkut_v2.acl.html
deleted file mode 100644
index 26005b7..0000000
--- a/docs/dyn/orkut_v2.acl.html
+++ /dev/null
@@ -1,91 +0,0 @@
-
-
-
-
Excludes an element from the ACL of the activity.
-
-Args:
- activityId: string, ID of the activity. (required)
- userId: string, ID of the user to be removed from the activity. (required)
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.activities.html b/docs/dyn/orkut_v2.activities.html
deleted file mode 100644
index b0ae2d0..0000000
--- a/docs/dyn/orkut_v2.activities.html
+++ /dev/null
@@ -1,291 +0,0 @@
-
-
-
-
Retrieves a list of activities.
-
-Args:
- userId: string, The ID of the user whose activities will be listed. Can be me to refer to the viewer (i.e. the authenticated user). (required)
- collection: string, The collection of activities to list. (required)
- Allowed values
- all - All activities created by the specified user that the authenticated user is authorized to view.
- scraps - The specified user's scrapbook.
- stream - The specified user's stream feed, intended for consumption. This includes activities posted by people that the user is following, and activities in which the user has been mentioned.
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of activities to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in activities.list request to get the next page, if there are more to retrieve.
- "items": [ # List of activities retrieved.
- {
- "kind": "orkut#activity", # The kind of activity. Always orkut#activity.
- "links": [ # Links to resources related to this activity.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "title": "A String", # Title of the activity.
- "object": { # The activity's object.
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "items": [ # The list of additional items.
- {
- "displayName": "A String", # The title of the object.
- "links": [ # Links to other resources related to this object.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "community": { # The community which is related with this activity, e.g. a joined community.
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- },
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "person": { # The person who is related with this activity, e.g. an Added User.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "id": "A String", # The ID for the object.
- "objectType": "A String", # The object type.
- },
- ],
- "replies": { # Comments in reply to this activity.
- "totalItems": "A String", # Total number of comments.
- "items": [ # The list of comments.
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- },
- ],
- "url": "A String", # URL for the collection of comments in reply to this activity.
- },
- "objectType": "A String", # The type of the object affected by the activity. Clients can use this information to style the rendered activity object differently depending on the content.
- },
- "updated": "A String", # The time at which the activity was last updated.
- "actor": { # The person who performed the activity.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of ACL entries.
- {
- "type": "A String", # The type of entity to whom access is granted.
- "id": "A String", # The ID of the entity. For entities of type "person" or "circle", this is the ID of the resource. For other types, this will be unset.
- },
- ],
- "kind": "orkut#acl", # Identifies this resource as an access control list. Value: "orkut#acl"
- "description": "A String", # Human readable description of the access granted.
- "totalParticipants": 42, # The total count of participants of the parent resource.
- },
- "verb": "A String", # This activity's verb, indicating what action was performed. Possible values are:
- # - add - User added new content to profile or album, e.g. video, photo.
- # - post - User publish content to the stream, e.g. status, scrap.
- # - update - User commented on an activity.
- # - make-friend - User added a new friend.
- # - birthday - User has a birthday.
- "published": "A String", # The time at which the activity was initially published.
- "id": "A String", # The ID for the activity.
- },
- ],
- "kind": "orkut#activityList", # Identifies this resource as a collection of activities. Value: "orkut#activityList"
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.activityVisibility.html b/docs/dyn/orkut_v2.activityVisibility.html
deleted file mode 100644
index c41949a..0000000
--- a/docs/dyn/orkut_v2.activityVisibility.html
+++ /dev/null
@@ -1,201 +0,0 @@
-
-
-
-
Gets the visibility of an existing activity.
-
-Args:
- activityId: string, ID of the activity to get the visibility. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"
- "visibility": "A String", # The visibility of the resource. Possible values are:
- # - default: not hidden by the user
- # - hidden: hidden
- "links": [ # List of resources for the visibility item.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- }
-
-
-
- patch(activityId, body)
-
Updates the visibility of an existing activity. This method supports patch semantics.
-
-Args:
- activityId: string, ID of the activity. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"
- "visibility": "A String", # The visibility of the resource. Possible values are:
- # - default: not hidden by the user
- # - hidden: hidden
- "links": [ # List of resources for the visibility item.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"
- "visibility": "A String", # The visibility of the resource. Possible values are:
- # - default: not hidden by the user
- # - hidden: hidden
- "links": [ # List of resources for the visibility item.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- }
-
-
-
- update(activityId, body)
-
Updates the visibility of an existing activity.
-
-Args:
- activityId: string, ID of the activity. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"
- "visibility": "A String", # The visibility of the resource. Possible values are:
- # - default: not hidden by the user
- # - hidden: hidden
- "links": [ # List of resources for the visibility item.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "orkut#visibility", # Identifies this resource as a visibility item. Value: "orkut#visibility"
- "visibility": "A String", # The visibility of the resource. Possible values are:
- # - default: not hidden by the user
- # - hidden: hidden
- "links": [ # List of resources for the visibility item.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.badges.html b/docs/dyn/orkut_v2.badges.html
deleted file mode 100644
index cb9b33d..0000000
--- a/docs/dyn/orkut_v2.badges.html
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
Retrieves a badge from a user.
-
-Args:
- userId: string, The ID of the user whose badges will be listed. Can be me to refer to caller. (required)
- badgeId: string, The ID of the badge that will be retrieved. (required)
-
-Returns:
- An object of the form:
-
- {
- "badgeSmallLogo": "A String", # The URL for the 24x24 badge logo.
- "kind": "orkut#badge", # Identifies this resource as a badge. Value: "orkut#badge"
- "description": "A String", # The description for the badge, suitable for display.
- "sponsorLogo": "A String", # The URL for the 32x32 badge sponsor logo.
- "sponsorName": "A String", # The name of the badge sponsor, suitable for display.
- "badgeLargeLogo": "A String", # The URL for the 64x64 badge logo.
- "caption": "A String", # The name of the badge, suitable for display.
- "sponsorUrl": "A String", # The URL for the badge sponsor.
- "id": "A String", # The unique ID for the badge.
- }
-
-
-
- list(userId)
-
Retrieves the list of visible badges of a user.
-
-Args:
- userId: string, The id of the user whose badges will be listed. Can be me to refer to caller. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # List of badges retrieved.
- {
- "badgeSmallLogo": "A String", # The URL for the 24x24 badge logo.
- "kind": "orkut#badge", # Identifies this resource as a badge. Value: "orkut#badge"
- "description": "A String", # The description for the badge, suitable for display.
- "sponsorLogo": "A String", # The URL for the 32x32 badge sponsor logo.
- "sponsorName": "A String", # The name of the badge sponsor, suitable for display.
- "badgeLargeLogo": "A String", # The URL for the 64x64 badge logo.
- "caption": "A String", # The name of the badge, suitable for display.
- "sponsorUrl": "A String", # The URL for the badge sponsor.
- "id": "A String", # The unique ID for the badge.
- },
- ],
- "kind": "orkut#badgeList", # Identifies this resource as a collection of badges. Value: "orkut#badgeList"
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.comments.html b/docs/dyn/orkut_v2.comments.html
deleted file mode 100644
index a26e441..0000000
--- a/docs/dyn/orkut_v2.comments.html
+++ /dev/null
@@ -1,283 +0,0 @@
-
-
-
-
Deletes an existing comment.
-
-Args:
- commentId: string, ID of the comment to remove. (required)
-
-
-
-
- get(commentId, hl=None)
-
Retrieves an existing comment.
-
-Args:
- commentId: string, ID of the comment to get. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- }
-
-
-
- insert(activityId, body)
-
Inserts a new comment to an activity.
-
-Args:
- activityId: string, The ID of the activity to contain the new comment. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- }
Retrieves a list of comments, possibly filtered.
-
-Args:
- activityId: string, The ID of the activity containing the comments. (required)
- orderBy: string, Sort search results.
- Allowed values
- ascending - Use ascending sort order.
- descending - Use descending sort order.
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of activities to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in comments.list request to get the next page, if there are more to retrieve.
- "items": [ # List of comments retrieved.
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- },
- ],
- "kind": "orkut#commentList", # Identifies this resource as a collection of comments. Value: "orkut#commentList"
- "previousPageToken": "A String", # The value of pageToken query parameter in comments.list request to get the previous page, if there are more to retrieve.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communities.html b/docs/dyn/orkut_v2.communities.html
deleted file mode 100644
index ef4c659..0000000
--- a/docs/dyn/orkut_v2.communities.html
+++ /dev/null
@@ -1,216 +0,0 @@
-
-
-
-
Retrieves the list of communities the current user is a member of.
-
Method Details
-
- get(communityId, hl=None)
-
Retrieves the basic information (aka. profile) of a community.
-
-Args:
- communityId: integer, The ID of the community to get. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- }
Retrieves the list of communities the current user is a member of.
-
-Args:
- userId: string, The ID of the user whose communities will be listed. Can be me to refer to caller. (required)
- orderBy: string, How to order the communities by.
- Allowed values
- id - Returns the communities sorted by a fixed, natural order.
- ranked - Returns the communities ranked accordingly to how they are displayed on the orkut web application.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of communities to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # List of communities retrieved.
- {
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- },
- ],
- "kind": "orkut#communityList", # Identifies this resource as a collection of communities. Value: "orkut#communityList"
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityFollow.html b/docs/dyn/orkut_v2.communityFollow.html
deleted file mode 100644
index 2002c14..0000000
--- a/docs/dyn/orkut_v2.communityFollow.html
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
Removes a user from the followers of a community.
-
-Args:
- communityId: integer, ID of the community. (required)
- userId: string, ID of the user. (required)
-
-
-
-
- insert(communityId, userId)
-
Adds a user as a follower of a community.
-
-Args:
- communityId: integer, ID of the community. (required)
- userId: string, ID of the user. (required)
-
-Returns:
- An object of the form:
-
- {
- "communityMembershipStatus": { # Status and permissions of the user related to the community.
- "status": "A String", # The status of the current link between the community and the user.
- "isFollowing": True or False, # Whether the user is following this community.
- "isRestoreAvailable": True or False, # Whether the restore operation is available for the community.
- "isModerator": True or False, # Whether the session user is a community moderator.
- "kind": "orkut#communityMembershipStatus", # Kind of this item. Always orkut#communityMembershipStatus.
- "isCoOwner": True or False, # Whether the session user is a community co-owner.
- "canCreatePoll": True or False, # Whether the user can create a poll in this community.
- "canShout": True or False, # Whether the user can perform a shout operation in this community.
- "isOwner": True or False, # Whether the session user is the community owner.
- "canCreateTopic": True or False, # Whether the user can create a topic in this community.
- "isTakebackAvailable": True or False, # Whether the take-back operation is available for the community.
- },
- "person": { # Description of the community member.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "kind": "orkut#communityMembers", # Kind of this item. Always orkut#communityMembers.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityMembers.html b/docs/dyn/orkut_v2.communityMembers.html
deleted file mode 100644
index ae7831d..0000000
--- a/docs/dyn/orkut_v2.communityMembers.html
+++ /dev/null
@@ -1,256 +0,0 @@
-
-
-
-
Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on the member count available in the community profile information to know when to stop iterating, as that count may be approximate.
Makes the user leave a community.
-
-Args:
- communityId: integer, ID of the community. (required)
- userId: string, ID of the user. (required)
-
-
-
-
- get(communityId, userId, hl=None)
-
Retrieves the relationship between a user and a community.
-
-Args:
- communityId: integer, ID of the community. (required)
- userId: string, ID of the user. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "communityMembershipStatus": { # Status and permissions of the user related to the community.
- "status": "A String", # The status of the current link between the community and the user.
- "isFollowing": True or False, # Whether the user is following this community.
- "isRestoreAvailable": True or False, # Whether the restore operation is available for the community.
- "isModerator": True or False, # Whether the session user is a community moderator.
- "kind": "orkut#communityMembershipStatus", # Kind of this item. Always orkut#communityMembershipStatus.
- "isCoOwner": True or False, # Whether the session user is a community co-owner.
- "canCreatePoll": True or False, # Whether the user can create a poll in this community.
- "canShout": True or False, # Whether the user can perform a shout operation in this community.
- "isOwner": True or False, # Whether the session user is the community owner.
- "canCreateTopic": True or False, # Whether the user can create a topic in this community.
- "isTakebackAvailable": True or False, # Whether the take-back operation is available for the community.
- },
- "person": { # Description of the community member.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "kind": "orkut#communityMembers", # Kind of this item. Always orkut#communityMembers.
- }
-
-
-
- insert(communityId, userId)
-
Makes the user join a community.
-
-Args:
- communityId: integer, ID of the community. (required)
- userId: string, ID of the user. (required)
-
-Returns:
- An object of the form:
-
- {
- "communityMembershipStatus": { # Status and permissions of the user related to the community.
- "status": "A String", # The status of the current link between the community and the user.
- "isFollowing": True or False, # Whether the user is following this community.
- "isRestoreAvailable": True or False, # Whether the restore operation is available for the community.
- "isModerator": True or False, # Whether the session user is a community moderator.
- "kind": "orkut#communityMembershipStatus", # Kind of this item. Always orkut#communityMembershipStatus.
- "isCoOwner": True or False, # Whether the session user is a community co-owner.
- "canCreatePoll": True or False, # Whether the user can create a poll in this community.
- "canShout": True or False, # Whether the user can perform a shout operation in this community.
- "isOwner": True or False, # Whether the session user is the community owner.
- "canCreateTopic": True or False, # Whether the user can create a topic in this community.
- "isTakebackAvailable": True or False, # Whether the take-back operation is available for the community.
- },
- "person": { # Description of the community member.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "kind": "orkut#communityMembers", # Kind of this item. Always orkut#communityMembers.
- }
Lists members of a community. Use the pagination tokens to retrieve the full list; do not rely on the member count available in the community profile information to know when to stop iterating, as that count may be approximate.
-
-Args:
- communityId: integer, The ID of the community whose members will be listed. (required)
- friendsOnly: boolean, Whether to list only community members who are friends of the user.
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of members to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in community_members.list request to get the next page, if there are more to retrieve.
- "kind": "orkut#communityMembersList", # Kind of this item. Always orkut#communityMembersList.
- "items": [ # List of community members retrieved.
- {
- "communityMembershipStatus": { # Status and permissions of the user related to the community.
- "status": "A String", # The status of the current link between the community and the user.
- "isFollowing": True or False, # Whether the user is following this community.
- "isRestoreAvailable": True or False, # Whether the restore operation is available for the community.
- "isModerator": True or False, # Whether the session user is a community moderator.
- "kind": "orkut#communityMembershipStatus", # Kind of this item. Always orkut#communityMembershipStatus.
- "isCoOwner": True or False, # Whether the session user is a community co-owner.
- "canCreatePoll": True or False, # Whether the user can create a poll in this community.
- "canShout": True or False, # Whether the user can perform a shout operation in this community.
- "isOwner": True or False, # Whether the session user is the community owner.
- "canCreateTopic": True or False, # Whether the user can create a topic in this community.
- "isTakebackAvailable": True or False, # Whether the take-back operation is available for the community.
- },
- "person": { # Description of the community member.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "kind": "orkut#communityMembers", # Kind of this item. Always orkut#communityMembers.
- },
- ],
- "prevPageToken": "A String", # The value of pageToken query parameter in community_members.list request to get the previous page, if there are more to retrieve.
- "lastPageToken": "A String", # The value of pageToken query parameter in community_members.list request to get the last page.
- "firstPageToken": "A String", # The value of pageToken query parameter in community_members.list request to get the first page.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityMessages.html b/docs/dyn/orkut_v2.communityMessages.html
deleted file mode 100644
index 158ed0e..0000000
--- a/docs/dyn/orkut_v2.communityMessages.html
+++ /dev/null
@@ -1,229 +0,0 @@
-
-
-
-
Moves a message of the community to the trash folder.
-
-Args:
- communityId: integer, The ID of the community whose message will be moved to the trash folder. (required)
- topicId: string, The ID of the topic whose message will be moved to the trash folder. (required)
- messageId: string, The ID of the message to be moved to the trash folder. (required)
-
-
-
-
- insert(communityId, topicId, body)
-
Adds a message to a given community topic.
-
-Args:
- communityId: integer, The ID of the community the message should be added to. (required)
- topicId: string, The ID of the topic the message should be added to. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- }
Retrieves the messages of a topic of a community.
-
-Args:
- communityId: integer, The ID of the community which messages will be listed. (required)
- topicId: string, The ID of the topic which messages will be listed. (required)
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of messages to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the next page, if there are more to retrieve.
- "kind": "orkut#communityMessageList", # Identifies this resource as a collection of community messages. Value: "orkut#communityMessageList"
- "items": [ # List of messages retrieved.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- },
- ],
- "prevPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the previous page, if there are more to retrieve.
- "lastPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the last page.
- "firstPageToken": "A String", # The value of pageToken query parameter in community_messages.list request to get the first page.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityPollComments.html b/docs/dyn/orkut_v2.communityPollComments.html
deleted file mode 100644
index efeff4a..0000000
--- a/docs/dyn/orkut_v2.communityPollComments.html
+++ /dev/null
@@ -1,185 +0,0 @@
-
-
-
-
Adds a comment on a community poll.
-
-Args:
- communityId: integer, The ID of the community whose poll is being commented. (required)
- pollId: string, The ID of the poll being commented. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "body": "A String", # The body of the message.
- "kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
- "addedDate": "A String", # The date when the message was added, in RFC 3339 format.
- "id": 42, # The ID of the comment.
- "author": { # The creator of the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
- "addedDate": "A String", # The date when the message was added, in RFC 3339 format.
- "id": 42, # The ID of the comment.
- "author": { # The creator of the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- }
Retrieves the comments of a community poll.
-
-Args:
- communityId: integer, The ID of the community whose poll is having its comments listed. (required)
- pollId: string, The ID of the community whose polls will be listed. (required)
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of comments to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the next page, if there are more to retrieve.
- "kind": "orkut#CommunityPollCommentList", # Identifies this resource as a collection of community poll comments. Value: "orkut#CommunityPollCommentList"
- "items": [ # List of community poll comments retrieved.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityPollComment", # Identifies this resource as a community poll comment. Value: "orkut#communityPollComment"
- "addedDate": "A String", # The date when the message was added, in RFC 3339 format.
- "id": 42, # The ID of the comment.
- "author": { # The creator of the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- },
- ],
- "prevPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the previous page, if there are more to retrieve.
- "lastPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the last page.
- "firstPageToken": "A String", # The value of pageToken query parameter in community_poll_comments.list request to get the first page.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityPollVotes.html b/docs/dyn/orkut_v2.communityPollVotes.html
deleted file mode 100644
index 00f5269..0000000
--- a/docs/dyn/orkut_v2.communityPollVotes.html
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
Votes on a community poll.
-
-Args:
- communityId: integer, The ID of the community whose poll is being voted. (required)
- pollId: string, The ID of the poll being voted. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "orkut#communityPollVote", # Identifies this resource as a community poll vote. Value: "orkut#communityPollVote"
- "optionIds": [ # The ids of the voted options.
- 42,
- ],
- "isVotevisible": True or False, # Whether this vote is visible to other users or not.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "orkut#communityPollVote", # Identifies this resource as a community poll vote. Value: "orkut#communityPollVote"
- "optionIds": [ # The ids of the voted options.
- 42,
- ],
- "isVotevisible": True or False, # Whether this vote is visible to other users or not.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityPolls.html b/docs/dyn/orkut_v2.communityPolls.html
deleted file mode 100644
index 03c6824..0000000
--- a/docs/dyn/orkut_v2.communityPolls.html
+++ /dev/null
@@ -1,241 +0,0 @@
-
-
-
-
Retrieves one specific poll of a community.
-
-Args:
- communityId: integer, The ID of the community for whose poll will be retrieved. (required)
- pollId: string, The ID of the poll to get. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "links": [ # List of resources for the community poll.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "isMultipleAnswers": True or False, # Whether this poll allows voting for more than one option.
- "image": { # The image representing the poll. Field is omitted if no image exists.
- "url": "A String", # A URL that points to an image of the poll.
- },
- "endingTime": "A String", # The ending date of this poll or empty if the poll doesn't have one.
- "isVotingAllowedForNonMembers": True or False, # Whether non-members of the community can vote on the poll.
- "isSpam": True or False, # Whether the user has marked this poll as spam. This only affects the poll for this user, not globally.
- "totalNumberOfVotes": 42, # The total number of votes this poll has received.
- "author": { # The person who created the poll.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "question": "A String", # The poll question.
- "id": "A String", # The poll ID.
- "isRestricted": True or False, # Whether this poll is restricted for members only. If a poll is open but the user can't vote on it, it's been restricted to members only. This information is important to tell this case apart from the one where the user can't vote simply because the poll is already closed.
- "communityId": 42, # The ID of the community.
- "isUsersVotePublic": True or False, # If user has already voted, whether his vote is publicly visible.
- "lastUpdate": "A String", # The date of the last update of this poll.
- "description": "A String", # The poll description.
- "votedOptions": [ # List of options the user has voted on, if there are any.
- 42,
- ],
- "isOpenForVoting": True or False, # Whether this poll is still opened for voting. A poll is open for voting if it is not closed, the user has not yet voted on it and the user has the permission to do so, which happens if he/she is either a community member or the poll is open for everybody.
- "isClosed": True or False, # Whether the poll is not expired if there is an expiration date. A poll is open (that is, not closed for voting) if it either is not expired or doesn't have an expiration date at all. Note that just because a poll is open, it doesn't mean that the requester can vote on it.
- "hasVoted": True or False, # Whether the user has voted on this poll.
- "kind": "orkut#communityPoll", # Identifies this resource as a community poll. Value: "orkut#communityPoll"
- "creationTime": "A String", # The date of creation of this poll
- "options": [ # List of options of this poll.
- {
- "image": { # Image data about the poll option. Field is omitted if no image exists.
- "url": "A String", # A URL that points to an image of the poll question.
- },
- "optionId": 42, # The poll option ID
- "description": "A String", # The option description.
- "numberOfVotes": 42, # The total number of votes that this option received.
- },
- ],
- }
Retrieves the polls of a community.
-
-Args:
- communityId: integer, The ID of the community which polls will be listed. (required)
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of polls to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in community_polls.list request to get the next page, if there are more to retrieve.
- "kind": "orkut#communityPollList", # Identifies this resource as a collection of community polls. Value: "orkut#communityPollList"
- "items": [ # List of community polls retrieved.
- {
- "links": [ # List of resources for the community poll.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "isMultipleAnswers": True or False, # Whether this poll allows voting for more than one option.
- "image": { # The image representing the poll. Field is omitted if no image exists.
- "url": "A String", # A URL that points to an image of the poll.
- },
- "endingTime": "A String", # The ending date of this poll or empty if the poll doesn't have one.
- "isVotingAllowedForNonMembers": True or False, # Whether non-members of the community can vote on the poll.
- "isSpam": True or False, # Whether the user has marked this poll as spam. This only affects the poll for this user, not globally.
- "totalNumberOfVotes": 42, # The total number of votes this poll has received.
- "author": { # The person who created the poll.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "question": "A String", # The poll question.
- "id": "A String", # The poll ID.
- "isRestricted": True or False, # Whether this poll is restricted for members only. If a poll is open but the user can't vote on it, it's been restricted to members only. This information is important to tell this case apart from the one where the user can't vote simply because the poll is already closed.
- "communityId": 42, # The ID of the community.
- "isUsersVotePublic": True or False, # If user has already voted, whether his vote is publicly visible.
- "lastUpdate": "A String", # The date of the last update of this poll.
- "description": "A String", # The poll description.
- "votedOptions": [ # List of options the user has voted on, if there are any.
- 42,
- ],
- "isOpenForVoting": True or False, # Whether this poll is still opened for voting. A poll is open for voting if it is not closed, the user has not yet voted on it and the user has the permission to do so, which happens if he/she is either a community member or the poll is open for everybody.
- "isClosed": True or False, # Whether the poll is not expired if there is an expiration date. A poll is open (that is, not closed for voting) if it either is not expired or doesn't have an expiration date at all. Note that just because a poll is open, it doesn't mean that the requester can vote on it.
- "hasVoted": True or False, # Whether the user has voted on this poll.
- "kind": "orkut#communityPoll", # Identifies this resource as a community poll. Value: "orkut#communityPoll"
- "creationTime": "A String", # The date of creation of this poll
- "options": [ # List of options of this poll.
- {
- "image": { # Image data about the poll option. Field is omitted if no image exists.
- "url": "A String", # A URL that points to an image of the poll question.
- },
- "optionId": 42, # The poll option ID
- "description": "A String", # The option description.
- "numberOfVotes": 42, # The total number of votes that this option received.
- },
- ],
- },
- ],
- "prevPageToken": "A String", # The value of pageToken query parameter in community_polls.list request to get the previous page, if there are more to retrieve.
- "lastPageToken": "A String", # The value of pageToken query parameter in community_polls.list request to get the last page.
- "firstPageToken": "A String", # The value of pageToken query parameter in community_polls.list request to get the first page.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityRelated.html b/docs/dyn/orkut_v2.communityRelated.html
deleted file mode 100644
index bf7752b..0000000
--- a/docs/dyn/orkut_v2.communityRelated.html
+++ /dev/null
@@ -1,147 +0,0 @@
-
-
-
-
Retrieves the communities related to another one.
-
-Args:
- communityId: integer, The ID of the community whose related communities will be listed. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "items": [ # List of communities retrieved.
- {
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- },
- ],
- "kind": "orkut#communityList", # Identifies this resource as a collection of communities. Value: "orkut#communityList"
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.communityTopics.html b/docs/dyn/orkut_v2.communityTopics.html
deleted file mode 100644
index 1a6046e..0000000
--- a/docs/dyn/orkut_v2.communityTopics.html
+++ /dev/null
@@ -1,380 +0,0 @@
-
-
-
-
Moves a topic of the community to the trash folder.
-
-Args:
- communityId: integer, The ID of the community whose topic will be moved to the trash folder. (required)
- topicId: string, The ID of the topic to be moved to the trash folder. (required)
-
-
-
-
- get(communityId, topicId, hl=None)
-
Retrieves a topic of a community.
-
-Args:
- communityId: integer, The ID of the community whose topic will be retrieved. (required)
- topicId: string, The ID of the topic to get. (required)
- hl: string, Specifies the interface language (host language) of your user interface.
-
-Returns:
- An object of the form:
-
- {
- "body": "A String", # The body of the topic.
- "lastUpdate": "A String", # The timestamp of the last update, in RFC 3339 format.
- "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the topic.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "title": "A String", # The title of the topic.
- "messages": [ # Most recent messages.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- },
- ],
- "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.
- "isClosed": True or False, # Whether the topic is closed for new messages.
- "numberOfReplies": 42, # The total number of replies this topic has received.
- "id": "A String", # The ID of the topic.
- }
-
-
-
- insert(communityId, body, isShout=None)
-
Adds a topic to a given community.
-
-Args:
- communityId: integer, The ID of the community the topic should be added to. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "body": "A String", # The body of the topic.
- "lastUpdate": "A String", # The timestamp of the last update, in RFC 3339 format.
- "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the topic.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "title": "A String", # The title of the topic.
- "messages": [ # Most recent messages.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- },
- ],
- "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.
- "isClosed": True or False, # Whether the topic is closed for new messages.
- "numberOfReplies": 42, # The total number of replies this topic has received.
- "id": "A String", # The ID of the topic.
- }
-
- isShout: boolean, Whether this topic is a shout.
-
-Returns:
- An object of the form:
-
- {
- "body": "A String", # The body of the topic.
- "lastUpdate": "A String", # The timestamp of the last update, in RFC 3339 format.
- "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the topic.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "title": "A String", # The title of the topic.
- "messages": [ # Most recent messages.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- },
- ],
- "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.
- "isClosed": True or False, # Whether the topic is closed for new messages.
- "numberOfReplies": 42, # The total number of replies this topic has received.
- "id": "A String", # The ID of the topic.
- }
Retrieves the topics of a community.
-
-Args:
- communityId: integer, The ID of the community which topics will be listed. (required)
- pageToken: string, A continuation token that allows pagination.
- hl: string, Specifies the interface language (host language) of your user interface.
- maxResults: integer, The maximum number of topics to include in the response.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the next page, if there are more to retrieve.
- "kind": "orkut#communityTopicList", # Identifies this resource as a collection of community topics. Value: "orkut#communityTopicList"
- "items": [ # List of topics retrieved.
- {
- "body": "A String", # The body of the topic.
- "lastUpdate": "A String", # The timestamp of the last update, in RFC 3339 format.
- "kind": "orkut#communityTopic", # Identifies this resource as a community topic. Value: "orkut#communityTopic"
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the topic.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "title": "A String", # The title of the topic.
- "messages": [ # Most recent messages.
- {
- "body": "A String", # The body of the message.
- "kind": "orkut#communityMessage", # Identifies this resource as a community message. Value: "orkut#communityMessage"
- "links": [ # List of resources for the community message.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "author": { # The creator of the message. If ommited, the message is annonimous.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "id": "A String", # The ID of the message.
- "addedDate": "A String", # The timestamp of the date when the message was added, in RFC 3339 format.
- "isSpam": True or False, # Whether this post was marked as spam by the viewer, when he/she is not the community owner or one of its moderators.
- "subject": "A String", # The subject of the message.
- },
- ],
- "latestMessageSnippet": "A String", # Snippet of the last message posted on this topic.
- "isClosed": True or False, # Whether the topic is closed for new messages.
- "numberOfReplies": 42, # The total number of replies this topic has received.
- "id": "A String", # The ID of the topic.
- },
- ],
- "prevPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the previous page, if there are more to retrieve.
- "lastPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the last page.
- "firstPageToken": "A String", # The value of pageToken query parameter in community_topic.list request to get the first page.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.counters.html b/docs/dyn/orkut_v2.counters.html
deleted file mode 100644
index f433265..0000000
--- a/docs/dyn/orkut_v2.counters.html
+++ /dev/null
@@ -1,112 +0,0 @@
-
-
-
-
Retrieves the counters of a user.
-
-Args:
- userId: string, The ID of the user whose counters will be listed. Can be me to refer to caller. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # List of counters retrieved.
- {
- "total": 42, # The number of resources on the counted collection.
- "link": { # Links to resources related to the parent object. # Link to the collection being counted.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- "name": "A String", # The name of the counted collection. Currently supported collections are:
- # - scraps - The scraps of the user.
- # - photos - The photos of the user.
- # - videos - The videos of the user.
- # - pendingTestimonials - The pending testimonials of the user.
- },
- ],
- "kind": "orkut#counters", # Identifies this resource as a collection of counters. Value: "orkut#counters"
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/orkut_v2.html b/docs/dyn/orkut_v2.html
deleted file mode 100644
index 5d7ad82..0000000
--- a/docs/dyn/orkut_v2.html
+++ /dev/null
@@ -1,157 +0,0 @@
-
-
-
-
Creates a new scrap.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "orkut#activity", # The kind of activity. Always orkut#activity.
- "links": [ # Links to resources related to this activity.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "title": "A String", # Title of the activity.
- "object": { # The activity's object.
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "items": [ # The list of additional items.
- {
- "displayName": "A String", # The title of the object.
- "links": [ # Links to other resources related to this object.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "community": { # The community which is related with this activity, e.g. a joined community.
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- },
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "person": { # The person who is related with this activity, e.g. an Added User.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "id": "A String", # The ID for the object.
- "objectType": "A String", # The object type.
- },
- ],
- "replies": { # Comments in reply to this activity.
- "totalItems": "A String", # Total number of comments.
- "items": [ # The list of comments.
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- },
- ],
- "url": "A String", # URL for the collection of comments in reply to this activity.
- },
- "objectType": "A String", # The type of the object affected by the activity. Clients can use this information to style the rendered activity object differently depending on the content.
- },
- "updated": "A String", # The time at which the activity was last updated.
- "actor": { # The person who performed the activity.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of ACL entries.
- {
- "type": "A String", # The type of entity to whom access is granted.
- "id": "A String", # The ID of the entity. For entities of type "person" or "circle", this is the ID of the resource. For other types, this will be unset.
- },
- ],
- "kind": "orkut#acl", # Identifies this resource as an access control list. Value: "orkut#acl"
- "description": "A String", # Human readable description of the access granted.
- "totalParticipants": 42, # The total count of participants of the parent resource.
- },
- "verb": "A String", # This activity's verb, indicating what action was performed. Possible values are:
- # - add - User added new content to profile or album, e.g. video, photo.
- # - post - User publish content to the stream, e.g. status, scrap.
- # - update - User commented on an activity.
- # - make-friend - User added a new friend.
- # - birthday - User has a birthday.
- "published": "A String", # The time at which the activity was initially published.
- "id": "A String", # The ID for the activity.
-}
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "orkut#activity", # The kind of activity. Always orkut#activity.
- "links": [ # Links to resources related to this activity.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "title": "A String", # Title of the activity.
- "object": { # The activity's object.
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "items": [ # The list of additional items.
- {
- "displayName": "A String", # The title of the object.
- "links": [ # Links to other resources related to this object.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "community": { # The community which is related with this activity, e.g. a joined community.
- "category": "A String", # The category of the community.
- "kind": "orkut#community", # Identifies this resource as a community. Value: "orkut#community"
- "member_count": 42, # The number of users who are part of the community. This number may be approximate, so do not rely on it for iteration.
- "description": "A String", # The description of the community.
- "language": "A String", # The official language of the community.
- "links": [ # List of resources for the community.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "creation_date": "A String", # The time the community was created, in RFC 3339 format.
- "owner": { # The person who owns the community.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "moderators": [ # The list of moderators of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "location": "A String", # The location of the community.
- "co_owners": [ # The co-owners of the community.
- {
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- ],
- "photo_url": "A String", # The photo of the community.
- "id": 42, # The id of the community.
- "name": "A String", # The name of the community.
- },
- "content": "A String", # The HTML-formatted content, suitable for display. When updating an activity's content, post the changes to this property, using the value of originalContent as a starting point. If the update is successful, the server adds HTML formatting and responds with this formatted content.
- "person": { # The person who is related with this activity, e.g. an Added User.
- "name": { # An object that encapsulates the individual components of a person's name.
- "givenName": "A String", # The given name (first name) of this person.
- "familyName": "A String", # The family name (last name) of this person.
- },
- "url": "A String", # The person's profile url. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "gender": "A String", # The person's gender. Values include "male", "female", and "other".
- "image": { # The person's profile photo. This is adapted from Google+ and was originaly introduced as extra OpenSocial convenience fields.
- "url": "A String", # The URL of the person's profile photo.
- },
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "id": "A String", # The person's opensocial ID.
- },
- "id": "A String", # The ID for the object.
- "objectType": "A String", # The object type.
- },
- ],
- "replies": { # Comments in reply to this activity.
- "totalItems": "A String", # Total number of comments.
- "items": [ # The list of comments.
- {
- "inReplyTo": { # Link to the original activity where this comment was posted.
- "type": "A String", # Type of the post on activity stream being commented. Always text/html.
- "href": "A String", # Link to the post on activity stream being commented.
- "ref": "A String", # Unique identifier of the post on activity stream being commented.
- "rel": "inReplyTo", # Relationship between the comment and the post on activity stream being commented. Always inReplyTo.
- },
- "kind": "orkut#comment", # Identifies this resource as a comment. Value: "orkut#comment"
- "links": [ # List of resources for the comment.
- { # Links to resources related to the parent object.
- "href": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- "rel": "A String", # Relation between the resource and the parent object.
- "title": "A String", # Title of the link.
- },
- ],
- "actor": { # The person who posted the comment.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "content": "A String", # The content of the comment in text/html
- "published": "A String", # The time the comment was initially published, in RFC 3339 format.
- "id": "A String", # The unique ID for the comment.
- },
- ],
- "url": "A String", # URL for the collection of comments in reply to this activity.
- },
- "objectType": "A String", # The type of the object affected by the activity. Clients can use this information to style the rendered activity object differently depending on the content.
- },
- "updated": "A String", # The time at which the activity was last updated.
- "actor": { # The person who performed the activity.
- "url": "A String", # The URL of the author who posted the comment [not yet implemented]
- "image": { # Image data about the author.
- "url": "A String", # A URL that points to a thumbnail photo of the author.
- },
- "displayName": "A String", # The name of the author, suitable for display.
- "id": "A String", # Unique identifier of the person who posted the comment. This is the person's OpenSocial ID.
- },
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of ACL entries.
- {
- "type": "A String", # The type of entity to whom access is granted.
- "id": "A String", # The ID of the entity. For entities of type "person" or "circle", this is the ID of the resource. For other types, this will be unset.
- },
- ],
- "kind": "orkut#acl", # Identifies this resource as an access control list. Value: "orkut#acl"
- "description": "A String", # Human readable description of the access granted.
- "totalParticipants": 42, # The total count of participants of the parent resource.
- },
- "verb": "A String", # This activity's verb, indicating what action was performed. Possible values are:
- # - add - User added new content to profile or album, e.g. video, photo.
- # - post - User publish content to the stream, e.g. status, scrap.
- # - update - User commented on an activity.
- # - make-friend - User added a new friend.
- # - birthday - User has a birthday.
- "published": "A String", # The time at which the activity was initially published.
- "id": "A String", # The ID for the activity.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/pagespeedonline_v1.html b/docs/dyn/pagespeedonline_v1.html
deleted file mode 100644
index 4b0abf3..0000000
--- a/docs/dyn/pagespeedonline_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list of suggestions to make that page faster, and other information.
Runs Page Speed analysis on the page at the specified URL, and returns a Page Speed score, a list of suggestions to make that page faster, and other information.
-
-Args:
- url: string, The URL to fetch and analyze (required)
- screenshot: boolean, Indicates if binary data containing a screenshot should be included
- locale: string, The locale used to localize formatted results
- rule: string, A Page Speed rule to run; if none are given, all rules are run (repeated)
- strategy: string, The analysis strategy to use
- Allowed values
- desktop - Fetch and analyze the URL for desktop browsers
- mobile - Fetch and analyze the URL for mobile devices
- filter_third_party_resources: boolean, Indicates if third party resources should be filtered out before PageSpeed analysis.
-
-Returns:
- An object of the form:
-
- {
- "notice": "If you would like to use this API to perform programmatic PageSpeed analysis, please use your own PageSpeed Insights API key. See https://developers.google.com/speed/docs/insights/v1/getting_started for additional details.", # Notice to discourage users from reusing API keys.
- "responseCode": 42, # Response code for the document. 200 indicates a normal page load. 4xx/5xx indicates an error.
- "screenshot": { # Base64 encoded screenshot of the page that was analyzed.
- "width": 42, # Width of screenshot in pixels.
- "data": "A String", # Image data base64 encoded.
- "mime_type": "A String", # Mime type of image data. E.g. "image/jpeg".
- "height": 42, # Height of screenshot in pixels.
- },
- "title": "A String", # Title of the page, as displayed in the browser's title bar.
- "version": { # The version of the Page Speed SDK used to generate these results.
- "major": 42, # The major version number of the Page Speed SDK used to generate these results.
- "minor": 42, # The minor version number of the Page Speed SDK used to generate these results.
- },
- "request": { # Echo of certain request parameters.
- "url": "A String",
- "filter_third_party_resources": "A String",
- "strategy": "A String",
- },
- "kind": "pagespeedonline#result", # Kind of result.
- "score": 42, # The Page Speed Score (0-100), which indicates how much faster a page could be. A high score indicates little room for improvement, while a lower score indicates more room for improvement.
- "formattedResults": { # Localized Page Speed results. Contains a ruleResults entry for each Page Speed rule instantiated and run by the server.
- "locale": "A String", # The locale of the formattedResults, e.g. "en_US".
- "ruleResults": { # Dictionary of formatted rule results, with one entry for each Page Speed rule instantiated and run by the server.
- "a_key": { # The enum-like identifier for this rule. For instance "EnableKeepAlive" or "AvoidCssImport". Not localized.
- "localizedRuleName": "A String", # Localized name of the rule, intended for presentation to a user.
- "urlBlocks": [ # List of blocks of URLs. Each block may contain a heading and a list of URLs. Each URL may optionally include additional details.
- {
- "header": { # Heading to be displayed with the list of URLs.
- "args": [ # List of arguments for the format string.
- {
- "type": "A String", # Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
- "value": "A String", # Argument value, as a localized string.
- },
- ],
- "format": "A String", # A localized format string with $N placeholders, where N is the 1-indexed argument number, e.g. 'Minifying the following $1 resources would save a total of $2 bytes'.
- },
- "urls": [ # List of entries that provide information about URLs in the url block. Optional.
- {
- "details": [ # List of entries that provide additional details about a single URL. Optional.
- {
- "args": [ # List of arguments for the format string.
- {
- "type": "A String", # Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
- "value": "A String", # Argument value, as a localized string.
- },
- ],
- "format": "A String", # A localized format string with $N placeholders, where N is the 1-indexed argument number, e.g. 'Unnecessary metadata for this resource adds an additional $1 bytes to its download size'.
- },
- ],
- "result": { # A format string that gives information about the URL, and a list of arguments for that format string.
- "args": [ # List of arguments for the format string.
- {
- "type": "A String", # Type of argument. One of URL, STRING_LITERAL, INT_LITERAL, BYTES, or DURATION.
- "value": "A String", # Argument value, as a localized string.
- },
- ],
- "format": "A String", # A localized format string with $N placeholders, where N is the 1-indexed argument number, e.g. 'Minifying the resource at URL $1 can save $2 bytes'.
- },
- },
- ],
- },
- ],
- "ruleScore": 42, # The score (0-100) for this rule. The rule score indicates how well a page implements the recommendations for the given rule. For instance, if none of the compressible resources on a page are compressed, the rule score would be 0, while if all of the compressible resources on a page are compressed, the rule score would be 100.
- "ruleImpact": 3.14, # The impact (unbounded floating point value) that implementing the suggestions for this rule would have on making the page faster. Impact is comparable between rules to determine which rule's suggestions would have a higher or lower impact on making a page faster. For instance, if enabling compression would save 1MB, while optimizing images would save 500kB, the enable compression rule would have 2x the impact of the image optimization rule, all other things being equal.
- },
- },
- },
- "invalidRules": [ # List of rules that were specified in the request, but which the server did not know how to instantiate.
- "A String",
- ],
- "pageStats": { # Summary statistics for the page, such as number of JavaScript bytes, number of HTML bytes, etc.
- "otherResponseBytes": "A String", # Number of response bytes for other resources on the page.
- "flashResponseBytes": "A String", # Number of response bytes for flash resources on the page.
- "totalRequestBytes": "A String", # Total size of all request bytes sent by the page.
- "numberCssResources": 42, # Number of CSS resources referenced by the page.
- "numberResources": 42, # Number of HTTP resources loaded by the page.
- "cssResponseBytes": "A String", # Number of uncompressed response bytes for CSS resources on the page.
- "javascriptResponseBytes": "A String", # Number of uncompressed response bytes for JS resources on the page.
- "imageResponseBytes": "A String", # Number of response bytes for image resources on the page.
- "numberHosts": 42, # Number of unique hosts referenced by the page.
- "numberStaticResources": 42, # Number of static (i.e. cacheable) resources on the page.
- "htmlResponseBytes": "A String", # Number of uncompressed response bytes for the main HTML document and all iframes on the page.
- "numberJsResources": 42, # Number of JavaScript resources referenced by the page.
- "textResponseBytes": "A String", # Number of uncompressed response bytes for text resources not covered by other statistics (i.e non-HTML, non-script, non-CSS resources) on the page.
- },
- "id": "A String", # Canonicalized and final URL for the document, after following page redirects (if any).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/plus_v1.activities.html b/docs/dyn/plus_v1.activities.html
deleted file mode 100644
index 338d267..0000000
--- a/docs/dyn/plus_v1.activities.html
+++ /dev/null
@@ -1,589 +0,0 @@
-
-
-
-
Get an activity.
-
-Args:
- activityId: string, The ID of the activity to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "placeName": "A String", # Name of the place where this activity occurred.
- "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity".
- "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.
- "provider": { # The service provider that initially published this activity.
- "title": "A String", # Name of the service provider.
- },
- "title": "A String", # Title of this activity.
- "url": "A String", # The link to this activity.
- "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated.
- "object": { # The object of this activity.
- "resharers": { # People who reshared this activity.
- "totalItems": 42, # Total number of people who reshared this activity.
- "selfLink": "A String", # The URL for the collection of resharers.
- },
- "attachments": [ # The media objects attached to this activity.
- {
- "displayName": "A String", # The title of the attachment, such as a photo caption or an article title.
- "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album.
- {
- "url": "A String", # URL to the webpage containing the image.
- "image": { # Image resource.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "description": "A String", # Potential name of the thumbnail.
- },
- ],
- "fullImage": { # The full image URL for photo attachments.
- "url": "A String", # URL to the image.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "url": "A String", # The link to the attachment, should be of type text/html.
- "image": { # The preview image for photos or videos.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types.
- "embed": { # If the attachment is a video, the embeddable link.
- "url": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- },
- "id": "A String", # The ID of the attachment.
- "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values:
- # - "photo" - A photo.
- # - "album" - A photo album.
- # - "video" - A video.
- # - "article" - An article, specified by a link.
- },
- ],
- "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request.
- "plusoners": { # People who +1'd this activity.
- "totalItems": 42, # Total number of people who +1'd this activity.
- "selfLink": "A String", # The URL for the collection of people who +1'd this activity.
- },
- "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor.
- "url": "A String", # A link to the original actor's Google profile.
- "image": { # The image representation of the original actor.
- "url": "A String", # A URL that points to a thumbnail photo of the original actor.
- },
- "displayName": "A String", # The original actor's name, which is suitable for display.
- "id": "A String", # ID of the original actor.
- },
- "content": "A String", # The HTML-formatted content, which is suitable for display.
- "url": "A String", # The URL that points to the linked resource.
- "replies": { # Comments in reply to this activity.
- "totalItems": 42, # Total number of comments on this activity.
- "selfLink": "A String", # The URL for the collection of comments in reply to this activity.
- },
- "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared.
- "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values:
- # - "note" - Textual content.
- # - "activity" - A Google+ activity.
- },
- "placeId": "A String", # ID of the place where this activity occurred.
- "actor": { # The person who performed this activity.
- "url": "A String", # The link to the actor's Google profile.
- "image": { # The image representation of the actor.
- "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "displayName": "A String", # The name of the actor, suitable for display.
- "id": "A String", # The ID of the actor's person resource.
- "name": { # An object representation of the individual components of name.
- "givenName": "A String", # The given name (first name) of the actor.
- "familyName": "A String", # The family name (last name) of the actor.
- },
- },
- "id": "A String", # The ID of this activity.
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of access entries.
- {
- "type": "A String", # The type of entry describing to whom access is granted. Possible values are:
- # - "person" - Access to an individual.
- # - "circle" - Access to members of a circle.
- # - "myCircles" - Access to members of all the person's circles.
- # - "extendedCircles" - Access to members of everyone in a person's circles, plus all of the people in their circles.
- # - "domain" - Access to members of the person's Google Apps domain.
- # - "public" - Access to anyone on the web.
- "displayName": "A String", # A descriptive name for this entry. Suitable for display.
- "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set.
- },
- ],
- "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl".
- "description": "A String", # Description of the access granted, suitable for display.
- },
- "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values:
- # - "post" - Publish content to the stream.
- # - "share" - Reshare an activity.
- "etag": "A String", # ETag of this response for caching purposes.
- "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode.
- "location": { # The location where this activity occurred.
- "position": { # The position of the place.
- "latitude": 3.14, # The latitude of this position.
- "longitude": 3.14, # The longitude of this position.
- },
- "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place".
- "displayName": "A String", # The display name of the place.
- "address": { # The physical address of the place.
- "formatted": "A String", # The formatted address for display.
- },
- },
- "address": "A String", # Street address where this activity occurred.
- "crosspostSource": "A String", # If this activity is a cross post from another system, this property specifies the ID of the original activity.
- "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity.
- "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.
- }
List all of the activities in the specified collection for a particular user.
-
-Args:
- userId: string, The ID of the user to get activities for. The special value "me" can be used to indicate the authenticated user. (required)
- collection: string, The collection of activities to list. (required)
- Allowed values
- public - All public activities created by the specified user.
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#activityFeed", # Identifies this resource as a collection of activities. Value: "plus#activityFeed".
- "title": "A String", # The title of this collection of activities.
- "items": [ # The activities in this page of results.
- {
- "placeName": "A String", # Name of the place where this activity occurred.
- "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity".
- "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.
- "provider": { # The service provider that initially published this activity.
- "title": "A String", # Name of the service provider.
- },
- "title": "A String", # Title of this activity.
- "url": "A String", # The link to this activity.
- "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated.
- "object": { # The object of this activity.
- "resharers": { # People who reshared this activity.
- "totalItems": 42, # Total number of people who reshared this activity.
- "selfLink": "A String", # The URL for the collection of resharers.
- },
- "attachments": [ # The media objects attached to this activity.
- {
- "displayName": "A String", # The title of the attachment, such as a photo caption or an article title.
- "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album.
- {
- "url": "A String", # URL to the webpage containing the image.
- "image": { # Image resource.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "description": "A String", # Potential name of the thumbnail.
- },
- ],
- "fullImage": { # The full image URL for photo attachments.
- "url": "A String", # URL to the image.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "url": "A String", # The link to the attachment, should be of type text/html.
- "image": { # The preview image for photos or videos.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types.
- "embed": { # If the attachment is a video, the embeddable link.
- "url": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- },
- "id": "A String", # The ID of the attachment.
- "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values:
- # - "photo" - A photo.
- # - "album" - A photo album.
- # - "video" - A video.
- # - "article" - An article, specified by a link.
- },
- ],
- "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request.
- "plusoners": { # People who +1'd this activity.
- "totalItems": 42, # Total number of people who +1'd this activity.
- "selfLink": "A String", # The URL for the collection of people who +1'd this activity.
- },
- "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor.
- "url": "A String", # A link to the original actor's Google profile.
- "image": { # The image representation of the original actor.
- "url": "A String", # A URL that points to a thumbnail photo of the original actor.
- },
- "displayName": "A String", # The original actor's name, which is suitable for display.
- "id": "A String", # ID of the original actor.
- },
- "content": "A String", # The HTML-formatted content, which is suitable for display.
- "url": "A String", # The URL that points to the linked resource.
- "replies": { # Comments in reply to this activity.
- "totalItems": 42, # Total number of comments on this activity.
- "selfLink": "A String", # The URL for the collection of comments in reply to this activity.
- },
- "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared.
- "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values:
- # - "note" - Textual content.
- # - "activity" - A Google+ activity.
- },
- "placeId": "A String", # ID of the place where this activity occurred.
- "actor": { # The person who performed this activity.
- "url": "A String", # The link to the actor's Google profile.
- "image": { # The image representation of the actor.
- "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "displayName": "A String", # The name of the actor, suitable for display.
- "id": "A String", # The ID of the actor's person resource.
- "name": { # An object representation of the individual components of name.
- "givenName": "A String", # The given name (first name) of the actor.
- "familyName": "A String", # The family name (last name) of the actor.
- },
- },
- "id": "A String", # The ID of this activity.
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of access entries.
- {
- "type": "A String", # The type of entry describing to whom access is granted. Possible values are:
- # - "person" - Access to an individual.
- # - "circle" - Access to members of a circle.
- # - "myCircles" - Access to members of all the person's circles.
- # - "extendedCircles" - Access to members of everyone in a person's circles, plus all of the people in their circles.
- # - "domain" - Access to members of the person's Google Apps domain.
- # - "public" - Access to anyone on the web.
- "displayName": "A String", # A descriptive name for this entry. Suitable for display.
- "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set.
- },
- ],
- "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl".
- "description": "A String", # Description of the access granted, suitable for display.
- },
- "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values:
- # - "post" - Publish content to the stream.
- # - "share" - Reshare an activity.
- "etag": "A String", # ETag of this response for caching purposes.
- "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode.
- "location": { # The location where this activity occurred.
- "position": { # The position of the place.
- "latitude": 3.14, # The latitude of this position.
- "longitude": 3.14, # The longitude of this position.
- },
- "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place".
- "displayName": "A String", # The display name of the place.
- "address": { # The physical address of the place.
- "formatted": "A String", # The formatted address for display.
- },
- },
- "address": "A String", # Street address where this activity occurred.
- "crosspostSource": "A String", # If this activity is a cross post from another system, this property specifies the ID of the original activity.
- "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity.
- "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.
- },
- ],
- "updated": "A String", # The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp.
- "nextLink": "A String", # Link to the next page of activities.
- "etag": "A String", # ETag of this response for caching purposes.
- "id": "A String", # The ID of this collection of activities. Deprecated.
- "selfLink": "A String", # Link to this activity resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Search public activities.
-
-Args:
- query: string, Full-text search query string. (required)
- orderBy: string, Specifies how to order search results.
- Allowed values
- best - Sort activities by relevance to the user, most relevant first.
- recent - Sort activities by published date, most recent first.
- language: string, Specify the preferred language to search with. See search language codes for available values.
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token can be of any length.
- maxResults: integer, The maximum number of activities to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#activityFeed", # Identifies this resource as a collection of activities. Value: "plus#activityFeed".
- "title": "A String", # The title of this collection of activities.
- "items": [ # The activities in this page of results.
- {
- "placeName": "A String", # Name of the place where this activity occurred.
- "kind": "plus#activity", # Identifies this resource as an activity. Value: "plus#activity".
- "updated": "A String", # The time at which this activity was last updated. Formatted as an RFC 3339 timestamp.
- "provider": { # The service provider that initially published this activity.
- "title": "A String", # Name of the service provider.
- },
- "title": "A String", # Title of this activity.
- "url": "A String", # The link to this activity.
- "geocode": "A String", # Latitude and longitude where this activity occurred. Format is latitude followed by longitude, space separated.
- "object": { # The object of this activity.
- "resharers": { # People who reshared this activity.
- "totalItems": 42, # Total number of people who reshared this activity.
- "selfLink": "A String", # The URL for the collection of resharers.
- },
- "attachments": [ # The media objects attached to this activity.
- {
- "displayName": "A String", # The title of the attachment, such as a photo caption or an article title.
- "thumbnails": [ # If the attachment is an album, this property is a list of potential additional thumbnails from the album.
- {
- "url": "A String", # URL to the webpage containing the image.
- "image": { # Image resource.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "description": "A String", # Potential name of the thumbnail.
- },
- ],
- "fullImage": { # The full image URL for photo attachments.
- "url": "A String", # URL to the image.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "url": "A String", # The link to the attachment, should be of type text/html.
- "image": { # The preview image for photos or videos.
- "url": "A String", # Image url.
- "width": 42, # The width, in pixels, of the linked resource.
- "type": "A String", # Media type of the link.
- "height": 42, # The height, in pixels, of the linked resource.
- },
- "content": "A String", # If the attachment is an article, this property contains a snippet of text from the article. It can also include descriptions for other types.
- "embed": { # If the attachment is a video, the embeddable link.
- "url": "A String", # URL of the link.
- "type": "A String", # Media type of the link.
- },
- "id": "A String", # The ID of the attachment.
- "objectType": "A String", # The type of media object. Possible values include, but are not limited to, the following values:
- # - "photo" - A photo.
- # - "album" - A photo album.
- # - "video" - A video.
- # - "article" - An article, specified by a link.
- },
- ],
- "originalContent": "A String", # The content (text) as provided by the author, which is stored without any HTML formatting. When creating or updating an activity, this value must be supplied as plain text in the request.
- "plusoners": { # People who +1'd this activity.
- "totalItems": 42, # Total number of people who +1'd this activity.
- "selfLink": "A String", # The URL for the collection of people who +1'd this activity.
- },
- "actor": { # If this activity's object is itself another activity, such as when a person reshares an activity, this property specifies the original activity's actor.
- "url": "A String", # A link to the original actor's Google profile.
- "image": { # The image representation of the original actor.
- "url": "A String", # A URL that points to a thumbnail photo of the original actor.
- },
- "displayName": "A String", # The original actor's name, which is suitable for display.
- "id": "A String", # ID of the original actor.
- },
- "content": "A String", # The HTML-formatted content, which is suitable for display.
- "url": "A String", # The URL that points to the linked resource.
- "replies": { # Comments in reply to this activity.
- "totalItems": 42, # Total number of comments on this activity.
- "selfLink": "A String", # The URL for the collection of comments in reply to this activity.
- },
- "id": "A String", # The ID of the object. When resharing an activity, this is the ID of the activity that is being reshared.
- "objectType": "A String", # The type of the object. Possible values include, but are not limited to, the following values:
- # - "note" - Textual content.
- # - "activity" - A Google+ activity.
- },
- "placeId": "A String", # ID of the place where this activity occurred.
- "actor": { # The person who performed this activity.
- "url": "A String", # The link to the actor's Google profile.
- "image": { # The image representation of the actor.
- "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "displayName": "A String", # The name of the actor, suitable for display.
- "id": "A String", # The ID of the actor's person resource.
- "name": { # An object representation of the individual components of name.
- "givenName": "A String", # The given name (first name) of the actor.
- "familyName": "A String", # The family name (last name) of the actor.
- },
- },
- "id": "A String", # The ID of this activity.
- "access": { # Identifies who has access to see this activity.
- "items": [ # The list of access entries.
- {
- "type": "A String", # The type of entry describing to whom access is granted. Possible values are:
- # - "person" - Access to an individual.
- # - "circle" - Access to members of a circle.
- # - "myCircles" - Access to members of all the person's circles.
- # - "extendedCircles" - Access to members of everyone in a person's circles, plus all of the people in their circles.
- # - "domain" - Access to members of the person's Google Apps domain.
- # - "public" - Access to anyone on the web.
- "displayName": "A String", # A descriptive name for this entry. Suitable for display.
- "id": "A String", # The ID of the entry. For entries of type "person" or "circle", this is the ID of the resource. For other types, this property is not set.
- },
- ],
- "kind": "plus#acl", # Identifies this resource as a collection of access controls. Value: "plus#acl".
- "description": "A String", # Description of the access granted, suitable for display.
- },
- "verb": "A String", # This activity's verb, which indicates the action that was performed. Possible values include, but are not limited to, the following values:
- # - "post" - Publish content to the stream.
- # - "share" - Reshare an activity.
- "etag": "A String", # ETag of this response for caching purposes.
- "radius": "A String", # Radius, in meters, of the region where this activity occurred, centered at the latitude and longitude identified in geocode.
- "location": { # The location where this activity occurred.
- "position": { # The position of the place.
- "latitude": 3.14, # The latitude of this position.
- "longitude": 3.14, # The longitude of this position.
- },
- "kind": "plus#place", # Identifies this resource as a place. Value: "plus#place".
- "displayName": "A String", # The display name of the place.
- "address": { # The physical address of the place.
- "formatted": "A String", # The formatted address for display.
- },
- },
- "address": "A String", # Street address where this activity occurred.
- "crosspostSource": "A String", # If this activity is a cross post from another system, this property specifies the ID of the original activity.
- "annotation": "A String", # Additional content added by the person who shared this activity, applicable only when resharing an activity.
- "published": "A String", # The time at which this activity was initially published. Formatted as an RFC 3339 timestamp.
- },
- ],
- "updated": "A String", # The time at which this collection of activities was last updated. Formatted as an RFC 3339 timestamp.
- "nextLink": "A String", # Link to the next page of activities.
- "etag": "A String", # ETag of this response for caching purposes.
- "id": "A String", # The ID of this collection of activities. Deprecated.
- "selfLink": "A String", # Link to this activity resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/plus_v1.comments.html b/docs/dyn/plus_v1.comments.html
deleted file mode 100644
index 79aa92b..0000000
--- a/docs/dyn/plus_v1.comments.html
+++ /dev/null
@@ -1,208 +0,0 @@
-
-
-
-
Get a comment.
-
-Args:
- commentId: string, The ID of the comment to get. (required)
-
-Returns:
- An object of the form:
-
- {
- "inReplyTo": [ # The activity this comment replied to.
- {
- "url": "A String", # The URL of the activity.
- "id": "A String", # The ID of the activity.
- },
- ],
- "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment".
- "plusoners": { # People who +1'd this comment.
- "totalItems": 42, # Total number of people who +1'd this comment.
- },
- "object": { # The object of this comment.
- "content": "A String", # The HTML-formatted content, suitable for display.
- "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request.
- "objectType": "comment", # The object type of this comment. Possible values are:
- # - "comment" - A comment in reply to an activity.
- },
- "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp.
- "actor": { # The person who posted this comment.
- "url": "A String", # A link to the person resource for this actor.
- "image": { # The image representation of this actor.
- "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "displayName": "A String", # The name of this actor, suitable for display.
- "id": "A String", # The ID of the actor.
- },
- "verb": "post", # This comment's verb, indicating what action was performed. Possible values are:
- # - "post" - Publish content to the stream.
- "etag": "A String", # ETag of this response for caching purposes.
- "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp.
- "id": "A String", # The ID of this comment.
- "selfLink": "A String", # Link to this comment resource.
- }
List all of the comments for an activity.
-
-Args:
- activityId: string, The ID of the activity to get comments for. (required)
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of comments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
- sortOrder: string, The order in which to sort the list of comments.
- Allowed values
- ascending - Sort oldest comments first.
- descending - Sort newest comments first.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#commentFeed", # Identifies this resource as a collection of comments. Value: "plus#commentFeed".
- "title": "A String", # The title of this collection of comments.
- "items": [ # The comments in this page of results.
- {
- "inReplyTo": [ # The activity this comment replied to.
- {
- "url": "A String", # The URL of the activity.
- "id": "A String", # The ID of the activity.
- },
- ],
- "kind": "plus#comment", # Identifies this resource as a comment. Value: "plus#comment".
- "plusoners": { # People who +1'd this comment.
- "totalItems": 42, # Total number of people who +1'd this comment.
- },
- "object": { # The object of this comment.
- "content": "A String", # The HTML-formatted content, suitable for display.
- "originalContent": "A String", # The content (text) as provided by the author, stored without any HTML formatting. When creating or updating a comment, this value must be supplied as plain text in the request.
- "objectType": "comment", # The object type of this comment. Possible values are:
- # - "comment" - A comment in reply to an activity.
- },
- "updated": "A String", # The time at which this comment was last updated. Formatted as an RFC 3339 timestamp.
- "actor": { # The person who posted this comment.
- "url": "A String", # A link to the person resource for this actor.
- "image": { # The image representation of this actor.
- "url": "A String", # The URL of the actor's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "displayName": "A String", # The name of this actor, suitable for display.
- "id": "A String", # The ID of the actor.
- },
- "verb": "post", # This comment's verb, indicating what action was performed. Possible values are:
- # - "post" - Publish content to the stream.
- "etag": "A String", # ETag of this response for caching purposes.
- "published": "A String", # The time at which this comment was initially published. Formatted as an RFC 3339 timestamp.
- "id": "A String", # The ID of this comment.
- "selfLink": "A String", # Link to this comment resource.
- },
- ],
- "updated": "A String", # The time at which this collection of comments was last updated. Formatted as an RFC 3339 timestamp.
- "nextLink": "A String", # Link to the next page of activities.
- "etag": "A String", # ETag of this response for caching purposes.
- "id": "A String", # The ID of this collection of comments.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/plus_v1.html b/docs/dyn/plus_v1.html
deleted file mode 100644
index 6a3ff6d..0000000
--- a/docs/dyn/plus_v1.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Record a moment representing a user's activity such as making a purchase or commenting on a blog.
-
-Args:
- userId: string, The ID of the user to record activities for. The only valid values are "me" and the ID of the authenticated user. (required)
- collection: string, The collection to which to write moments. (required)
- Allowed values
- vault - The default collection for writing new moments.
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "startDate": "A String", # Time stamp of when the action occurred in RFC3339 format.
- "kind": "plus#moment", # Identifies this resource as a moment.
- "target": { # The object on which the action was performed.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "result": { # The object generated by performing the action on the target. For example, a user writes a review of a restaurant, the target is the restaurant and the result is the review.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "type": "A String", # The Google schema for the type of moment to write. For example, http://schemas.google.com/AddActivity.
- "id": "A String", # The moment ID.
- }
-
- debug: boolean, Return the moment as written. Should be used only for debugging.
-
-Returns:
- An object of the form:
-
- {
- "startDate": "A String", # Time stamp of when the action occurred in RFC3339 format.
- "kind": "plus#moment", # Identifies this resource as a moment.
- "target": { # The object on which the action was performed.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "result": { # The object generated by performing the action on the target. For example, a user writes a review of a restaurant, the target is the restaurant and the result is the review.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "type": "A String", # The Google schema for the type of moment to write. For example, http://schemas.google.com/AddActivity.
- "id": "A String", # The moment ID.
- }
List all of the moments for a particular user.
-
-Args:
- userId: string, The ID of the user to get moments for. The special value "me" can be used to indicate the authenticated user. (required)
- collection: string, The collection of moments to list. (required)
- Allowed values
- vault - All moments created by the requesting application for the authenticated user.
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of moments to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
- targetUrl: string, Only moments containing this targetUrl will be returned.
- type: string, Only moments of this type will be returned.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#momentsFeed", # Identifies this resource as a collection of moments. Value: "plus#momentsFeed".
- "title": "A String", # The title of this collection of moments.
- "items": [ # The moments in this page of results.
- {
- "startDate": "A String", # Time stamp of when the action occurred in RFC3339 format.
- "kind": "plus#moment", # Identifies this resource as a moment.
- "target": { # The object on which the action was performed.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "result": { # The object generated by performing the action on the target. For example, a user writes a review of a restaurant, the target is the restaurant and the result is the review.
- "startDate": "A String", # The start date and time of the event (in ISO 8601 date format).
- "endDate": "A String", # The end date and time of the event (in ISO 8601 date format).
- "text": "A String", # The text that is the result of the app activity. For example, if a user leaves a review of a restaurant, this might be the text of the review.
- "image": "A String", # A URL to the image that represents this result. For example, if a user writes a review of a restaurant and attaches a photo of their meal, you might use that photo as the result.image.
- "address": # Object with schema name: ItemScope # Postal address.
- "birthDate": "A String", # Date of birth.
- "datePublished": "A String", # The initial date that the result was published. For example, a user writes a comment on a blog, which has a result.dateCreated of when they submit it. If the blog users comment moderation, the result.datePublished value would match the date when the owner approved the message.
- "addressLocality": "A String", # Address locality.
- "duration": "A String", # The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.
- "additionalName": [ # An additional name for a Person, can be used for a middle name.
- "A String",
- ],
- "worstRating": "A String", # Worst possible rating value that a result might obtain. This property defines the lower bound for the ratingValue.
- "contributor": [ # A list of contributors to this result.
- # Object with schema name: ItemScope
- ],
- "thumbnailUrl": "A String", # A URL to a thumbnail image that represents this result.
- "id": "A String", # An identifier for the target. Your app can choose how to identify targets. The target.id is required if you are writing an activity that does not have a corresponding web page or target.url property.
- "postOfficeBoxNumber": "A String", # Post office box number.
- "attendees": [ # A person attending the event.
- # Object with schema name: ItemScope
- ],
- "author": [ # The person or persons who created this result. In the example of restaurant reviews, this might be the reviewer's name.
- # Object with schema name: ItemScope
- ],
- "associated_media": [ # The encoding.
- # Object with schema name: ItemScope
- ],
- "bestRating": "A String", # Best possible rating value that a result might obtain. This property defines the upper bound for the ratingValue. For example, you might have a 5 star rating scale, you would provide 5 as the value for this property.
- "addressCountry": "A String", # Address country.
- "width": "A String", # The width of the media object.
- "streetAddress": "A String", # Street address.
- "location": # Object with schema name: ItemScope # The location of the event or organization.
- "latitude": 3.14, # Latitude.
- "byArtist": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the artist that performed this recording.
- "type": "A String", # The schema.org URL that best describes the referenced target and matches the type of moment.
- "dateModified": "A String", # The date the result was last modified such as the date that a review was last edited.
- "contentSize": "A String", # File size in (mega/kilo) bytes.
- "contentUrl": "A String", # Actual bytes of the media object, for example the image file or video file.
- "partOfTVSeries": # Object with schema name: ItemScope # Property of http://schema.org/TVEpisode indicating which series the episode belongs to.
- "description": "A String", # The string that describes the content of the result.
- "familyName": "A String", # Family name. This property can be used with givenName instead of the name property.
- "kind": "plus#itemScope", # Identifies this resource as an itemScope.
- "dateCreated": "A String", # The date the result was created such as the date that a review was first created.
- "postalCode": "A String", # Postal code.
- "attendeeCount": 42, # Number of attendees.
- "inAlbum": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, which album a song is in.
- "addressRegion": "A String", # Address region.
- "height": "A String", # The height of the media object.
- "geo": # Object with schema name: ItemScope # Geo coordinates.
- "embedUrl": "A String", # A URL pointing to a player for a specific video. In general, this is the information in the src element of an embed tag and should not be the same as the content of the loc tag.
- "tickerSymbol": "A String", # The exchange traded instrument associated with a Corporation object. The tickerSymbol is expressed as an exchange and an instrument name separated by a space character. For the exchange component of the tickerSymbol attribute, we reccommend using the controlled vocaulary of Market Identifier Codes (MIC) specified in ISO15022.
- "playerType": "A String", # Player type that is required. For example: Flash or Silverlight.
- "about": # Object with schema name: ItemScope # The subject matter of the content.
- "givenName": "A String", # Given name. This property can be used with familyName instead of the name property.
- "name": "A String", # The name of the result. In the example of a restaurant review, this might be the summary the user gave their review such as "Great ambiance, but overpriced."
- "performers": [ # The main performer or performers of the event-for example, a presenter, musician, or actor.
- # Object with schema name: ItemScope
- ],
- "url": "A String", # The URL that points to the result object. For example, a permalink directly to a restaurant reviewer's comment.
- "gender": "A String", # Gender of the person.
- "longitude": 3.14, # Longitude.
- "thumbnail": # Object with schema name: ItemScope # Thumbnail image for an image or video.
- "caption": "A String", # The caption for this object.
- "ratingValue": "A String", # Rating value.
- "reviewRating": # Object with schema name: ItemScope # Review rating.
- "audio": # Object with schema name: ItemScope # From http://schema.org/MusicRecording, the audio file.
- },
- "type": "A String", # The Google schema for the type of moment to write. For example, http://schemas.google.com/AddActivity.
- "id": "A String", # The moment ID.
- },
- ],
- "updated": "A String", # The RFC 339 timestamp for when this collection of moments was last updated.
- "nextLink": "A String", # Link to the next page of moments.
- "etag": "A String", # ETag of this response for caching purposes.
- "selfLink": "A String", # Link to this page of moments.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- remove(id)
-
Delete a moment.
-
-Args:
- id: string, The ID of the moment to delete. (required)
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/plus_v1.people.html b/docs/dyn/plus_v1.people.html
deleted file mode 100644
index b0f05b6..0000000
--- a/docs/dyn/plus_v1.people.html
+++ /dev/null
@@ -1,617 +0,0 @@
-
-
-
-
Get a person's profile. If your app uses scope https://www.googleapis.com/auth/plus.login, this method is guaranteed to return ageRange and language.
-
-Args:
- userId: string, The ID of the person to get the profile for. The special value "me" can be used to indicate the authenticated user. (required)
-
-Returns:
- An object of the form:
-
- {
- "braggingRights": "A String", # The "bragging rights" line of this person.
- "image": { # The representation of the person's profile photo.
- "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "id": "A String", # The ID of this person.
- "objectType": "A String", # Type of person within Google+. Possible values include, but are not limited to, the following values:
- # - "person" - represents an actual person.
- # - "page" - represents a page.
- "verified": True or False, # Whether the person or Google+ Page has been verified.
- "tagline": "A String", # The brief description (tagline) of this person.
- "etag": "A String", # ETag of this response for caching purposes.
- "circledByCount": 42, # If a Google+ Page and for followers who are visible, the number of people who have added this page to a circle.
- "aboutMe": "A String", # A short biography for this person.
- "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
- "placesLived": [ # A list of places where this person has lived.
- {
- "primary": True or False, # If "true", this place of residence is this person's primary residence.
- "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
- },
- ],
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "nickname": "A String", # The nickname of this person.
- "currentLocation": "A String", # The current location for this person.
- "organizations": [ # A list of current or past organizations with which this person is associated.
- {
- "startDate": "A String", # The date that the person joined this organization.
- "endDate": "A String", # The date that the person left this organization.
- "description": "A String", # A short description of the person's role in this organization. Deprecated.
- "title": "A String", # The person's job title or role within the organization.
- "primary": True or False, # If "true", indicates this organization is the person's primary one, which is typically interpreted as the current one.
- "location": "A String", # The location of this organization. Deprecated.
- "department": "A String", # The department within the organization. Deprecated.
- "type": "A String", # The type of organization. Possible values include, but are not limited to, the following values:
- # - "work" - Work.
- # - "school" - School.
- "name": "A String", # The name of the organization.
- },
- ],
- "relationshipStatus": "A String", # The person's relationship status. Possible values include, but are not limited to, the following values:
- # - "single" - Person is single.
- # - "in_a_relationship" - Person is in a relationship.
- # - "engaged" - Person is engaged.
- # - "married" - Person is married.
- # - "its_complicated" - The relationship is complicated.
- # - "open_relationship" - Person is in an open relationship.
- # - "widowed" - Person is widowed.
- # - "in_domestic_partnership" - Person is in a domestic partnership.
- # - "in_civil_union" - Person is in a civil union.
- "displayName": "A String", # The name of this person, which is suitable for display.
- "name": { # An object representation of the individual components of a person's name.
- "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
- "middleName": "A String", # The middle name of this person.
- "familyName": "A String", # The family name (last name) of this person.
- "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
- "givenName": "A String", # The given name (first name) of this person.
- "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
- },
- "language": "A String", # The user's preferred language for rendering.
- "url": "A String", # The URL of this person's profile.
- "gender": "A String", # The person's gender. Possible values include, but are not limited to, the following values:
- # - "male" - Male gender.
- # - "female" - Female gender.
- # - "other" - Other.
- "cover": { # The cover photo content.
- "layout": "A String", # The layout of the cover art. Possible values include, but are not limited to, the following values:
- # - "banner" - One large image banner.
- "coverInfo": { # Extra information about the cover photo.
- "leftImageOffset": 42, # The difference between the left position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- "topImageOffset": 42, # The difference between the top position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- },
- "coverPhoto": { # The person's primary cover image.
- "url": "A String", # The url to the image.
- "width": 42, # The width to the image.
- "height": 42, # The height to the image.
- },
- },
- "isPlusUser": True or False, # Whether this user has signed up for Google+.
- "plusOneCount": 42, # If a Google+ Page, the number of people who have +1'ed this page.
- "urls": [ # A list of URLs for this person.
- {
- "type": "A String", # The type of URL. Possible values include, but are not limited to, the following values:
- # - "otherProfile" - URL for another profile.
- # - "contributor" - URL to a site for which this person is a contributor.
- # - "website" - URL for this Google+ Page's primary website.
- # - "other" - Other URL.
- "value": "A String", # The URL value.
- "label": "A String", # The label of the URL.
- },
- ],
- "ageRange": { # The age range of the person.
- "max": 42, # The age range's upper bound, if any.
- "min": 42, # The age range's lower bound, if any.
- },
- }
List all of the people in the specified collection.
-
-Args:
- userId: string, Get the collection of people for the person identified. Use "me" to indicate the authenticated user. (required)
- collection: string, The collection of people to list. (required)
- Allowed values
- visible - The list of people who this user has added to one or more circles, limited to the circles visible to the requesting application.
- orderBy: string, The order to return people in.
- Allowed values
- alphabetical - Order the people by their display name.
- best - Order people based on the relevence to the viewer.
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#peopleFeed", # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
- "title": "A String", # The title of this collection of people.
- "items": [ # The people in this page of results. Each item includes the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.
- {
- "braggingRights": "A String", # The "bragging rights" line of this person.
- "image": { # The representation of the person's profile photo.
- "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "id": "A String", # The ID of this person.
- "objectType": "A String", # Type of person within Google+. Possible values include, but are not limited to, the following values:
- # - "person" - represents an actual person.
- # - "page" - represents a page.
- "verified": True or False, # Whether the person or Google+ Page has been verified.
- "tagline": "A String", # The brief description (tagline) of this person.
- "etag": "A String", # ETag of this response for caching purposes.
- "circledByCount": 42, # If a Google+ Page and for followers who are visible, the number of people who have added this page to a circle.
- "aboutMe": "A String", # A short biography for this person.
- "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
- "placesLived": [ # A list of places where this person has lived.
- {
- "primary": True or False, # If "true", this place of residence is this person's primary residence.
- "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
- },
- ],
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "nickname": "A String", # The nickname of this person.
- "currentLocation": "A String", # The current location for this person.
- "organizations": [ # A list of current or past organizations with which this person is associated.
- {
- "startDate": "A String", # The date that the person joined this organization.
- "endDate": "A String", # The date that the person left this organization.
- "description": "A String", # A short description of the person's role in this organization. Deprecated.
- "title": "A String", # The person's job title or role within the organization.
- "primary": True or False, # If "true", indicates this organization is the person's primary one, which is typically interpreted as the current one.
- "location": "A String", # The location of this organization. Deprecated.
- "department": "A String", # The department within the organization. Deprecated.
- "type": "A String", # The type of organization. Possible values include, but are not limited to, the following values:
- # - "work" - Work.
- # - "school" - School.
- "name": "A String", # The name of the organization.
- },
- ],
- "relationshipStatus": "A String", # The person's relationship status. Possible values include, but are not limited to, the following values:
- # - "single" - Person is single.
- # - "in_a_relationship" - Person is in a relationship.
- # - "engaged" - Person is engaged.
- # - "married" - Person is married.
- # - "its_complicated" - The relationship is complicated.
- # - "open_relationship" - Person is in an open relationship.
- # - "widowed" - Person is widowed.
- # - "in_domestic_partnership" - Person is in a domestic partnership.
- # - "in_civil_union" - Person is in a civil union.
- "displayName": "A String", # The name of this person, which is suitable for display.
- "name": { # An object representation of the individual components of a person's name.
- "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
- "middleName": "A String", # The middle name of this person.
- "familyName": "A String", # The family name (last name) of this person.
- "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
- "givenName": "A String", # The given name (first name) of this person.
- "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
- },
- "language": "A String", # The user's preferred language for rendering.
- "url": "A String", # The URL of this person's profile.
- "gender": "A String", # The person's gender. Possible values include, but are not limited to, the following values:
- # - "male" - Male gender.
- # - "female" - Female gender.
- # - "other" - Other.
- "cover": { # The cover photo content.
- "layout": "A String", # The layout of the cover art. Possible values include, but are not limited to, the following values:
- # - "banner" - One large image banner.
- "coverInfo": { # Extra information about the cover photo.
- "leftImageOffset": 42, # The difference between the left position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- "topImageOffset": 42, # The difference between the top position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- },
- "coverPhoto": { # The person's primary cover image.
- "url": "A String", # The url to the image.
- "width": 42, # The width to the image.
- "height": 42, # The height to the image.
- },
- },
- "isPlusUser": True or False, # Whether this user has signed up for Google+.
- "plusOneCount": 42, # If a Google+ Page, the number of people who have +1'ed this page.
- "urls": [ # A list of URLs for this person.
- {
- "type": "A String", # The type of URL. Possible values include, but are not limited to, the following values:
- # - "otherProfile" - URL for another profile.
- # - "contributor" - URL to a site for which this person is a contributor.
- # - "website" - URL for this Google+ Page's primary website.
- # - "other" - Other URL.
- "value": "A String", # The URL value.
- "label": "A String", # The label of the URL.
- },
- ],
- "ageRange": { # The age range of the person.
- "max": 42, # The age range's upper bound, if any.
- "min": 42, # The age range's lower bound, if any.
- },
- },
- ],
- "etag": "A String", # ETag of this response for caching purposes.
- "totalItems": 42, # The total number of people available in this list. The number of people in a response might be smaller due to paging. This might not be set for all collections.
- "selfLink": "A String", # Link to this resource.
- }
List all of the people in the specified collection for a particular activity.
-
-Args:
- activityId: string, The ID of the activity to get the list of people for. (required)
- collection: string, The collection of people to list. (required)
- Allowed values
- plusoners - List all people who have +1'd this activity.
- resharers - List all people who have reshared this activity.
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response.
- maxResults: integer, The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#peopleFeed", # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
- "title": "A String", # The title of this collection of people.
- "items": [ # The people in this page of results. Each item includes the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.
- {
- "braggingRights": "A String", # The "bragging rights" line of this person.
- "image": { # The representation of the person's profile photo.
- "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "id": "A String", # The ID of this person.
- "objectType": "A String", # Type of person within Google+. Possible values include, but are not limited to, the following values:
- # - "person" - represents an actual person.
- # - "page" - represents a page.
- "verified": True or False, # Whether the person or Google+ Page has been verified.
- "tagline": "A String", # The brief description (tagline) of this person.
- "etag": "A String", # ETag of this response for caching purposes.
- "circledByCount": 42, # If a Google+ Page and for followers who are visible, the number of people who have added this page to a circle.
- "aboutMe": "A String", # A short biography for this person.
- "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
- "placesLived": [ # A list of places where this person has lived.
- {
- "primary": True or False, # If "true", this place of residence is this person's primary residence.
- "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
- },
- ],
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "nickname": "A String", # The nickname of this person.
- "currentLocation": "A String", # The current location for this person.
- "organizations": [ # A list of current or past organizations with which this person is associated.
- {
- "startDate": "A String", # The date that the person joined this organization.
- "endDate": "A String", # The date that the person left this organization.
- "description": "A String", # A short description of the person's role in this organization. Deprecated.
- "title": "A String", # The person's job title or role within the organization.
- "primary": True or False, # If "true", indicates this organization is the person's primary one, which is typically interpreted as the current one.
- "location": "A String", # The location of this organization. Deprecated.
- "department": "A String", # The department within the organization. Deprecated.
- "type": "A String", # The type of organization. Possible values include, but are not limited to, the following values:
- # - "work" - Work.
- # - "school" - School.
- "name": "A String", # The name of the organization.
- },
- ],
- "relationshipStatus": "A String", # The person's relationship status. Possible values include, but are not limited to, the following values:
- # - "single" - Person is single.
- # - "in_a_relationship" - Person is in a relationship.
- # - "engaged" - Person is engaged.
- # - "married" - Person is married.
- # - "its_complicated" - The relationship is complicated.
- # - "open_relationship" - Person is in an open relationship.
- # - "widowed" - Person is widowed.
- # - "in_domestic_partnership" - Person is in a domestic partnership.
- # - "in_civil_union" - Person is in a civil union.
- "displayName": "A String", # The name of this person, which is suitable for display.
- "name": { # An object representation of the individual components of a person's name.
- "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
- "middleName": "A String", # The middle name of this person.
- "familyName": "A String", # The family name (last name) of this person.
- "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
- "givenName": "A String", # The given name (first name) of this person.
- "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
- },
- "language": "A String", # The user's preferred language for rendering.
- "url": "A String", # The URL of this person's profile.
- "gender": "A String", # The person's gender. Possible values include, but are not limited to, the following values:
- # - "male" - Male gender.
- # - "female" - Female gender.
- # - "other" - Other.
- "cover": { # The cover photo content.
- "layout": "A String", # The layout of the cover art. Possible values include, but are not limited to, the following values:
- # - "banner" - One large image banner.
- "coverInfo": { # Extra information about the cover photo.
- "leftImageOffset": 42, # The difference between the left position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- "topImageOffset": 42, # The difference between the top position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- },
- "coverPhoto": { # The person's primary cover image.
- "url": "A String", # The url to the image.
- "width": 42, # The width to the image.
- "height": 42, # The height to the image.
- },
- },
- "isPlusUser": True or False, # Whether this user has signed up for Google+.
- "plusOneCount": 42, # If a Google+ Page, the number of people who have +1'ed this page.
- "urls": [ # A list of URLs for this person.
- {
- "type": "A String", # The type of URL. Possible values include, but are not limited to, the following values:
- # - "otherProfile" - URL for another profile.
- # - "contributor" - URL to a site for which this person is a contributor.
- # - "website" - URL for this Google+ Page's primary website.
- # - "other" - Other URL.
- "value": "A String", # The URL value.
- "label": "A String", # The label of the URL.
- },
- ],
- "ageRange": { # The age range of the person.
- "max": 42, # The age range's upper bound, if any.
- "min": 42, # The age range's lower bound, if any.
- },
- },
- ],
- "etag": "A String", # ETag of this response for caching purposes.
- "totalItems": 42, # The total number of people available in this list. The number of people in a response might be smaller due to paging. This might not be set for all collections.
- "selfLink": "A String", # Link to this resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Search all public profiles.
-
-Args:
- query: string, Specify a query string for full text search of public text in all profiles. (required)
- pageToken: string, The continuation token, which is used to page through large result sets. To get the next page of results, set this parameter to the value of "nextPageToken" from the previous response. This token can be of any length.
- language: string, Specify the preferred language to search with. See search language codes for available values.
- maxResults: integer, The maximum number of people to include in the response, which is used for paging. For any response, the actual number returned might be less than the specified maxResults.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # The continuation token, which is used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "plus#peopleFeed", # Identifies this resource as a collection of people. Value: "plus#peopleFeed".
- "title": "A String", # The title of this collection of people.
- "items": [ # The people in this page of results. Each item includes the id, displayName, image, and url for the person. To retrieve additional profile data, see the people.get method.
- {
- "braggingRights": "A String", # The "bragging rights" line of this person.
- "image": { # The representation of the person's profile photo.
- "url": "A String", # The URL of the person's profile photo. To re-size the image and crop it to a square, append the query string ?sz=x, where x is the dimension in pixels of each side.
- },
- "id": "A String", # The ID of this person.
- "objectType": "A String", # Type of person within Google+. Possible values include, but are not limited to, the following values:
- # - "person" - represents an actual person.
- # - "page" - represents a page.
- "verified": True or False, # Whether the person or Google+ Page has been verified.
- "tagline": "A String", # The brief description (tagline) of this person.
- "etag": "A String", # ETag of this response for caching purposes.
- "circledByCount": 42, # If a Google+ Page and for followers who are visible, the number of people who have added this page to a circle.
- "aboutMe": "A String", # A short biography for this person.
- "kind": "plus#person", # Identifies this resource as a person. Value: "plus#person".
- "placesLived": [ # A list of places where this person has lived.
- {
- "primary": True or False, # If "true", this place of residence is this person's primary residence.
- "value": "A String", # A place where this person has lived. For example: "Seattle, WA", "Near Toronto".
- },
- ],
- "birthday": "A String", # The person's date of birth, represented as YYYY-MM-DD.
- "nickname": "A String", # The nickname of this person.
- "currentLocation": "A String", # The current location for this person.
- "organizations": [ # A list of current or past organizations with which this person is associated.
- {
- "startDate": "A String", # The date that the person joined this organization.
- "endDate": "A String", # The date that the person left this organization.
- "description": "A String", # A short description of the person's role in this organization. Deprecated.
- "title": "A String", # The person's job title or role within the organization.
- "primary": True or False, # If "true", indicates this organization is the person's primary one, which is typically interpreted as the current one.
- "location": "A String", # The location of this organization. Deprecated.
- "department": "A String", # The department within the organization. Deprecated.
- "type": "A String", # The type of organization. Possible values include, but are not limited to, the following values:
- # - "work" - Work.
- # - "school" - School.
- "name": "A String", # The name of the organization.
- },
- ],
- "relationshipStatus": "A String", # The person's relationship status. Possible values include, but are not limited to, the following values:
- # - "single" - Person is single.
- # - "in_a_relationship" - Person is in a relationship.
- # - "engaged" - Person is engaged.
- # - "married" - Person is married.
- # - "its_complicated" - The relationship is complicated.
- # - "open_relationship" - Person is in an open relationship.
- # - "widowed" - Person is widowed.
- # - "in_domestic_partnership" - Person is in a domestic partnership.
- # - "in_civil_union" - Person is in a civil union.
- "displayName": "A String", # The name of this person, which is suitable for display.
- "name": { # An object representation of the individual components of a person's name.
- "honorificPrefix": "A String", # The honorific prefixes (such as "Dr." or "Mrs.") for this person.
- "middleName": "A String", # The middle name of this person.
- "familyName": "A String", # The family name (last name) of this person.
- "formatted": "A String", # The full name of this person, including middle names, suffixes, etc.
- "givenName": "A String", # The given name (first name) of this person.
- "honorificSuffix": "A String", # The honorific suffixes (such as "Jr.") for this person.
- },
- "language": "A String", # The user's preferred language for rendering.
- "url": "A String", # The URL of this person's profile.
- "gender": "A String", # The person's gender. Possible values include, but are not limited to, the following values:
- # - "male" - Male gender.
- # - "female" - Female gender.
- # - "other" - Other.
- "cover": { # The cover photo content.
- "layout": "A String", # The layout of the cover art. Possible values include, but are not limited to, the following values:
- # - "banner" - One large image banner.
- "coverInfo": { # Extra information about the cover photo.
- "leftImageOffset": 42, # The difference between the left position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- "topImageOffset": 42, # The difference between the top position of the image cover and the actual displayed cover image. Only valid for BANNER layout.
- },
- "coverPhoto": { # The person's primary cover image.
- "url": "A String", # The url to the image.
- "width": 42, # The width to the image.
- "height": 42, # The height to the image.
- },
- },
- "isPlusUser": True or False, # Whether this user has signed up for Google+.
- "plusOneCount": 42, # If a Google+ Page, the number of people who have +1'ed this page.
- "urls": [ # A list of URLs for this person.
- {
- "type": "A String", # The type of URL. Possible values include, but are not limited to, the following values:
- # - "otherProfile" - URL for another profile.
- # - "contributor" - URL to a site for which this person is a contributor.
- # - "website" - URL for this Google+ Page's primary website.
- # - "other" - Other URL.
- "value": "A String", # The URL value.
- "label": "A String", # The label of the URL.
- },
- ],
- "ageRange": { # The age range of the person.
- "max": 42, # The age range's upper bound, if any.
- "min": 42, # The age range's lower bound, if any.
- },
- },
- ],
- "etag": "A String", # ETag of this response for caching purposes.
- "totalItems": 42, # The total number of people available in this list. The number of people in a response might be smaller due to paging. This might not be set for all collections.
- "selfLink": "A String", # Link to this resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/prediction_v1_5.hostedmodels.html b/docs/dyn/prediction_v1_5.hostedmodels.html
deleted file mode 100644
index 6fedb91..0000000
--- a/docs/dyn/prediction_v1_5.hostedmodels.html
+++ /dev/null
@@ -1,117 +0,0 @@
-
-
-
-
Submit input and request an output against a hosted model.
-
Method Details
-
- predict(hostedModelName, body)
-
Submit input and request an output against a hosted model.
-
-Args:
- hostedModelName: string, The name of a hosted model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "input": { # Input to the model for a prediction
- "csvInstance": [ # A list of input features, these can be strings or doubles.
- "",
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#output", # What kind of resource this is.
- "outputLabel": "A String", # The most likely class label [Categorical models only].
- "id": "A String", # The unique name for the predictive model.
- "outputMulti": [ # A list of class labels with their estimated probabilities [Categorical models only].
- {
- "score": 3.14, # The probability of the class label.
- "label": "A String", # The class label.
- },
- ],
- "outputValue": 3.14, # The estimated regression value [Regression models only].
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/prediction_v1_5.html b/docs/dyn/prediction_v1_5.html
deleted file mode 100644
index dca9e48..0000000
--- a/docs/dyn/prediction_v1_5.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Get analysis of the model and the data the model was trained on.
-
-Args:
- id: string, The unique name for the predictive model. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#analyze", # What kind of resource this is.
- "errors": [ # List of errors with the data.
- {
- "a_key": "A String", # Error level followed by a detailed error message.
- },
- ],
- "dataDescription": { # Description of the data the model was trained on.
- "outputFeature": { # Description of the output value or label.
- "text": [ # Description of the output labels in the data set.
- {
- "count": "A String", # Number of times the output label occurred in the data set.
- "value": "A String", # The output label.
- },
- ],
- "numeric": { # Description of the output values in the data set.
- "count": "A String", # Number of numeric output values in the data set.
- "variance": 3.14, # Variance of the output values in the data set.
- "mean": 3.14, # Mean of the output values in the data set.
- },
- },
- "features": [ # Description of the input features in the data set.
- {
- "index": "A String", # The feature index.
- "text": { # Description of multiple-word text values of this feature.
- "count": "A String", # Number of multiple-word text values for this feature.
- },
- "numeric": { # Description of the numeric values of this feature.
- "count": "A String", # Number of numeric values for this feature in the data set.
- "variance": 3.14, # Variance of the numeric values of this feature in the data set.
- "mean": 3.14, # Mean of the numeric values of this feature in the data set.
- },
- "categorical": { # Description of the categorical values of this feature.
- "count": "A String", # Number of categorical values for this feature in the data.
- "values": [ # List of all the categories for this feature in the data set.
- {
- "count": "A String", # Number of times this feature had this value.
- "value": "A String", # The category name.
- },
- ],
- },
- },
- ],
- },
- "modelDescription": { # Description of the model.
- "confusionMatrixRowTotals": { # A list of the confusion matrix row totals
- "a_key": 3.14,
- },
- "confusionMatrix": { # An output confusion matrix. This shows an estimate for how this model will do in predictions. This is first indexed by the true class label. For each true class label, this provides a pair {predicted_label, count}, where count is the estimated number of times the model will predict the predicted label given the true label. Will not output if more then 100 classes [Categorical models only].
- "a_key": {
- "a_key": 3.14,
- },
- },
- "modelinfo": { # Basic information about the model.
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- },
- },
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
- delete(id)
-
Delete a trained model.
-
-Args:
- id: string, The unique name for the predictive model. (required)
-
-
-
-
- get(id)
-
Check training status of your model.
-
-Args:
- id: string, The unique name for the predictive model. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- }
-
-
-
- insert(body)
-
Begin training your model.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
List available models.
-
-Args:
- pageToken: string, Pagination token
- maxResults: integer, Maximum number of results to return
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
- "items": [ # List of models.
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- },
- ],
- "kind": "prediction#list", # What kind of resource this is.
- "selfLink": "A String", # A URL to re-request this resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- predict(id, body)
-
Submit model id and request a prediction.
-
-Args:
- id: string, The unique name for the predictive model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "input": { # Input to the model for a prediction
- "csvInstance": [ # A list of input features, these can be strings or doubles.
- "",
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#output", # What kind of resource this is.
- "outputLabel": "A String", # The most likely class label [Categorical models only].
- "id": "A String", # The unique name for the predictive model.
- "outputMulti": [ # A list of class labels with their estimated probabilities [Categorical models only].
- {
- "score": 3.14, # The probability of the class label.
- "label": "A String", # The class label.
- },
- ],
- "outputValue": 3.14, # The estimated regression value [Regression models only].
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
- update(id, body)
-
Add new data to a trained model.
-
-Args:
- id: string, The unique name for the predictive model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "output": "A String", # The generic output value - could be regression value or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- "label": "A String", # The class label of this instance
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression)
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model [Categorical models only].
- "meanSquaredError": 3.14, # An estimated mean squared error. The can be used to measure the quality of the predicted model [Regression models only].
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION)
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": 3.14, # Estimated accuracy of model taking utility weights into account [Categorical models only].
- "classificationAccuracy": 3.14, # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data [Categorical models only].
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label
- "csvInstance": [ # The input features for this instance
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified [Categorical models only].
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/prediction_v1_6.hostedmodels.html b/docs/dyn/prediction_v1_6.hostedmodels.html
deleted file mode 100644
index 69e85d1..0000000
--- a/docs/dyn/prediction_v1_6.hostedmodels.html
+++ /dev/null
@@ -1,118 +0,0 @@
-
-
-
-
Submit input and request an output against a hosted model.
-
Method Details
-
- predict(project, hostedModelName, body)
-
Submit input and request an output against a hosted model.
-
-Args:
- project: string, The project associated with the model. (required)
- hostedModelName: string, The name of a hosted model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "input": { # Input to the model for a prediction.
- "csvInstance": [ # A list of input features, these can be strings or doubles.
- "",
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#output", # What kind of resource this is.
- "outputLabel": "A String", # The most likely class label (Categorical models only).
- "id": "A String", # The unique name for the predictive model.
- "outputMulti": [ # A list of class labels with their estimated probabilities (Categorical models only).
- {
- "score": "A String", # The probability of the class label.
- "label": "A String", # The class label.
- },
- ],
- "outputValue": 3.14, # The estimated regression value (Regression models only).
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/prediction_v1_6.html b/docs/dyn/prediction_v1_6.html
deleted file mode 100644
index a6a9760..0000000
--- a/docs/dyn/prediction_v1_6.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Get analysis of the model and the data the model was trained on.
-
-Args:
- project: string, The project associated with the model. (required)
- id: string, The unique name for the predictive model. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#analyze", # What kind of resource this is.
- "errors": [ # List of errors with the data.
- {
- "a_key": "A String", # Error level followed by a detailed error message.
- },
- ],
- "dataDescription": { # Description of the data the model was trained on.
- "outputFeature": { # Description of the output value or label.
- "text": [ # Description of the output labels in the data set.
- {
- "count": "A String", # Number of times the output label occurred in the data set.
- "value": "A String", # The output label.
- },
- ],
- "numeric": { # Description of the output values in the data set.
- "count": "A String", # Number of numeric output values in the data set.
- "variance": "A String", # Variance of the output values in the data set.
- "mean": "A String", # Mean of the output values in the data set.
- },
- },
- "features": [ # Description of the input features in the data set.
- {
- "index": "A String", # The feature index.
- "text": { # Description of multiple-word text values of this feature.
- "count": "A String", # Number of multiple-word text values for this feature.
- },
- "numeric": { # Description of the numeric values of this feature.
- "count": "A String", # Number of numeric values for this feature in the data set.
- "variance": "A String", # Variance of the numeric values of this feature in the data set.
- "mean": "A String", # Mean of the numeric values of this feature in the data set.
- },
- "categorical": { # Description of the categorical values of this feature.
- "count": "A String", # Number of categorical values for this feature in the data.
- "values": [ # List of all the categories for this feature in the data set.
- {
- "count": "A String", # Number of times this feature had this value.
- "value": "A String", # The category name.
- },
- ],
- },
- },
- ],
- },
- "modelDescription": { # Description of the model.
- "confusionMatrixRowTotals": { # A list of the confusion matrix row totals.
- "a_key": "A String",
- },
- "confusionMatrix": { # An output confusion matrix. This shows an estimate for how this model will do in predictions. This is first indexed by the true class label. For each true class label, this provides a pair {predicted_label, count}, where count is the estimated number of times the model will predict the predicted label given the true label. Will not output if more then 100 classes (Categorical models only).
- "a_key": { # Confusion matrix information for the true class label.
- "a_key": "A String", # Average number of times an instance with correct class label modelDescription.confusionMatrix.(key) was wrongfully classified as this label.
- },
- },
- "modelinfo": { # Basic information about the model.
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model (Categorical models only).
- "meanSquaredError": "A String", # An estimated mean squared error. The can be used to measure the quality of the predicted model (Regression models only).
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": "A String", # Estimated accuracy of model taking utility weights into account (Categorical models only).
- "classificationAccuracy": "A String", # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data (Categorical models only).
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- },
- },
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
- delete(project, id)
-
Delete a trained model.
-
-Args:
- project: string, The project associated with the model. (required)
- id: string, The unique name for the predictive model. (required)
-
-
-
-
- get(project, id)
-
Check training status of your model.
-
-Args:
- project: string, The project associated with the model. (required)
- id: string, The unique name for the predictive model. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model (Categorical models only).
- "meanSquaredError": "A String", # An estimated mean squared error. The can be used to measure the quality of the predicted model (Regression models only).
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": "A String", # Estimated accuracy of model taking utility weights into account (Categorical models only).
- "classificationAccuracy": "A String", # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data (Categorical models only).
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
- insert(project, body)
-
Train a Prediction API model.
-
-Args:
- project: string, The project associated with the model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (classification or regression).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "sourceModel": "A String", # The Id of the model to be copied over.
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "trainingInstances": [ # Instances to train model on.
- {
- "output": "A String", # The generic output value - could be regression or class label.
- "csvInstance": [ # The input features for this instance.
- "",
- ],
- },
- ],
- "id": "A String", # The unique name for the predictive model.
- "utility": [ # A class weighting function, which allows the importance weights for class labels to be specified (Categorical models only).
- { # Class label (string).
- "a_key": 3.14,
- },
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model (Categorical models only).
- "meanSquaredError": "A String", # An estimated mean squared error. The can be used to measure the quality of the predicted model (Regression models only).
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": "A String", # Estimated accuracy of model taking utility weights into account (Categorical models only).
- "classificationAccuracy": "A String", # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data (Categorical models only).
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- }
List available models.
-
-Args:
- project: string, The project associated with the model. (required)
- pageToken: string, Pagination token.
- maxResults: integer, Maximum number of results to return.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Pagination token to fetch the next page, if one exists.
- "items": [ # List of models.
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model (Categorical models only).
- "meanSquaredError": "A String", # An estimated mean squared error. The can be used to measure the quality of the predicted model (Regression models only).
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": "A String", # Estimated accuracy of model taking utility weights into account (Categorical models only).
- "classificationAccuracy": "A String", # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data (Categorical models only).
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- },
- ],
- "kind": "prediction#list", # What kind of resource this is.
- "selfLink": "A String", # A URL to re-request this resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- predict(project, id, body)
-
Submit model id and request a prediction.
-
-Args:
- project: string, The project associated with the model. (required)
- id: string, The unique name for the predictive model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "input": { # Input to the model for a prediction.
- "csvInstance": [ # A list of input features, these can be strings or doubles.
- "",
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#output", # What kind of resource this is.
- "outputLabel": "A String", # The most likely class label (Categorical models only).
- "id": "A String", # The unique name for the predictive model.
- "outputMulti": [ # A list of class labels with their estimated probabilities (Categorical models only).
- {
- "score": "A String", # The probability of the class label.
- "label": "A String", # The class label.
- },
- ],
- "outputValue": 3.14, # The estimated regression value (Regression models only).
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
- update(project, id, body)
-
Add new data to a trained model.
-
-Args:
- project: string, The project associated with the model. (required)
- id: string, The unique name for the predictive model. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "output": "A String", # The generic output value - could be regression or class label.
- "csvInstance": [ # The input features for this instance.
- "",
- ],
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "prediction#training", # What kind of resource this is.
- "created": "A String", # Insert time of the model (as a RFC 3339 timestamp).
- "trainingComplete": "A String", # Training completion time (as a RFC 3339 timestamp).
- "storageDataLocation": "A String", # Google storage location of the training data file.
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "storagePMMLModelLocation": "A String", # Google storage location of the pmml model file.
- "trainingStatus": "A String", # The current status of the training job. This can be one of following: RUNNING; DONE; ERROR; ERROR: TRAINING JOB NOT FOUND
- "modelInfo": { # Model metadata.
- "numberLabels": "A String", # Number of class labels in the trained model (Categorical models only).
- "meanSquaredError": "A String", # An estimated mean squared error. The can be used to measure the quality of the predicted model (Regression models only).
- "modelType": "A String", # Type of predictive model (CLASSIFICATION or REGRESSION).
- "numberInstances": "A String", # Number of valid data instances used in the trained model.
- "classWeightedAccuracy": "A String", # Estimated accuracy of model taking utility weights into account (Categorical models only).
- "classificationAccuracy": "A String", # A number between 0.0 and 1.0, where 1.0 is 100% accurate. This is an estimate, based on the amount and quality of the training data, of the estimated prediction accuracy. You can use this is a guide to decide whether the results are accurate enough for your needs. This estimate will be more reliable if your real input data is similar to your training data (Categorical models only).
- },
- "storagePMMLLocation": "A String", # Google storage location of the preprocessing pmml file.
- "id": "A String", # The unique name for the predictive model.
- "selfLink": "A String", # A URL to re-request this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/reseller_v1.customers.html b/docs/dyn/reseller_v1.customers.html
deleted file mode 100644
index 8f9e31e..0000000
--- a/docs/dyn/reseller_v1.customers.html
+++ /dev/null
@@ -1,290 +0,0 @@
-
-
-
-
Update a customer resource if one it exists and is owned by the reseller.
-
Method Details
-
- get(customerId)
-
Gets a customer resource if one exists and is owned by the reseller.
-
-Args:
- customerId: string, Id of the Customer (required)
-
-Returns:
- An object of the form:
-
- { # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-
- insert(body, customerAuthToken=None)
-
Creates a customer resource if one does not already exist.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
- customerAuthToken: string, An auth token needed for inserting a customer for which domain already exists. Can be generated at https://www.google.com/a/cpanel//TransferToken. Optional.
-
-Returns:
- An object of the form:
-
- { # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-
- patch(customerId, body)
-
Update a customer resource if one it exists and is owned by the reseller. This method supports patch semantics.
-
-Args:
- customerId: string, Id of the Customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-
- update(customerId, body)
-
Update a customer resource if one it exists and is owned by the reseller.
-
-Args:
- customerId: string, Id of the Customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for a customer.
- "customerDomain": "A String", # The domain name of the customer.
- "alternateEmail": "A String", # The alternate email of the customer.
- "kind": "reseller#customer", # Identifies the resource as a customer.
- "resourceUiUrl": "A String", # Ui url for customer resource.
- "phoneNumber": "A String", # The phone number of the customer.
- "postalAddress": { # JSON template for address of a customer. # The postal address of the customer.
- "kind": "customers#address", # Identifies the resource as a customer address.
- "organizationName": "A String", # Name of the organization.
- "countryCode": "A String", # ISO 3166 country code.
- "locality": "A String", # Name of the locality. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "region": "A String", # Name of the region. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- "addressLine2": "A String", # Address line 2 of the address.
- "addressLine3": "A String", # Address line 3 of the address.
- "contactName": "A String", # Name of the contact person.
- "addressLine1": "A String", # Address line 1 of the address.
- "postalCode": "A String", # The postal code. This is in accordance with - http://portablecontacts.net/draft-spec.html#address_element.
- },
- "customerId": "A String", # The id of the customer.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/reseller_v1.html b/docs/dyn/reseller_v1.html
deleted file mode 100644
index d8e9e0a..0000000
--- a/docs/dyn/reseller_v1.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Changes the plan of a subscription
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for the ChangePlan rpc request.
- "planName": "A String", # Name of the plan to change to.
- "kind": "subscriptions#changePlanRequest", # Identifies the resource as a subscription change plan request.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- }
-
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
Changes the renewal settings of a subscription
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for a subscription renewal settings.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
-}
-
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
-
-
-
- changeSeats(customerId, subscriptionId, body)
-
Changes the seats configuration of a subscription
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for subscription seats.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
-}
-
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
Cancels/Downgrades a subscription.
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
- deletionType: string, Whether the subscription is to be fully cancelled or downgraded (required)
- Allowed values
- cancel - Cancels the subscription immediately
- downgrade - Downgrades a Google Apps for Business subscription to Google Apps
- suspend - Suspends the subscriptions for 4 days before cancelling it
-
-
-
-
- get(customerId, subscriptionId)
-
Gets a subscription of the customer.
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
Creates/Transfers a subscription for the customer.
-
-Args:
- customerId: string, Id of the Customer (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
-
- customerAuthToken: string, An auth token needed for transferring a subscription. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken. Optional.
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
Lists subscriptions of a reseller, optionally filtered by a customer name prefix.
-
-Args:
- customerAuthToken: string, An auth token needed if the customer is not a resold customer of this reseller. Can be generated at https://www.google.com/a/cpanel/customer-domain/TransferToken.Optional.
- pageToken: string, Token to specify next page in the list
- maxResults: integer, Maximum number of results to return
- customerNamePrefix: string, Prefix of the customer's domain name by which the subscriptions should be filtered. Optional
- customerId: string, Id of the Customer
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription list.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "kind": "reseller#subscriptions", # Identifies the resource as a collection of subscriptions.
- "subscriptions": [ # The subscriptions in this page of results.
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- },
- ],
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- startPaidService(customerId, subscriptionId)
-
Starts paid service of a trial subscription
-
-Args:
- customerId: string, Id of the Customer (required)
- subscriptionId: string, Id of the subscription, which is unique for a customer (required)
-
-Returns:
- An object of the form:
-
- { # JSON template for a subscription.
- "renewalSettings": { # JSON template for a subscription renewal settings. # Renewal settings of the subscription.
- "kind": "subscriptions#renewalSettings", # Identifies the resource as a subscription renewal setting.
- "renewalType": "A String", # Subscription renewal type.
- },
- "skuId": "A String", # Name of the sku for which this subscription is purchased.
- "kind": "reseller#subscription", # Identifies the resource as a Subscription.
- "trialSettings": { # Trial Settings of the subscription.
- "trialEndTime": "A String", # End time of the trial in milliseconds since Unix epoch.
- "isInTrial": True or False, # Whether the subscription is in trial.
- },
- "transferInfo": { # Transfer related information for the subscription.
- "transferabilityExpirationTime": "A String", # Time when transfer token or intent to transfer will expire.
- "minimumTransferableSeats": 42,
- },
- "resourceUiUrl": "A String", # Ui url for subscription resource.
- "seats": { # JSON template for subscription seats. # Number/Limit of seats in the new plan.
- "kind": "subscriptions#seats", # Identifies the resource as a subscription change plan request.
- "numberOfSeats": 42, # Number of seats to purchase. This is applicable only for a commitment plan.
- "maximumNumberOfSeats": 42, # Maximum number of seats that can be purchased. This needs to be provided only for a non-commitment plan. For a commitment plan it is decided by the contract.
- },
- "creationTime": "A String", # Creation time of this subscription in milliseconds since Unix epoch.
- "status": "A String", # Status of the subscription.
- "plan": { # Plan details of the subscription
- "planName": "A String", # The plan name of this subscription's plan.
- "commitmentInterval": { # Interval of the commitment if it is a commitment plan.
- "endTime": "A String", # End time of the commitment interval in milliseconds since Unix epoch.
- "startTime": "A String", # Start time of the commitment interval in milliseconds since Unix epoch.
- },
- "isCommitmentPlan": True or False, # Whether the plan is a commitment plan or not.
- },
- "purchaseOrderId": "A String", # Purchase order id for your order tracking purposes.
- "subscriptionId": "A String", # The id of the subscription.
- "customerId": "A String", # The id of the customer to whom the subscription belongs.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/shopping_v1.html b/docs/dyn/shopping_v1.html
deleted file mode 100644
index 8a65e2d..0000000
--- a/docs/dyn/shopping_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Returns a single product
-
-Args:
- source: string, Query source (required)
- accountId: integer, Merchant center account id (required)
- productIdType: string, Type of productId (required)
- productId: string, Id of product (required)
- taxonomy: string, Merchant taxonomy
- recommendations_useGcsConfig: boolean, This parameter is currently ignored
- recommendations_include: string, Recommendation specification
- location: string, Location used to determine tax and shipping
- recommendations_enabled: boolean, Whether to return recommendation information
- categories_enabled: boolean, Whether to return category information
- attributeFilter: string, Comma separated list of attributes to return
- categories_useGcsConfig: boolean, This parameter is currently ignored
- thumbnails: string, Thumbnail specification
- categories_include: string, Category specification
-
-Returns:
- An object of the form:
-
- {
- "selfLink": "A String", # Self link of product when generated for a lookup request. Self link of product when generated for a search request.
- "kind": "shopping#product", # The kind of item, always shopping#product.
- "product": { # Product.
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- "requestId": "A String", # Unique identifier for this request.
- "recommendations": [ # Recommendations for product.
- {
- "recommendationList": [ # List of recommendations.
- {
- "product": { # Recommended product.
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- },
- ],
- "type": "A String", # Type of recommendation list (for offer-based recommendations, one of: all, purchaseToPurchase, visitToVisit, visitToPurchase, relatedItems; for category-based recommendations, one of: all, categoryMostVisited, categoryBestSeller).
- },
- ],
- "debug": { # Google internal.
- "recommendedItemsRequest": "A String", # Google internal.
- "searchRequest": "A String", # Google internal.
- "rdcResponse": "A String", # Google internal.
- "facetsRequest": "A String", # Google internal.
- "searchResponse": "A String", # Google internal.
- "elapsedMillis": "A String", # Google internal.
- "recommendedItemsResponse": "A String", # Google internal.
- "facetsResponse": "A String", # Google internal.
- "backendTimes": [ # Google internal
- {
- "serverMillis": "A String", # Google internal
- "hostName": "A String", # Google internal
- "name": "A String", # Google internal
- "elapsedMillis": "A String", # Google internal
- },
- ],
- },
- "id": "A String", # Id of product.
- "categories": [ # List of categories for product.
- {
- "url": "A String", # URL of category.
- "shortName": "A String", # Short name of category.
- "parents": [ # Ids of the parents of the category.
- "A String",
- ],
- "id": "A String", # Id of category.
- },
- ],
- }
Returns a list of products and content modules
-
-Args:
- source: string, Query source (required)
- facets_enabled: boolean, Whether to return facet information
- rankBy: string, Ranking specification
- taxonomy: string, Taxonomy name
- promotions_enabled: boolean, Whether to return promotion information
- channels: string, Channels specification
- facets_discover: string, Facets to discover
- startIndex: integer, Index (1-based) of first product to return
- availability: string, Comma separated list of availabilities (outOfStock, limited, inStock, backOrder, preOrder, onDisplayToOrder) to return
- crowdBy: string, Crowding specification
- spelling_enabled: boolean, Whether to return spelling suggestions
- categoryRecommendations_category: string, Category for which to retrieve recommendations
- extras_enabled: boolean, Whether to return extra information.
- facets_includeEmptyBuckets: boolean, Return empty facet buckets.
- categoryRecommendations_enabled: boolean, Whether to return category recommendation information
- extras_info: string, What extra information to return.
- spelling_useGcsConfig: boolean, This parameter is currently ignored
- useCase: string, One of CommerceSearchUseCase, ShoppingApiUseCase
- location: string, Location used to determine tax and shipping
- maxVariants: integer, Maximum number of variant results to return per result
- relatedQueries_enabled: boolean, Whether to return related queries
- facets_useGcsConfig: boolean, Whether to return facet information as configured in the GCS account
- categoryRecommendations_useGcsConfig: boolean, This parameter is currently ignored
- boostBy: string, Boosting specification
- safe: boolean, Whether safe search is enabled. Default: true
- maxResults: integer, Maximum number of results to return
- categories_enabled: boolean, Whether to return category information
- attributeFilter: string, Comma separated list of attributes to return
- categoryRecommendations_include: string, Category recommendation specification
- categories_useGcsConfig: boolean, This parameter is currently ignored
- clickTracking: boolean, Whether to add a click tracking parameter to offer URLs
- facets_include: string, Facets to include (applies when useGcsConfig == false)
- thumbnails: string, Image thumbnails specification
- language: string, Language restriction (BCP 47)
- currency: string, Currency restriction (ISO 4217)
- categories_include: string, Category specification
- redirects_enabled: boolean, Whether to return redirect information
- restrictBy: string, Restriction specification
- q: string, Search query
- redirects_useGcsConfig: boolean, Whether to return redirect information as configured in the GCS account
- country: string, Country restriction (ISO 3166)
- relatedQueries_useGcsConfig: boolean, This parameter is currently ignored
- promotions_useGcsConfig: boolean, Whether to return promotion information as configured in the GCS account
-
-Returns:
- An object of the form:
-
- {
- "redirects": [ # Redirects.
- "A String",
- ],
- "stores": [ # List of returned stores.
- {
- "storeCode": "A String", # Merchant-supplied store code.
- "name": "A String", # Name of merchant.
- "storeName": "A String", # Name of store.
- "storeId": "A String", # Id of store.
- "telephone": "A String", # Telephone number of store.
- "location": "A String", # Location of store.
- "address": "A String", # Address of store.
- },
- ],
- "relatedQueries": [ # Related queries.
- "A String",
- ],
- "startIndex": 42, # 1-based index of the first item in the search results.
- "categoryRecommendations": [ # Recommendations for category.
- {
- "recommendationList": [ # List of recommendations.
- {
- "product": { # Recommended product.
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- },
- ],
- "type": "A String", # Type of recommendation list (for offer-based recommendations, one of: all, purchaseToPurchase, visitToVisit, visitToPurchase, relatedItems; for category-based recommendations, one of: all, categoryMostVisited, categoryBestSeller).
- },
- ],
- "id": "tag:google.com,2010:shopping/products", # Id of feed.
- "itemsPerPage": 42, # Number of items per page of results.
- "nextLink": "A String", # Next link of feed.
- "etag": "A String", # Etag of feed.
- "requestId": "A String", # Unique identifier for this request.
- "currentItemCount": 42, # Current item count.
- "previousLink": "A String", # Previous link of feed.
- "debug": { # Google internal.
- "recommendedItemsRequest": "A String", # Google internal.
- "searchRequest": "A String", # Google internal.
- "rdcResponse": "A String", # Google internal.
- "facetsRequest": "A String", # Google internal.
- "searchResponse": "A String", # Google internal.
- "elapsedMillis": "A String", # Google internal.
- "recommendedItemsResponse": "A String", # Google internal.
- "facetsResponse": "A String", # Google internal.
- "backendTimes": [ # Google internal
- {
- "serverMillis": "A String", # Google internal
- "hostName": "A String", # Google internal
- "name": "A String", # Google internal
- "elapsedMillis": "A String", # Google internal
- },
- ],
- },
- "spelling": { # Spelling.
- "suggestion": "A String", # Suggestion for spelling.
- },
- "categories": [ # List of categories.
- {
- "url": "A String", # URL of category.
- "shortName": "A String", # Short name of category.
- "parents": [ # Ids of the parents of the category.
- "A String",
- ],
- "id": "A String", # Id of category.
- },
- ],
- "promotions": [ # List of promotions.
- {
- "product": { # Product of promotion (omitted if type is not product).
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- "description": "A String", # Description of promotion (omitted if type is not standard).
- "imageLink": "A String", # Link to promotion image (omitted if type is not standard).
- "destLink": "A String", # Link to promotion (omitted if type is not standard).
- "customHtml": "A String", # Custom HTML of promotion (omitted if type is not custom).
- "customFields": [ # List of custom fields of promotion.
- {
- "name": "A String", # Name of field.
- "value": "A String", # Value of field.
- },
- ],
- "type": "A String", # Type of promotion (one of: standard, product, custom).
- "name": "A String", # Name of promotion (omitted if type is not standard).
- },
- ],
- "kind": "shopping#products", # The fixed string "shopping#products". The kind of feed returned.
- "items": [ # List of returned products.
- {
- "selfLink": "A String", # Self link of product when generated for a lookup request. Self link of product when generated for a search request.
- "kind": "shopping#product", # The kind of item, always shopping#product.
- "product": { # Product.
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- "requestId": "A String", # Unique identifier for this request.
- "recommendations": [ # Recommendations for product.
- {
- "recommendationList": [ # List of recommendations.
- {
- "product": { # Recommended product.
- "queryMatched": True or False, # Whether this product matched the user query. Only set for the variant offers (if any) attached to a product offer.
- "gtin": "A String", # The first GTIN of the product. Deprecated in favor of "gtins".
- "images": [ # Images of product.
- {
- "status": "A String",
- "link": "A String", # Link to product image.
- "thumbnails": [ # Thumbnails of product image.
- {
- "content": "A String", # Content of thumbnail (only available for the first thumbnail of the top results if SAYT is enabled).
- "width": 42, # Width of thumbnail (omitted if not specified in the request).
- "link": "A String", # Link to thumbnail.
- "height": 42, # Height of thumbnail (omitted if not specified in the request).
- },
- ],
- },
- ],
- "inventories": [ # Inventories of product.
- {
- "installmentPrice": 3.14, # Installment price of product inventory.
- "installmentMonths": 42, # Number of months for installment price.
- "distance": 3.14, # Distance of product inventory.
- "price": 3.14, # Price of product inventory.
- "storeId": "A String", # Store ID of product inventory.
- "tax": 3.14, # Tax of product inventory.
- "shipping": 3.14, # Shipping cost of product inventory.
- "currency": "A String", # Currency of product inventory (an ISO 4217 alphabetic code).
- "salePrice": 3.14, # Sale price of product inventory.
- "originalPrice": 3.14, # Original price of product inventory. Only returned for products that are on sale.
- "distanceUnit": "A String", # Distance unit of product inventory.
- "saleStartDate": "A String", # Sale start date.
- "availability": "A String", # Availability of product inventory.
- "channel": "A String", # Channel of product inventory (one of: online, local).
- "saleEndDate": "A String", # Sale end date.
- },
- ],
- "author": { # Author of product.
- "name": "A String", # Name of product author.
- "accountId": "A String", # Account id of product author.
- },
- "score": 3.14, # Google Internal
- "condition": "A String", # Condition of product (one of: new, refurbished, used).
- "providedId": "A String", # Merchant-provided id of product (available only with a cx source).
- "internal8": [ # Google Internal.
- "A String",
- ],
- "description": "A String", # Description of product.
- "gtins": [ # List of all the product's GTINs (in GTIN-14 format).
- "A String",
- ],
- "internal1": [ # Google Internal.
- "A String",
- ],
- "brand": "A String", # Brand of product.
- "internal3": "A String", # Google Internal.
- "internal4": [ # Google Internal.
- {
- "node": 42, # Google Internal.
- "confidence": 3.14, # Google Internal.
- },
- ],
- "internal6": "A String", # Google Internal.
- "internal7": True or False, # Google Internal.
- "link": "A String", # Link to product.
- "mpns": [ # List of all the product's MPNs.
- "A String",
- ],
- "attributes": [ # Attributes of product (available only with a cx source).
- {
- "type": "A String", # Type of product attribute (one of: text, bool, int, float, dateRange, url).
- "value": "", # Value of product attribute.
- "displayName": "A String", # Display Name of prodct attribute.
- "name": "A String", # Name of product attribute.
- "unit": "A String", # Unit of product attribute.
- },
- ],
- "totalMatchingVariants": 42, # The number of variant offers returned that matched the query.
- "variants": [ # A list of variant offers associated with this product.
- {
- "variant": # Object with schema name: ShoppingModelProductJsonV1 # The detailed offer data for a particular variant offer.
- },
- ],
- "modificationTime": "A String", # RFC 3339 formatted modification time and date of product.
- "categories": [ # Categories of product according to the selected taxonomy, omitted if no taxonomy is selected.
- "A String",
- ],
- "language": "A String", # BCP 47 language tag of language of product.
- "country": "A String", # ISO 3166 code of target country of product.
- "title": "A String", # Title of product.
- "creationTime": "A String", # RFC 3339 formatted creation time and date of product.
- "internal14": 3.14, # Google Internal.
- "internal12": "A String", # Google Internal.
- "internal13": 3.14, # Google Internal.
- "internal10": [ # Google Internal.
- "A String",
- ],
- "plusOne": "A String", # Code to add to the page to render the +1 content.
- "internal16": { # Google Internal. Attribute names are deliberately vague.
- "length": 42,
- "number": 42,
- "size": "A String",
- },
- "googleId": "A String", # Google id of product.
- "internal15": 3.14, # Google Internal.
- },
- },
- ],
- "type": "A String", # Type of recommendation list (for offer-based recommendations, one of: all, purchaseToPurchase, visitToVisit, visitToPurchase, relatedItems; for category-based recommendations, one of: all, categoryMostVisited, categoryBestSeller).
- },
- ],
- "debug": { # Google internal.
- "recommendedItemsRequest": "A String", # Google internal.
- "searchRequest": "A String", # Google internal.
- "rdcResponse": "A String", # Google internal.
- "facetsRequest": "A String", # Google internal.
- "searchResponse": "A String", # Google internal.
- "elapsedMillis": "A String", # Google internal.
- "recommendedItemsResponse": "A String", # Google internal.
- "facetsResponse": "A String", # Google internal.
- "backendTimes": [ # Google internal
- {
- "serverMillis": "A String", # Google internal
- "hostName": "A String", # Google internal
- "name": "A String", # Google internal
- "elapsedMillis": "A String", # Google internal
- },
- ],
- },
- "id": "A String", # Id of product.
- "categories": [ # List of categories for product.
- {
- "url": "A String", # URL of category.
- "shortName": "A String", # Short name of category.
- "parents": [ # Ids of the parents of the category.
- "A String",
- ],
- "id": "A String", # Id of category.
- },
- ],
- },
- ],
- "facets": [ # List of facets.
- {
- "count": 42, # Number of products matching the query that have a value for the facet's property or attribute.
- "displayName": "A String", # Display name of facet.
- "name": "A String", # Name of the facet's attribute (omitted for property facets).
- "buckets": [ # List of Buckets within facet.
- {
- "count": 42, # Number of products matching the query that have a value for the facet's property or attribute that matches the bucket.
- "minExclusive": True or False, # Whether the lower bound of the bucket is exclusive (omitted for value buckets or if the range has no lower bound).
- "min": "", # Lower bound of the bucket (omitted for value buckets or if the range has no lower bound).
- "max": "", # Upper bound of the bucket (omitted for value buckets or if the range has no upper bound).
- "value": "", # Value of the bucket (omitted for range buckets).
- "maxExclusive": True or False, # Whether the upper bound of the bucket is exclusive (omitted for value buckets or if the range has no upper bound).
- },
- ],
- "property": "A String", # Property of facet (omitted for attribute facets).
- "type": "A String", # Type of facet's attribute (omitted for property facets, one of: text, bool, int, float).
- "unit": "A String", # Unit of the facet's property or attribute (omitted if the facet's property or attribute has no unit).
- },
- ],
- "extras": { # List of extras.
- "facetRules": [
- {
- "name": "A String",
- },
- ],
- "rankingRules": [ # Names of boost (ranking) rules applicable to this search.
- {
- "name": "A String",
- },
- ],
- },
- "totalItems": 42, # Total number of search results.
- "selfLink": "A String", # Self link of feed.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/siteVerification_v1.html b/docs/dyn/siteVerification_v1.html
deleted file mode 100644
index a9eb596..0000000
--- a/docs/dyn/siteVerification_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Modify the list of owners for your website or domain.
-
Method Details
-
- delete(id)
-
Relinquish ownership of a website or domain.
-
-Args:
- id: string, The id of a verified site or domain. (required)
-
-
-
-
- get(id)
-
Get the most current data for a website or domain.
-
-Args:
- id: string, The id of a verified site or domain. (required)
-
-Returns:
- An object of the form:
-
- {
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-
- getToken(body)
-
Get a verification token for placing on a website or domain.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "verificationMethod": "A String", # The verification method that will be used to verify this site. For sites, 'FILE' or 'META' methods may be used. For domains, only 'DNS' may be used.
- "site": { # The site for which a verification token will be generated.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The type of resource to be verified. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "token": "A String", # The verification token. The token must be placed appropriately in order for verification to succeed.
- "method": "A String", # The verification method to use in conjunction with this token. For FILE, the token should be placed in the top-level directory of the site, stored inside a file of the same name. For META, the token should be placed in the HEAD tag of the default page that is loaded for the site. For DNS, the token should be placed in a TXT record of the domain.
- }
-
-
-
- insert(verificationMethod, body)
-
Attempt verification of a website or domain.
-
-Args:
- verificationMethod: string, The method to use for verifying a site or domain. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-
- list()
-
Get the list of your verified websites and domains.
-
-Args:
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The list of sites that are owned by the authenticated user.
- {
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- },
- ],
- }
-
-
-
- patch(id, body)
-
Modify the list of owners for your website or domain. This method supports patch semantics.
-
-Args:
- id: string, The id of a verified site or domain. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-
- update(id, body)
-
Modify the list of owners for your website or domain.
-
-Args:
- id: string, The id of a verified site or domain. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-Returns:
- An object of the form:
-
- {
- "owners": [ # The email addresses of all verified owners.
- "A String",
- ],
- "id": "A String", # The string used to identify this site. This value should be used in the "id" portion of the REST URL for the Get, Update, and Delete operations.
- "site": { # The address and type of a site that is verified or will be verified.
- "identifier": "A String", # The site identifier. If the type is set to SITE, the identifier is a URL. If the type is set to INET_DOMAIN, the site identifier is a domain name.
- "type": "A String", # The site type. Can be SITE or INET_DOMAIN (domain name).
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/sqladmin_v1beta1.backupRuns.html b/docs/dyn/sqladmin_v1beta1.backupRuns.html
deleted file mode 100644
index d563e18..0000000
--- a/docs/dyn/sqladmin_v1beta1.backupRuns.html
+++ /dev/null
@@ -1,166 +0,0 @@
-
-
-
-
Retrieves a resource containing information about a backup run.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- backupConfiguration: string, Identifier for the backup configuration. This gets generated automatically when a backup configuration is created. (required)
- dueTime: string, The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. (required)
-
-Returns:
- An object of the form:
-
- { # A database instance backup run resource.
- "status": "A String", # The status of this run.
- "kind": "sql#backupRun", # This is always sql#backupRun.
- "backupConfiguration": "A String", # Backup Configuration identifier.
- "instance": "A String", # Name of the database instance.
- "startTime": "A String", # The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "error": { # Database instance operation error. # Information about why the backup operation failed. This is only present if the run has the FAILED status.
- "kind": "sql#operationError", # This is always sql#operationError.
- "code": "A String", # Identifies the specific error that occurred.
- },
- "endTime": "A String", # The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "enqueuedTime": "A String", # The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "dueTime": "A String", # The due time of this run in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- }
Lists all backup runs associated with a given instance and configuration in the reverse chronological order of the enqueued time.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- backupConfiguration: string, Identifier for the backup configuration. This gets generated automatically when a backup configuration is created. (required)
- maxResults: integer, Maximum number of backup runs per response.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
-
-Returns:
- An object of the form:
-
- { # Backup run list results.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # A list of backup runs in reverse chronological order of the enqueued time.
- { # A database instance backup run resource.
- "status": "A String", # The status of this run.
- "kind": "sql#backupRun", # This is always sql#backupRun.
- "backupConfiguration": "A String", # Backup Configuration identifier.
- "instance": "A String", # Name of the database instance.
- "startTime": "A String", # The time the backup operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "error": { # Database instance operation error. # Information about why the backup operation failed. This is only present if the run has the FAILED status.
- "kind": "sql#operationError", # This is always sql#operationError.
- "code": "A String", # Identifies the specific error that occurred.
- },
- "endTime": "A String", # The time the backup operation completed in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "enqueuedTime": "A String", # The time the run was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "dueTime": "A String", # The due time of this run in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- },
- ],
- "kind": "sql#backupRunsList", # This is always sql#backupRunsList.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/sqladmin_v1beta1.html b/docs/dyn/sqladmin_v1beta1.html
deleted file mode 100644
index c3d98c0..0000000
--- a/docs/dyn/sqladmin_v1beta1.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Updates settings of a database instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics.
Updates settings of a database instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.
-
Method Details
-
- delete(project, instance)
-
Deletes a database instance.
-
-Args:
- project: string, Project ID of the project that contains the instance to be deleted. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
-
-Returns:
- An object of the form:
-
- { # Database instance delete response.
- "kind": "sql#instancesDelete", # This is always sql#instancesDelete.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
-
-
-
- export(project, instance, body)
-
Exports data from a database instance to a Google Cloud Storage bucket as a MySQL dump file.
-
-Args:
- project: string, Project ID of the project that contains the instance to be exported. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Database instance export request.
- "exportContext": { # Database instance export context. # Contains details about the export operation.
- "table": [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database.
- "A String",
- ],
- "kind": "sql#exportContext", # This is always sql#exportContext.
- "uri": "A String", # The path to the file in Google Cloud Storage where the export will be stored, or where it was already stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the operation fails. If the filename ends with .gz, the contents are compressed.
- "database": [ # Databases (for example, guestbook) from which the export is made. If unspecified, all databases are exported.
- "A String",
- ],
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # Database instance export response.
- "kind": "sql#instancesExport", # This is always sql#instancesExport.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
-
-
-
- get(project, instance)
-
Retrieves a resource containing information about a database instance.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
-
-Returns:
- An object of the form:
-
- { # A database instance resource.
- "project": "A String", # The project ID of the project containing the database instance. The Google apps domain is prefixed if applicable. You can find this on the project summary page of the Google APIs Console.
- "kind": "sql#instance", # This is always sql#instance.
- "maxDiskSize": "A String", # The maximum disk size of the instance in bytes.
- "settings": { # Database instance settings. # The user settings.
- "kind": "sql#settings", # This is always sql#settings.
- "authorizedGaeApplications": [ # The AppEngine app ids that can access this instance.
- "A String",
- ],
- "activationPolicy": "A String", # The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.
- # ALWAYS: The instance should always be active.
- # NEVER: The instance should never be activated.
- # ON_DEMAND: The instance is activated upon receiving requests.
- "backupConfiguration": [ # The daily backup configuration for the instance.
- { # Database instance backup configuration.
- "kind": "sql#backupConfiguration", # This is always sql#backupConfiguration.
- "enabled": True or False, # Whether this configuration is enabled.
- "id": "A String", # Identifier for this configuration. This gets generated automatically when a backup configuration is created.
- "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
- },
- ],
- "pricingPlan": "A String", # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
- "replicationType": "A String", # The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS.
- "tier": "A String", # The tier of service for this instance, for example D1, D2. For more information, see pricing.
- },
- "region": "A String", # The geographical region. Can be us-east1 or europe-west1. Defaults to us-east1. The region can not be changed after instance creation.
- "currentDiskSize": "A String", # The current disk usage of the instance in bytes.
- "instance": "A String", # Name of the database instance. This does not include the project ID.
- "state": "A String", # The current serving state of the database instance. This can be one of the following.
- # RUNNABLE: The instance is running, or is ready to run when accessed.
- # SUSPENDED: The instance is not available, for example due to problems with billing.
- # PENDING_CREATE: The instance is being created.
- # MAINTENANCE: The instance is down for maintenance.
- # UNKNOWN_STATE: The state of the instance is unknown.
- "etag": "A String", # Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.
- "databaseVersion": "A String", # The database engine type and version, for example MYSQL_5_5 for MySQL 5.5.
- }
-
-
-
- import_(project, instance, body)
-
Imports data into a database instance from a MySQL dump file in Google Cloud Storage.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # Database instance import request.
- "importContext": { # Database instance import context. # Contains details about the import operation.
- "kind": "sql#importContext", # This is always sql#importContext.
- "uri": [ # A path to the MySQL dump file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported.
- "A String",
- ],
- "database": "A String", # The database (for example, guestbook) to which the import is made. If not set, it is assumed that the database is specified in the file to be imported.
- },
- }
-
-
-Returns:
- An object of the form:
-
- { # Database instance import response.
- "kind": "sql#instancesImport", # This is always sql#instancesImport.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
-
-
-
- insert(project, body)
-
Creates a new database instance.
-
-Args:
- project: string, Project ID of the project to which the newly created database instances should belong. You can find this on the project summary page of the Google APIs Console. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A database instance resource.
- "project": "A String", # The project ID of the project containing the database instance. The Google apps domain is prefixed if applicable. You can find this on the project summary page of the Google APIs Console.
- "kind": "sql#instance", # This is always sql#instance.
- "maxDiskSize": "A String", # The maximum disk size of the instance in bytes.
- "settings": { # Database instance settings. # The user settings.
- "kind": "sql#settings", # This is always sql#settings.
- "authorizedGaeApplications": [ # The AppEngine app ids that can access this instance.
- "A String",
- ],
- "activationPolicy": "A String", # The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.
- # ALWAYS: The instance should always be active.
- # NEVER: The instance should never be activated.
- # ON_DEMAND: The instance is activated upon receiving requests.
- "backupConfiguration": [ # The daily backup configuration for the instance.
- { # Database instance backup configuration.
- "kind": "sql#backupConfiguration", # This is always sql#backupConfiguration.
- "enabled": True or False, # Whether this configuration is enabled.
- "id": "A String", # Identifier for this configuration. This gets generated automatically when a backup configuration is created.
- "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
- },
- ],
- "pricingPlan": "A String", # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
- "replicationType": "A String", # The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS.
- "tier": "A String", # The tier of service for this instance, for example D1, D2. For more information, see pricing.
- },
- "region": "A String", # The geographical region. Can be us-east1 or europe-west1. Defaults to us-east1. The region can not be changed after instance creation.
- "currentDiskSize": "A String", # The current disk usage of the instance in bytes.
- "instance": "A String", # Name of the database instance. This does not include the project ID.
- "state": "A String", # The current serving state of the database instance. This can be one of the following.
- # RUNNABLE: The instance is running, or is ready to run when accessed.
- # SUSPENDED: The instance is not available, for example due to problems with billing.
- # PENDING_CREATE: The instance is being created.
- # MAINTENANCE: The instance is down for maintenance.
- # UNKNOWN_STATE: The state of the instance is unknown.
- "etag": "A String", # Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.
- "databaseVersion": "A String", # The database engine type and version, for example MYSQL_5_5 for MySQL 5.5.
- }
-
-
-Returns:
- An object of the form:
-
- { # Database instance insert response.
- "kind": "sql#instancesInsert", # This is always sql#instancesInsert.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
Lists instances under a given project in the alphabetical order of the instance name.
-
-Args:
- project: string, Project ID of the project for which to list database instances. You can find this on the project summary page of the Google APIs Console. (required)
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- maxResults: integer, The maximum number of results to return per response.
-
-Returns:
- An object of the form:
-
- { # Database instances list response.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # List of database instance resources.
- { # A database instance resource.
- "project": "A String", # The project ID of the project containing the database instance. The Google apps domain is prefixed if applicable. You can find this on the project summary page of the Google APIs Console.
- "kind": "sql#instance", # This is always sql#instance.
- "maxDiskSize": "A String", # The maximum disk size of the instance in bytes.
- "settings": { # Database instance settings. # The user settings.
- "kind": "sql#settings", # This is always sql#settings.
- "authorizedGaeApplications": [ # The AppEngine app ids that can access this instance.
- "A String",
- ],
- "activationPolicy": "A String", # The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.
- # ALWAYS: The instance should always be active.
- # NEVER: The instance should never be activated.
- # ON_DEMAND: The instance is activated upon receiving requests.
- "backupConfiguration": [ # The daily backup configuration for the instance.
- { # Database instance backup configuration.
- "kind": "sql#backupConfiguration", # This is always sql#backupConfiguration.
- "enabled": True or False, # Whether this configuration is enabled.
- "id": "A String", # Identifier for this configuration. This gets generated automatically when a backup configuration is created.
- "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
- },
- ],
- "pricingPlan": "A String", # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
- "replicationType": "A String", # The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS.
- "tier": "A String", # The tier of service for this instance, for example D1, D2. For more information, see pricing.
- },
- "region": "A String", # The geographical region. Can be us-east1 or europe-west1. Defaults to us-east1. The region can not be changed after instance creation.
- "currentDiskSize": "A String", # The current disk usage of the instance in bytes.
- "instance": "A String", # Name of the database instance. This does not include the project ID.
- "state": "A String", # The current serving state of the database instance. This can be one of the following.
- # RUNNABLE: The instance is running, or is ready to run when accessed.
- # SUSPENDED: The instance is not available, for example due to problems with billing.
- # PENDING_CREATE: The instance is being created.
- # MAINTENANCE: The instance is down for maintenance.
- # UNKNOWN_STATE: The state of the instance is unknown.
- "etag": "A String", # Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.
- "databaseVersion": "A String", # The database engine type and version, for example MYSQL_5_5 for MySQL 5.5.
- },
- ],
- "kind": "sql#instancesList", # This is always sql#instancesList.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(project, instance, body)
-
Updates settings of a database instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.. This method supports patch semantics.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A database instance resource.
- "project": "A String", # The project ID of the project containing the database instance. The Google apps domain is prefixed if applicable. You can find this on the project summary page of the Google APIs Console.
- "kind": "sql#instance", # This is always sql#instance.
- "maxDiskSize": "A String", # The maximum disk size of the instance in bytes.
- "settings": { # Database instance settings. # The user settings.
- "kind": "sql#settings", # This is always sql#settings.
- "authorizedGaeApplications": [ # The AppEngine app ids that can access this instance.
- "A String",
- ],
- "activationPolicy": "A String", # The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.
- # ALWAYS: The instance should always be active.
- # NEVER: The instance should never be activated.
- # ON_DEMAND: The instance is activated upon receiving requests.
- "backupConfiguration": [ # The daily backup configuration for the instance.
- { # Database instance backup configuration.
- "kind": "sql#backupConfiguration", # This is always sql#backupConfiguration.
- "enabled": True or False, # Whether this configuration is enabled.
- "id": "A String", # Identifier for this configuration. This gets generated automatically when a backup configuration is created.
- "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
- },
- ],
- "pricingPlan": "A String", # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
- "replicationType": "A String", # The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS.
- "tier": "A String", # The tier of service for this instance, for example D1, D2. For more information, see pricing.
- },
- "region": "A String", # The geographical region. Can be us-east1 or europe-west1. Defaults to us-east1. The region can not be changed after instance creation.
- "currentDiskSize": "A String", # The current disk usage of the instance in bytes.
- "instance": "A String", # Name of the database instance. This does not include the project ID.
- "state": "A String", # The current serving state of the database instance. This can be one of the following.
- # RUNNABLE: The instance is running, or is ready to run when accessed.
- # SUSPENDED: The instance is not available, for example due to problems with billing.
- # PENDING_CREATE: The instance is being created.
- # MAINTENANCE: The instance is down for maintenance.
- # UNKNOWN_STATE: The state of the instance is unknown.
- "etag": "A String", # Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.
- "databaseVersion": "A String", # The database engine type and version, for example MYSQL_5_5 for MySQL 5.5.
- }
-
-
-Returns:
- An object of the form:
-
- { # Database instance update response.
- "kind": "sql#instancesUpdate", # This is always sql#instancesUpdate.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve information about the operation.
- }
-
-
-
- restart(project, instance)
-
Restarts a database instance.
-
-Args:
- project: string, Project ID of the project that contains the instance to be restarted. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
-
-Returns:
- An object of the form:
-
- { # Database instance restart response.
- "kind": "sql#instancesRestart", # This is always sql#instancesRestart.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
Restores a backup of a database instance.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- backupConfiguration: string, The identifier of the backup configuration. This gets generated automatically when a backup configuration is created. (required)
- dueTime: string, The time when this run is due to start in RFC 3339 format, for example 2012-11-15T16:19:00.094Z. (required)
-
-Returns:
- An object of the form:
-
- { # Database instance restore backup response.
- "kind": "sql#instancesRestoreBackup", # This is always sql#instancesRestoreBackup.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- }
-
-
-
- update(project, instance, body)
-
Updates settings of a database instance. Caution: This is not a partial update, so you must include values for all the settings that you want to retain. For partial updates, use patch.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A database instance resource.
- "project": "A String", # The project ID of the project containing the database instance. The Google apps domain is prefixed if applicable. You can find this on the project summary page of the Google APIs Console.
- "kind": "sql#instance", # This is always sql#instance.
- "maxDiskSize": "A String", # The maximum disk size of the instance in bytes.
- "settings": { # Database instance settings. # The user settings.
- "kind": "sql#settings", # This is always sql#settings.
- "authorizedGaeApplications": [ # The AppEngine app ids that can access this instance.
- "A String",
- ],
- "activationPolicy": "A String", # The activation policy for this instance. This specifies when the instance should be activated and is applicable only when the instance state is RUNNABLE. This can be one of the following.
- # ALWAYS: The instance should always be active.
- # NEVER: The instance should never be activated.
- # ON_DEMAND: The instance is activated upon receiving requests.
- "backupConfiguration": [ # The daily backup configuration for the instance.
- { # Database instance backup configuration.
- "kind": "sql#backupConfiguration", # This is always sql#backupConfiguration.
- "enabled": True or False, # Whether this configuration is enabled.
- "id": "A String", # Identifier for this configuration. This gets generated automatically when a backup configuration is created.
- "startTime": "A String", # Start time for the daily backup configuration in UTC timezone in the 24 hour format - HH:MM.
- },
- ],
- "pricingPlan": "A String", # The pricing plan for this instance. This can be either PER_USE or PACKAGE.
- "replicationType": "A String", # The type of replication this instance uses. This can be either ASYNCHRONOUS or SYNCHRONOUS.
- "tier": "A String", # The tier of service for this instance, for example D1, D2. For more information, see pricing.
- },
- "region": "A String", # The geographical region. Can be us-east1 or europe-west1. Defaults to us-east1. The region can not be changed after instance creation.
- "currentDiskSize": "A String", # The current disk usage of the instance in bytes.
- "instance": "A String", # Name of the database instance. This does not include the project ID.
- "state": "A String", # The current serving state of the database instance. This can be one of the following.
- # RUNNABLE: The instance is running, or is ready to run when accessed.
- # SUSPENDED: The instance is not available, for example due to problems with billing.
- # PENDING_CREATE: The instance is being created.
- # MAINTENANCE: The instance is down for maintenance.
- # UNKNOWN_STATE: The state of the instance is unknown.
- "etag": "A String", # Etag for this resource - a version number for the settings object in this resource. This field has no effect when passed as a request parameter. Instead, the contents of this field should be passed in an 'If-Match' http header for use in optimistic locking.
- "databaseVersion": "A String", # The database engine type and version, for example MYSQL_5_5 for MySQL 5.5.
- }
-
-
-Returns:
- An object of the form:
-
- { # Database instance update response.
- "kind": "sql#instancesUpdate", # This is always sql#instancesUpdate.
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve information about the operation.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/sqladmin_v1beta1.operations.html b/docs/dyn/sqladmin_v1beta1.operations.html
deleted file mode 100644
index 4c7b620..0000000
--- a/docs/dyn/sqladmin_v1beta1.operations.html
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
-
Retrieves an instance operation that has been performed on an instance.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- operation: string, Instance operation ID. (required)
-
-Returns:
- An object of the form:
-
- { # An Operations resource contains information about database instance operations such as create, delete, and restart. Operations resources are created in response to operations that were initiated; you never create them directly.
- "importContext": { # Database instance import context. # The context for import operation, if applicable.
- "kind": "sql#importContext", # This is always sql#importContext.
- "uri": [ # A path to the MySQL dump file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported.
- "A String",
- ],
- "database": "A String", # The database (for example, guestbook) to which the import is made. If not set, it is assumed that the database is specified in the file to be imported.
- },
- "kind": "sql#instanceOperation", # This is always sql#instanceOperation.
- "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "exportContext": { # Database instance export context. # The context for export operation, if applicable.
- "table": [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database.
- "A String",
- ],
- "kind": "sql#exportContext", # This is always sql#exportContext.
- "uri": "A String", # The path to the file in Google Cloud Storage where the export will be stored, or where it was already stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the operation fails. If the filename ends with .gz, the contents are compressed.
- "database": [ # Databases (for example, guestbook) from which the export is made. If unspecified, all databases are exported.
- "A String",
- ],
- },
- "instance": "A String", # Name of the database instance.
- "state": "A String", # The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.
- "operationType": "A String", # The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME.
- "error": [ # The error(s) encountered by this operation. Only set if the operation results in an error.
- { # Database instance operation error.
- "kind": "sql#operationError", # This is always sql#operationError.
- "code": "A String", # Identifies the specific error that occurred.
- },
- ],
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "enqueuedTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "userEmailAddress": "A String", # The email address of the user who initiated this operation.
- }
Lists all instance operations that have been performed on the given database instance in the reverse chronological order of the start time.
-
-Args:
- project: string, Project ID of the project that contains the instance. You can find this on the project summary page of the Google APIs Console. (required)
- instance: string, Database instance ID. This does not include the project ID. (required)
- maxResults: integer, Maximum number of operations per response.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
-
-Returns:
- An object of the form:
-
- { # Database instance list operations response.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # List of operation resources.
- { # An Operations resource contains information about database instance operations such as create, delete, and restart. Operations resources are created in response to operations that were initiated; you never create them directly.
- "importContext": { # Database instance import context. # The context for import operation, if applicable.
- "kind": "sql#importContext", # This is always sql#importContext.
- "uri": [ # A path to the MySQL dump file in Google Cloud Storage from which the import is made. The URI is in the form gs://bucketName/fileName. Compressed gzip files (.gz) are also supported.
- "A String",
- ],
- "database": "A String", # The database (for example, guestbook) to which the import is made. If not set, it is assumed that the database is specified in the file to be imported.
- },
- "kind": "sql#instanceOperation", # This is always sql#instanceOperation.
- "startTime": "A String", # The time this operation actually started in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "exportContext": { # Database instance export context. # The context for export operation, if applicable.
- "table": [ # Tables to export, or that were exported, from the specified database. If you specify tables, specify one and only one database.
- "A String",
- ],
- "kind": "sql#exportContext", # This is always sql#exportContext.
- "uri": "A String", # The path to the file in Google Cloud Storage where the export will be stored, or where it was already stored. The URI is in the form gs://bucketName/fileName. If the file already exists, the operation fails. If the filename ends with .gz, the contents are compressed.
- "database": [ # Databases (for example, guestbook) from which the export is made. If unspecified, all databases are exported.
- "A String",
- ],
- },
- "instance": "A String", # Name of the database instance.
- "state": "A String", # The state of an operation. Valid values are PENDING, RUNNING, DONE, UNKNOWN.
- "operationType": "A String", # The type of the operation. Valid values are CREATE, DELETE, UPDATE, RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME.
- "error": [ # The error(s) encountered by this operation. Only set if the operation results in an error.
- { # Database instance operation error.
- "kind": "sql#operationError", # This is always sql#operationError.
- "code": "A String", # Identifies the specific error that occurred.
- },
- ],
- "operation": "A String", # An identifier that uniquely identifies the operation. You can use this identifier to retrieve the Operations resource that has information about the operation.
- "endTime": "A String", # The time this operation finished in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "enqueuedTime": "A String", # The time this operation was enqueued in UTC timezone in RFC 3339 format, for example 2012-11-15T16:19:00.094Z.
- "userEmailAddress": "A String", # The email address of the user who initiated this operation.
- },
- ],
- "kind": "sql#operationsList", # This is always sql#operationsList.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/sqladmin_v1beta1.tiers.html b/docs/dyn/sqladmin_v1beta1.tiers.html
deleted file mode 100644
index 6db623c..0000000
--- a/docs/dyn/sqladmin_v1beta1.tiers.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related information, see Pricing.
-
Method Details
-
- list()
-
Lists all available service tiers for Google Cloud SQL, for example D1, D2. For related information, see Pricing.
-
-Args:
-
-Returns:
- An object of the form:
-
- { # Tiers list response.
- "items": [ # List of tiers.
- { # A Google Cloud SQL service tier resource.
- "DiskQuota": "A String", # The maximum disk size of this tier in bytes.
- "tier": "A String", # An identifier for the service tier, for example D1, D2 etc. For related information, see Pricing.
- "kind": "sql#tier", # This is always sql#tier.
- "RAM": "A String", # The maximum RAM usage of this tier in bytes.
- "region": [ # The applicable regions for this tier. Can be us-east1 and europe-west1.
- "A String",
- ],
- },
- ],
- "kind": "sql#tiersList", # This is always sql#tiersList.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta1.bucketAccessControls.html b/docs/dyn/storage_v1beta1.bucketAccessControls.html
deleted file mode 100644
index 7232669..0000000
--- a/docs/dyn/storage_v1beta1.bucketAccessControls.html
+++ /dev/null
@@ -1,322 +0,0 @@
-
-
-
-
Deletes the ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-
-
-
- get(bucket, entity)
-
Returns the ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- insert(bucket, body)
-
Creates a new ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- list(bucket)
-
Retrieves ACL entries on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control list.
- "items": [ # The list of items.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "kind": "storage#bucketAccessControls", # The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
- }
-
-
-
- patch(bucket, entity, body)
-
Updates an ACL entry on the specified bucket. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- update(bucket, entity, body)
-
Updates an ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta1.buckets.html b/docs/dyn/storage_v1beta1.buckets.html
deleted file mode 100644
index e1773ed..0000000
--- a/docs/dyn/storage_v1beta1.buckets.html
+++ /dev/null
@@ -1,661 +0,0 @@
-
-
-
-
Deletes an empty bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
-
-
-
-
- get(bucket, projection=None)
-
Returns metadata for the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- projection: string, Set of properties to return. Defaults to no_acl.
- Allowed values
- full - Include all properties.
- no_acl - Omit acl and defaultObjectAcl properties.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
-
-
- insert(body, projection=None)
-
Creates a new bucket.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
- projection: string, Set of properties to return. Defaults to no_acl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit acl and defaultObjectAcl properties.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
Retrieves a list of buckets for a given project.
-
-Args:
- projectId: string, A valid API project identifier. (required)
- projection: string, Set of properties to return. Defaults to no_acl.
- Allowed values
- full - Include all properties.
- no_acl - Omit acl and defaultObjectAcl properties.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- max_results: integer, Maximum number of buckets to return.
-
-Returns:
- An object of the form:
-
- { # A list of buckets.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The list of items.
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- },
- ],
- "kind": "storage#buckets", # The kind of item this is. For lists of buckets, this is always storage#buckets.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(bucket, body, projection=None)
-
Updates a bucket. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit acl and defaultObjectAcl properties.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
-
-
- update(bucket, body, projection=None)
-
Updates a bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit acl and defaultObjectAcl properties.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "projectId": "A String", # The project the bucket belongs to.
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage in this location. Can be US or EU. Defaults to US.
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "id": "A String", # The name of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta1.html b/docs/dyn/storage_v1beta1.html
deleted file mode 100644
index 7a135e9..0000000
--- a/docs/dyn/storage_v1beta1.html
+++ /dev/null
@@ -1,97 +0,0 @@
-
-
-
-
Deletes the ACL entry for the specified entity on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-
-
-
- get(bucket, object, entity)
-
Returns the ACL entry for the specified entity on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- insert(bucket, object, body)
-
Creates a new ACL entry on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- list(bucket, object)
-
Retrieves ACL entries on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control list.
- "items": [ # The list of items.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "kind": "storage#objectAccessControls", # The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
- }
-
-
-
- patch(bucket, object, entity, body)
-
Updates an ACL entry on the specified object. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- update(bucket, object, entity, body)
-
Updates an ACL entry on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta1.objects.html b/docs/dyn/storage_v1beta1.objects.html
deleted file mode 100644
index 740ba0d..0000000
--- a/docs/dyn/storage_v1beta1.objects.html
+++ /dev/null
@@ -1,775 +0,0 @@
-
-
-
-
Deletes data blobs and associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
-
-
-
-
- get(bucket, object, projection=None)
-
Retrieves objects or their associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- projection: string, Set of properties to return. Defaults to no_acl.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
-
-
- get_media(bucket, object, projection=None)
-
Retrieves objects or their associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- projection: string, Set of properties to return. Defaults to no_acl.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- The media object as a string.
-
-
Stores new data blobs and associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
- projection: string, Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
Stores new data blobs and associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
- projection: string, Set of properties to return. Defaults to no_acl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- The media object as a string.
-
-
Retrieves a list of objects matching the criteria.
-
-Args:
- bucket: string, Name of the bucket in which to look for objects. (required)
- projection: string, Set of properties to return. Defaults to no_acl.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- delimiter: string, Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
- prefix: string, Filter results to objects whose names begin with this prefix.
- max_results: integer, Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
-
-Returns:
- An object of the form:
-
- { # A list of objects.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The list of items.
- { # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- },
- ],
- "kind": "storage#objects", # The kind of item this is. For lists of objects, this is always storage#objects.
- "prefixes": [ # The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
- "A String",
- ],
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(bucket, object, body, projection=None)
-
Updates a data blob's associated metadata. This method supports patch semantics.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
-
-
- update(bucket, object, body, projection=None)
-
Updates a data blob's associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
Updates a data blob's associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "contentLanguage": "A String", # Content-Language of the object data.
- "media": { # Object media data. Provided on your behalf when uploading raw media or multipart/related with an auxiliary media part.
- "contentType": "A String", # Content-Type of the object data.
- "timeCreated": "A String", # Creation time of the data in RFC 3339 format.
- "algorithm": "MD5", # Hash algorithm used. Currently only MD5 is supported. Required if a hash is provided.
- "length": "A String", # Content-Length of the data in bytes.
- "link": "A String", # Media download link.
- "hash": "A String", # Hash of the data. Required if a hash algorithm is provided.
- "data": "A String", # URL-safe Base64-encoded data. This property can be used to insert objects under 64KB in size, and will only be returned in response to the get method for objects so created. When this resource is returned in response to the list method, this property is omitted.
- },
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "selfLink": "A String", # The link to this object.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "id": "A String", # The ID of the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "entityId": "A String", # The ID for the entity, if any.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- no_acl - Omit the acl property.
-
-Returns:
- The media object as a string.
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.bucketAccessControls.html b/docs/dyn/storage_v1beta2.bucketAccessControls.html
deleted file mode 100644
index b998751..0000000
--- a/docs/dyn/storage_v1beta2.bucketAccessControls.html
+++ /dev/null
@@ -1,330 +0,0 @@
-
-
-
-
Permanently deletes the ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-
-
-
- get(bucket, entity)
-
Returns the ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- insert(bucket, body)
-
Creates a new ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- list(bucket)
-
Retrieves ACL entries on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control list.
- "items": [ # The list of items.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "kind": "storage#bucketAccessControls", # The kind of item this is. For lists of bucket access control entries, this is always storage#bucketAccessControls.
- }
-
-
-
- patch(bucket, entity, body)
-
Updates an ACL entry on the specified bucket. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- update(bucket, entity, body)
-
Updates an ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.buckets.html b/docs/dyn/storage_v1beta2.buckets.html
deleted file mode 100644
index c014368..0000000
--- a/docs/dyn/storage_v1beta2.buckets.html
+++ /dev/null
@@ -1,1006 +0,0 @@
-
-
-
-
Permanently deletes an empty bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
- ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
-
Returns metadata for the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit acl and defaultObjectAcl properties.
- ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
- ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
-
-
-
- insert(project, body, projection=None)
-
Creates a new bucket.
-
-Args:
- project: string, A valid API project identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
-
- projection: string, Set of properties to return. Defaults to noAcl, unless the bucket resource specifies acl or defaultObjectAcl properties, when it defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit acl and defaultObjectAcl properties.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
Retrieves a list of buckets for a given project.
-
-Args:
- project: string, A valid API project identifier. (required)
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit acl and defaultObjectAcl properties.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- maxResults: integer, Maximum number of buckets to return.
-
-Returns:
- An object of the form:
-
- { # A list of buckets.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The list of items.
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- },
- ],
- "kind": "storage#buckets", # The kind of item this is. For lists of buckets, this is always storage#buckets.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates a bucket. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit acl and defaultObjectAcl properties.
- ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
- ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
Updates a bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
-
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit acl and defaultObjectAcl properties.
- ifMetagenerationMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration matches the given value.
- ifMetagenerationNotMatch: string, Makes the return of the bucket metadata conditional on whether the bucket's current metageneration does not match the given value.
-
-Returns:
- An object of the form:
-
- { # A bucket.
- "website": { # The bucket's website configuration.
- "notFoundPage": "A String", # The custom object to return when a requested resource is not found.
- "mainPageSuffix": "A String", # Behaves as the bucket's directory index where missing objects are treated as potential directories.
- },
- "kind": "storage#bucket", # The kind of item this is. For buckets, this is always storage#bucket.
- "logging": { # The bucket's logging configuration, which defines the destination bucket and optional name prefix for the current bucket's logs.
- "logObjectPrefix": "A String", # A prefix for log object names.
- "logBucket": "A String", # The destination bucket where the current bucket's logs should be placed.
- },
- "name": "A String", # The name of the bucket.
- "metageneration": "A String", # The metadata generation of this bucket.
- "timeCreated": "A String", # Creation time of the bucket in RFC 3339 format.
- "versioning": { # The bucket's versioning configuration.
- "enabled": True or False, # While set to true, versioning is fully enabled for this bucket.
- },
- "acl": [ # Access controls on the bucket.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#bucketAccessControl", # The kind of item this is. For bucket access control entries, this is always storage#bucketAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER, WRITER, or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "defaultObjectAcl": [ # Default access controls to apply to new objects when no ACL is provided.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "etag": "A String", # HTTP 1.1 Entity tag for the bucket.
- "location": "A String", # The location of the bucket. Object data for objects in the bucket resides in physical storage within this region. Typical values are US and EU. Defaults to US. See the developer's guide for the authoritative list.
- "cors": [ # The bucket's Cross-Origin Resource Sharing (CORS) configuration.
- {
- "origin": [ # The list of Origins eligible to receive CORS response headers. Note: "*" is permitted in the list of origins, and means "any Origin".
- "A String",
- ],
- "responseHeader": [ # The list of HTTP headers other than the simple response headers to give permission for the user-agent to share across domains.
- "A String",
- ],
- "method": [ # The list of HTTP methods on which to include CORS response headers, e.g. GET, OPTIONS, POST. Note, "*" is permitted in the list of methods, and means "any method".
- "A String",
- ],
- "maxAgeSeconds": 42, # The value, in seconds, to return in the Access-Control-Max-Age header used in preflight responses.
- },
- ],
- "owner": { # The owner of the bucket. This will always be the project team's owner group.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form group-groupId.
- },
- "lifecycle": { # The bucket's lifecycle configuration. See object lifecycle management for more information.
- "rule": [ # A lifecycle management rule, which is made of an action to take and the condition(s) under which the action will be taken.
- {
- "action": { # The action to take.
- "type": "A String", # Type of the action, e.g. Delete.
- },
- "condition": { # The condition(s) under which the action will be taken.
- "isLive": True or False, # Relevant only for versioned objects. If the value is true, this condition matches live objects; if the value is false, it matches archived objects.
- "numNewerVersions": 42, # Relevant only for versioned objects. If the value is N, this condition is satisfied when there are at least N versions (including the live version) newer than this version of the object.
- "age": 42, # Age of an object (in days). This condition is satisfied when an object reaches the specified age.
- "createdBefore": "A String", # A date in RFC 3339 format with only the date part, e.g. "2013-01-15". This condition is satisfied when an object is created before midnight of the specified date in UTC.
- },
- },
- ],
- },
- "id": "A String", # The ID of the bucket.
- "selfLink": "A String", # The URI of this bucket.
- "storageClass": "A String", # The bucket's storage class. This defines how objects in the bucket will be stored and determines the SLA and the cost of storage. Typical values are STANDARD and DURABLE_REDUCED_AVAILABILITY. Defaults to STANDARD. See the developer's guide for the authoritative list.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.channels.html b/docs/dyn/storage_v1beta2.channels.html
deleted file mode 100644
index 9e1d0f3..0000000
--- a/docs/dyn/storage_v1beta2.channels.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.defaultObjectAccessControls.html b/docs/dyn/storage_v1beta2.defaultObjectAccessControls.html
deleted file mode 100644
index 5409d46..0000000
--- a/docs/dyn/storage_v1beta2.defaultObjectAccessControls.html
+++ /dev/null
@@ -1,327 +0,0 @@
-
-
-
-
Updates a default object ACL entry on the specified bucket.
-
Method Details
-
- delete(bucket, entity)
-
Permanently deletes the default object ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-
-
-
- get(bucket, entity)
-
Returns the default object ACL entry for the specified entity on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- insert(bucket, body)
-
Creates a new default object ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- list(bucket)
-
Retrieves default object ACL entries on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
-
-Returns:
- An object of the form:
-
- { # An access-control list.
- "items": [ # The list of items.
- "",
- ],
- "kind": "storage#objectAccessControls", # The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
- }
-
-
-
- patch(bucket, entity, body)
-
Updates a default object ACL entry on the specified bucket. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- update(bucket, entity, body)
-
Updates a default object ACL entry on the specified bucket.
-
-Args:
- bucket: string, Name of a bucket. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.html b/docs/dyn/storage_v1beta2.html
deleted file mode 100644
index 31c606a..0000000
--- a/docs/dyn/storage_v1beta2.html
+++ /dev/null
@@ -1,107 +0,0 @@
-
-
-
-
Permanently deletes the ACL entry for the specified entity on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-
-
-
- get(bucket, object, entity, generation=None)
-
Returns the ACL entry for the specified entity on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- insert(bucket, object, body, generation=None)
-
Creates a new ACL entry on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
- list(bucket, object, generation=None)
-
Retrieves ACL entries on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-Returns:
- An object of the form:
-
- { # An access-control list.
- "items": [ # The list of items.
- "",
- ],
- "kind": "storage#objectAccessControls", # The kind of item this is. For lists of object access control entries, this is always storage#objectAccessControls.
- }
Updates an ACL entry on the specified object. This method supports patch semantics.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
Updates an ACL entry on the specified object.
-
-Args:
- bucket: string, Name of a bucket. (required)
- object: string, Name of the object. (required)
- entity: string, The entity holding the permission. Can be user-userId, group-groupId, allUsers, or allAuthenticatedUsers. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
-}
-
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
-
-Returns:
- An object of the form:
-
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/storage_v1beta2.objects.html b/docs/dyn/storage_v1beta2.objects.html
deleted file mode 100644
index ead03db..0000000
--- a/docs/dyn/storage_v1beta2.objects.html
+++ /dev/null
@@ -1,1354 +0,0 @@
-
-
-
-
Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
Concatenates a list of existing objects into a new object in the same bucket.
-
-Args:
- destinationBucket: string, Name of the bucket in which to store the new object. (required)
- destinationObject: string, Name of the new object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A Compose request.
- "kind": "storage#composeRequest", # The kind of item this is.
- "destination": { # An object. # Properties of the resulting object
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- },
- "sourceObjects": [ # The list of source objects that will be concatenated into a single object.
- {
- "generation": "A String", # The generation of this object to use as the source.
- "name": "A String", # The source object's name. The source object's bucket is implicitly the destination bucket.
- "objectPreconditions": {
- "ifGenerationMatch": "A String", # Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.
- },
- },
- ],
- }
-
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Concatenates a list of existing objects into a new object in the same bucket.
-
-Args:
- destinationBucket: string, Name of the bucket in which to store the new object. (required)
- destinationObject: string, Name of the new object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A Compose request.
- "kind": "storage#composeRequest", # The kind of item this is.
- "destination": { # An object. # Properties of the resulting object
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- },
- "sourceObjects": [ # The list of source objects that will be concatenated into a single object.
- {
- "generation": "A String", # The generation of this object to use as the source.
- "name": "A String", # The source object's name. The source object's bucket is implicitly the destination bucket.
- "objectPreconditions": {
- "ifGenerationMatch": "A String", # Only perform the composition if the generation of the source object that would be used matches this value. If this value and a generation are both specified, they must be the same value or the call will fail.
- },
- },
- ],
- }
-
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
-
-Returns:
- The media object as a string.
-
-
Copies an object to a destination in the same location. Optionally overrides metadata.
-
-Args:
- sourceBucket: string, Name of the bucket in which to find the source object. (required)
- sourceObject: string, Name of the source object. (required)
- destinationBucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- destinationObject: string, Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- projection: string, Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- sourceGeneration: string, If present, selects a specific revision of the source object (as opposed to the latest version, the default).
- ifSourceGenerationNotMatch: string, Makes the operation conditional on whether the source object's generation does not match the given value.
- ifSourceMetagenerationNotMatch: string, Makes the operation conditional on whether the source object's current metageneration does not match the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the destination object's current generation matches the given value.
- ifGenerationNotMatch: string, Makes the operation conditional on whether the destination object's current generation does not match the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
- ifSourceGenerationMatch: string, Makes the operation conditional on whether the source object's generation matches the given value.
- ifSourceMetagenerationMatch: string, Makes the operation conditional on whether the source object's current metageneration matches the given value.
- ifMetagenerationMatch: string, Makes the operation conditional on whether the destination object's current metageneration matches the given value.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Copies an object to a destination in the same location. Optionally overrides metadata.
-
-Args:
- sourceBucket: string, Name of the bucket in which to find the source object. (required)
- sourceObject: string, Name of the source object. (required)
- destinationBucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- destinationObject: string, Name of the new object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- projection: string, Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- sourceGeneration: string, If present, selects a specific revision of the source object (as opposed to the latest version, the default).
- ifSourceGenerationNotMatch: string, Makes the operation conditional on whether the source object's generation does not match the given value.
- ifSourceMetagenerationNotMatch: string, Makes the operation conditional on whether the source object's current metageneration does not match the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the destination object's current generation matches the given value.
- ifGenerationNotMatch: string, Makes the operation conditional on whether the destination object's current generation does not match the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the destination object's current metageneration does not match the given value.
- ifSourceGenerationMatch: string, Makes the operation conditional on whether the source object's generation matches the given value.
- ifSourceMetagenerationMatch: string, Makes the operation conditional on whether the source object's current metageneration matches the given value.
- ifMetagenerationMatch: string, Makes the operation conditional on whether the destination object's current metageneration matches the given value.
-
-Returns:
- The media object as a string.
-
-
Deletes data blobs and associated metadata. Deletions are permanent if versioning is not enabled for the bucket, or if the generation parameter is used.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
- generation: string, If present, permanently deletes a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
-
Retrieves objects or their associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's generation does not match the given value.
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Retrieves objects or their associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's generation does not match the given value.
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
-
-Returns:
- The media object as a string.
-
-
Stores new data blobs and associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- projection: string, Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Stores new data blobs and associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which to store the new object. Overrides the provided object metadata's bucket value, if any. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- projection: string, Set of properties to return. Defaults to noAcl, unless the object resource specifies the acl property, when it defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- name: string, Name of the object. Required when the object metadata is not otherwise provided. Overrides the object metadata's name value, if any.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
-
-Returns:
- The media object as a string.
-
-
Retrieves a list of objects matching the criteria.
-
-Args:
- bucket: string, Name of the bucket in which to look for objects. (required)
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- versions: boolean, If true, lists all versions of a file as distinct results.
- delimiter: string, Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
- maxResults: integer, Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- prefix: string, Filter results to objects whose names begin with this prefix.
-
-Returns:
- An object of the form:
-
- { # A list of objects.
- "nextPageToken": "A String", # The continuation token, used to page through large result sets. Provide this value in a subsequent request to return the next page of results.
- "items": [ # The list of items.
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- },
- ],
- "kind": "storage#objects", # The kind of item this is. For lists of objects, this is always storage#objects.
- "prefixes": [ # The list of prefixes of objects matching-but-not-listed up to and including the requested delimiter.
- "A String",
- ],
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates a data blob's associated metadata. This method supports patch semantics.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Updates a data blob's associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
-
-Returns:
- An object of the form:
-
- { # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
Updates a data blob's associated metadata.
-
-Args:
- bucket: string, Name of the bucket in which the object resides. (required)
- object: string, Name of the object. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An object.
- "generation": "A String", # The content generation of this object. Used for object versioning.
- "componentCount": 42, # Number of underlying components that make up this object. Components are accumulated by compose operations and are limited to a count of 32.
- "mediaLink": "A String", # Media download link.
- "owner": { # The owner of the object. This will always be the uploader of the object.
- "entityId": "A String", # The ID for the entity.
- "entity": "A String", # The entity, in the form user-userId.
- },
- "cacheControl": "A String", # Cache-Control directive for the object data.
- "acl": [ # Access controls on the object.
- { # An access-control entry.
- "domain": "A String", # The domain associated with the entity, if any.
- "generation": "A String", # The content generation of the object.
- "object": "A String", # The name of the object.
- "bucket": "A String", # The name of the bucket.
- "kind": "storage#objectAccessControl", # The kind of item this is. For object access control entries, this is always storage#objectAccessControl.
- "entity": "A String", # The entity holding the permission, in one of the following forms:
- # - user-userId
- # - user-email
- # - group-groupId
- # - group-email
- # - allUsers
- # - allAuthenticatedUsers
- "etag": "A String", # HTTP 1.1 Entity tag for the access-control entry.
- "role": "A String", # The access permission for the entity. Can be READER or OWNER.
- "id": "A String", # The ID of the access-control entry.
- "entityId": "A String", # The ID for the entity, if any.
- "email": "A String", # The email address associated with the entity, if any.
- "selfLink": "A String", # The link to this access-control entry.
- },
- ],
- "id": "A String", # The ID of the object.
- "size": "A String", # Content-Length of the data in bytes.
- "timeDeleted": "A String", # Deletion time of the object in RFC 3339 format. Will be returned if and only if this version of the object has been deleted.
- "md5Hash": "A String", # MD5 hash of the data; encoded using base64.
- "crc32c": "A String", # CRC32c checksum, as described in RFC 4960, Appendix B; encoded using base64.
- "etag": "A String", # HTTP 1.1 Entity tag for the object.
- "metadata": { # User-provided metadata, in key/value pairs.
- "a_key": "A String", # An individual metadata entry.
- },
- "updated": "A String", # Modification time of the object metadata in RFC 3339 format.
- "contentType": "A String", # Content-Type of the object data.
- "contentLanguage": "A String", # Content-Language of the object data.
- "metageneration": "A String", # The generation of the metadata for this object at this generation. Used for metadata versioning. Has no meaning outside of the context of this generation.
- "kind": "storage#object", # The kind of item this is. For objects, this is always storage#object.
- "name": "A String", # The name of this object. Required if not specified by URL parameter.
- "bucket": "A String", # The bucket containing this object.
- "contentEncoding": "A String", # Content-Encoding of the object data.
- "contentDisposition": "A String", # Content-Disposition of the object data.
- "selfLink": "A String", # The link to this object.
- }
-
- ifGenerationNotMatch: string, Makes the operation conditional on whether the object's current generation does not match the given value.
- generation: string, If present, selects a specific revision of this object (as opposed to the latest version, the default).
- ifMetagenerationMatch: string, Makes the operation conditional on whether the object's current metageneration matches the given value.
- ifGenerationMatch: string, Makes the operation conditional on whether the object's current generation matches the given value.
- ifMetagenerationNotMatch: string, Makes the operation conditional on whether the object's current metageneration does not match the given value.
- projection: string, Set of properties to return. Defaults to full.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
-
-Returns:
- The media object as a string.
-
-
Watch for changes on all objects in a bucket.
-
-Args:
- bucket: string, Name of the bucket in which to look for objects. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
- projection: string, Set of properties to return. Defaults to noAcl.
- Allowed values
- full - Include all properties.
- noAcl - Omit the acl property.
- versions: boolean, If true, lists all versions of a file as distinct results.
- delimiter: string, Returns results in a directory-like mode. items will contain only objects whose names, aside from the prefix, do not contain delimiter. Objects whose names, aside from the prefix, contain delimiter will have their name, truncated after the delimiter, returned in prefixes. Duplicate prefixes are omitted.
- maxResults: integer, Maximum number of items plus prefixes to return. As duplicate prefixes are omitted, fewer total results may be returned than requested.
- pageToken: string, A previously-returned page token representing part of the larger set of results to view.
- prefix: string, Filter results to objects whose names begin with this prefix.
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/taskqueue_v1beta2.html b/docs/dyn/taskqueue_v1beta2.html
deleted file mode 100644
index 243bcdf..0000000
--- a/docs/dyn/taskqueue_v1beta2.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Get detailed information about a TaskQueue.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, The id of the taskqueue to get the properties of. (required)
- getStats: boolean, Whether to get stats. Optional.
-
-Returns:
- An object of the form:
-
- {
- "kind": "taskqueues#taskqueue", # The kind of REST object returned, in this case taskqueue.
- "stats": { # Statistics for the TaskQueue object in question.
- "oldestTask": "A String", # The timestamp (in seconds since the epoch) of the oldest unfinished task.
- "leasedLastMinute": "A String", # Number of tasks leased in the last minute.
- "totalTasks": 42, # Number of tasks in the queue.
- "leasedLastHour": "A String", # Number of tasks leased in the last hour.
- },
- "id": "A String", # Name of the taskqueue.
- "maxLeases": 42, # The number of times we should lease out tasks before giving up on them. If unset we lease them out forever until a worker deletes the task.
- "acl": { # ACLs that are applicable to this TaskQueue object.
- "consumerEmails": [ # Email addresses of users who can "consume" tasks from the TaskQueue. This means they can Dequeue and Delete tasks from the queue.
- "A String",
- ],
- "producerEmails": [ # Email addresses of users who can "produce" tasks into the TaskQueue. This means they can Insert tasks into the queue.
- "A String",
- ],
- "adminEmails": [ # Email addresses of users who are "admins" of the TaskQueue. This means they can control the queue, eg set ACLs for the queue.
- "A String",
- ],
- },
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/taskqueue_v1beta2.tasks.html b/docs/dyn/taskqueue_v1beta2.tasks.html
deleted file mode 100644
index c9fbb64..0000000
--- a/docs/dyn/taskqueue_v1beta2.tasks.html
+++ /dev/null
@@ -1,309 +0,0 @@
-
-
-
-
Delete a task from a TaskQueue.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, The taskqueue to delete a task from. (required)
- task: string, The id of the task to delete. (required)
-
-
-
-
- get(project, taskqueue, task)
-
Get a particular task from a TaskQueue.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, The taskqueue in which the task belongs. (required)
- task: string, The task to get properties of. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
-
-
-
- insert(project, taskqueue, body)
-
Insert a new task in a TaskQueue
-
-Args:
- project: string, The project under which the queue lies (required)
- taskqueue: string, The taskqueue to insert the task into (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
Lease 1 or more tasks from a TaskQueue.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, The taskqueue to lease a task from. (required)
- numTasks: integer, The number of tasks to lease. (required)
- leaseSecs: integer, The lease in seconds. (required)
- groupByTag: boolean, When true, all returned tasks will have the same tag
- tag: string, The tag allowed for tasks in the response. Must only be specified if group_by_tag is true. If group_by_tag is true and tag is not specified the tag will be that of the oldest task by eta, i.e. the first available tag
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The actual list of tasks returned as a result of the lease operation.
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- },
- ],
- "kind": "taskqueue#tasks", # The kind of object returned, a list of tasks.
- }
-
-
-
- list(project, taskqueue)
-
List Tasks in a TaskQueue
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, The id of the taskqueue to list tasks from. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The actual list of tasks currently active in the TaskQueue.
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- },
- ],
- "kind": "taskqueues#tasks", # The kind of object returned, a list of tasks.
- }
Update tasks that are leased out of a TaskQueue. This method supports patch semantics.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, A parameter (required)
- task: string, A parameter (required)
- newLeaseSeconds: integer, The new lease in seconds. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
Update tasks that are leased out of a TaskQueue.
-
-Args:
- project: string, The project under which the queue lies. (required)
- taskqueue: string, A parameter (required)
- task: string, A parameter (required)
- newLeaseSeconds: integer, The new lease in seconds. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "taskqueues#task", # The kind of object returned, in this case set to task.
- "leaseTimestamp": "A String", # Time (in seconds since the epoch) at which the task lease will expire. This value is 0 if the task isnt currently leased out to a worker.
- "id": "A String", # Name of the task.
- "retry_count": 42, # The number of leases applied to this task.
- "tag": "A String", # Tag for the task, could be used later to lease tasks grouped by a specific tag.
- "payloadBase64": "A String", # A bag of bytes which is the task payload. The payload on the JSON side is always Base64 encoded.
- "queueName": "A String", # Name of the queue that the task is in.
- "enqueueTimestamp": "A String", # Time (in seconds since the epoch) at which the task was enqueued.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/tasks_v1.html b/docs/dyn/tasks_v1.html
deleted file mode 100644
index 5acf5d4..0000000
--- a/docs/dyn/tasks_v1.html
+++ /dev/null
@@ -1,87 +0,0 @@
-
-
-
-
Updates the authenticated user's specified task list.
-
Method Details
-
- delete(tasklist)
-
Deletes the authenticated user's specified task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
-
-
-
-
- get(tasklist)
-
Returns the authenticated user's specified task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-
- insert(body)
-
Creates a new task list and adds it to the authenticated user's task lists.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-
- list(pageToken=None, maxResults=None)
-
Returns all the authenticated user's task lists.
-
-Args:
- pageToken: string, Token specifying the result page to return. Optional.
- maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 100.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token that can be used to request the next page of this result.
- "items": [ # Collection of task lists.
- {
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- },
- ],
- "kind": "tasks#taskLists", # Type of the resource. This is always "tasks#taskLists".
- "etag": "A String", # ETag of the resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- patch(tasklist, body)
-
Updates the authenticated user's specified task list. This method supports patch semantics.
-
-Args:
- tasklist: string, Task list identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-
- update(tasklist, body)
-
Updates the authenticated user's specified task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "kind": "tasks#taskList", # Type of the resource. This is always "tasks#taskList".
- "title": "A String", # Title of the task list.
- "updated": "A String", # Last modification time of the task list (as a RFC 3339 timestamp).
- "etag": "A String", # ETag of the resource.
- "id": "A String", # Task list identifier.
- "selfLink": "A String", # URL pointing to this task list. Used to retrieve, update, or delete this task list.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/tasks_v1.tasks.html b/docs/dyn/tasks_v1.tasks.html
deleted file mode 100644
index d580833..0000000
--- a/docs/dyn/tasks_v1.tasks.html
+++ /dev/null
@@ -1,454 +0,0 @@
-
-
-
-
Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
Clears all completed tasks from the specified task list. The affected tasks will be marked as 'hidden' and no longer be returned by default when retrieving all tasks for a task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
-
-
-
-
- delete(tasklist, task)
-
Deletes the specified task from the task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
- task: string, Task identifier. (required)
-
-
-
-
- get(tasklist, task)
-
Returns the specified task.
-
-Args:
- tasklist: string, Task list identifier. (required)
- task: string, Task identifier. (required)
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
Creates a new task on the specified task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
- parent: string, Parent task identifier. If the task is created at the top level, this parameter is omitted. Optional.
- previous: string, Previous sibling task identifier. If the task is created at the first position among its siblings, this parameter is omitted. Optional.
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
Returns all tasks in the specified task list.
-
-Args:
- tasklist: string, Task list identifier. (required)
- showCompleted: boolean, Flag indicating whether completed tasks are returned in the result. Optional. The default is True.
- dueMin: string, Lower bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
- dueMax: string, Upper bound for a task's due date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by due date.
- pageToken: string, Token specifying the result page to return. Optional.
- updatedMin: string, Lower bound for a task's last modification time (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by last modification time.
- showDeleted: boolean, Flag indicating whether deleted tasks are returned in the result. Optional. The default is False.
- completedMax: string, Upper bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
- maxResults: string, Maximum number of task lists returned on one page. Optional. The default is 100.
- completedMin: string, Lower bound for a task's completion date (as a RFC 3339 timestamp) to filter by. Optional. The default is not to filter by completion date.
- showHidden: boolean, Flag indicating whether hidden tasks are returned in the result. Optional. The default is False.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # Token used to access the next page of this result.
- "items": [ # Collection of tasks.
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- },
- ],
- "kind": "tasks#tasks", # Type of the resource. This is always "tasks#tasks".
- "etag": "A String", # ETag of the resource.
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Moves the specified task to another position in the task list. This can include putting it as a child task under a new parent and/or move it to a different position among its sibling tasks.
-
-Args:
- tasklist: string, Task list identifier. (required)
- task: string, Task identifier. (required)
- parent: string, New parent task identifier. If the task is moved to the top level, this parameter is omitted. Optional.
- previous: string, New previous sibling task identifier. If the task is moved to the first position among its siblings, this parameter is omitted. Optional.
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
-
-
- patch(tasklist, task, body)
-
Updates the specified task. This method supports patch semantics.
-
-Args:
- tasklist: string, Task list identifier. (required)
- task: string, Task identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
-
-
- update(tasklist, task, body)
-
Updates the specified task.
-
-Args:
- tasklist: string, Task list identifier. (required)
- task: string, Task identifier. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the task. This is either "needsAction" or "completed".
- "kind": "tasks#task", # Type of the resource. This is always "tasks#task".
- "updated": "A String", # Last modification time of the task (as a RFC 3339 timestamp).
- "parent": "A String", # Parent task identifier. This field is omitted if it is a top-level task. This field is read-only. Use the "move" method to move the task under a different parent or to the top level.
- "links": [ # Collection of links. This collection is read-only.
- {
- "type": "A String", # Type of the link, e.g. "email".
- "link": "A String", # The URL.
- "description": "A String", # The description. In HTML speak: Everything between and .
- },
- ],
- "title": "A String", # Title of the task.
- "deleted": True or False, # Flag indicating whether the task has been deleted. The default if False.
- "completed": "A String", # Completion date of the task (as a RFC 3339 timestamp). This field is omitted if the task has not been completed.
- "due": "A String", # Due date of the task (as a RFC 3339 timestamp). Optional.
- "etag": "A String", # ETag of the resource.
- "notes": "A String", # Notes describing the task. Optional.
- "position": "A String", # String indicating the position of the task among its sibling tasks under the same parent task or at the top level. If this string is greater than another task's corresponding position string according to lexicographical ordering, the task is positioned after the other task under the same parent task (or at the top level). This field is read-only. Use the "move" method to move the task to another position.
- "hidden": True or False, # Flag indicating whether the task is hidden. This is the case if the task had been marked completed when the task list was last cleared. The default is False. This field is read-only.
- "id": "A String", # Task identifier.
- "selfLink": "A String", # URL pointing to this task. Used to retrieve, update, or delete this task.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/translate_v2.detections.html b/docs/dyn/translate_v2.detections.html
deleted file mode 100644
index 7c20f82..0000000
--- a/docs/dyn/translate_v2.detections.html
+++ /dev/null
@@ -1,104 +0,0 @@
-
-
-
-
Detect the language of text.
-
-Args:
- q: string, The text to detect (required) (repeated)
-
-Returns:
- An object of the form:
-
- {
- "detections": [ # A detections contains detection results of several text
- [ # An array of languages which we detect for the given text The most likely language list first.
- {
- "isReliable": True or False, # A boolean to indicate is the language detection result reliable.
- "confidence": 3.14, # The confidence of the detection resul of this language.
- "language": "A String", # The language we detect
- },
- ],
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/translate_v2.html b/docs/dyn/translate_v2.html
deleted file mode 100644
index fbb90f7..0000000
--- a/docs/dyn/translate_v2.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
List the source/target languages supported by the API
-
Method Details
-
- list(target=None)
-
List the source/target languages supported by the API
-
-Args:
- target: string, the language and collation in which the localized results should be returned
-
-Returns:
- An object of the form:
-
- {
- "languages": [ # List of source/target languages supported by the translation API. If target parameter is unspecified, the list is sorted by the ASCII code point order of the language code. If target parameter is specified, the list is sorted by the collation order of the language name in the target language.
- {
- "name": "A String", # The localized name of the language if target parameter is given.
- "language": "A String", # The language code.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/translate_v2.translations.html b/docs/dyn/translate_v2.translations.html
deleted file mode 100644
index 1783dc6..0000000
--- a/docs/dyn/translate_v2.translations.html
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
Returns text translations from one language to another.
-
-Args:
- q: string, The text to translate (required) (repeated)
- target: string, The target language into which the text should be translated (required)
- format: string, The format of the text
- Allowed values
- html - Specifies the input is in HTML
- text - Specifies the input is in plain textual format
- cid: string, The customization id for translate (repeated)
- source: string, The source language of the text
-
-Returns:
- An object of the form:
-
- {
- "translations": [ # Translations contains list of translation results of given text
- {
- "detectedSourceLanguage": "A String", # Detected source language if source parameter is unspecified.
- "translatedText": "A String", # The translation.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/urlshortener_v1.html b/docs/dyn/urlshortener_v1.html
deleted file mode 100644
index 1ef8ccd..0000000
--- a/docs/dyn/urlshortener_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Expands a short URL or gets creation time and analytics.
-
-Args:
- shortUrl: string, The short URL, including the protocol. (required)
- projection: string, Additional information to return.
- Allowed values
- ANALYTICS_CLICKS - Returns only click counts.
- ANALYTICS_TOP_STRINGS - Returns only top string counts.
- FULL - Returns the creation timestamp and all available analytics.
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
- "kind": "urlshortener#url", # The fixed string "urlshortener#url".
- "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
- "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
- "week": { # Click analytics over the last week.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "allTime": { # Click analytics over all time.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "twoHours": { # Click analytics over the last two hours.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "day": { # Click analytics over the last day.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "month": { # Click analytics over the last month.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- },
- "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
- "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
- }
-
-
-
- insert(body)
-
Creates a new short URL.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
- "kind": "urlshortener#url", # The fixed string "urlshortener#url".
- "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
- "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
- "week": { # Click analytics over the last week.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "allTime": { # Click analytics over all time.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "twoHours": { # Click analytics over the last two hours.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "day": { # Click analytics over the last day.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "month": { # Click analytics over the last month.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- },
- "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
- "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
- }
-
-
-Returns:
- An object of the form:
-
- {
- "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
- "kind": "urlshortener#url", # The fixed string "urlshortener#url".
- "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
- "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
- "week": { # Click analytics over the last week.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "allTime": { # Click analytics over all time.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "twoHours": { # Click analytics over the last two hours.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "day": { # Click analytics over the last day.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "month": { # Click analytics over the last month.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- },
- "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
- "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
- }
-
-
-
- list(start_token=None, projection=None)
-
Retrieves a list of URLs shortened by a user.
-
-Args:
- start_token: string, Token for requesting successive pages of results.
- projection: string, Additional information to return.
- Allowed values
- ANALYTICS_CLICKS - Returns short URL click counts.
- FULL - Returns short URL click counts.
-
-Returns:
- An object of the form:
-
- {
- "nextPageToken": "A String", # A token to provide to get the next page of results.
- "items": [ # A list of URL resources.
- {
- "status": "A String", # Status of the target URL. Possible values: "OK", "MALWARE", "PHISHING", or "REMOVED". A URL might be marked "REMOVED" if it was flagged as spam, for example.
- "kind": "urlshortener#url", # The fixed string "urlshortener#url".
- "created": "A String", # Time the short URL was created; ISO 8601 representation using the yyyy-MM-dd'T'HH:mm:ss.SSSZZ format, e.g. "2010-10-14T19:01:24.944+00:00".
- "analytics": { # A summary of the click analytics for the short and long URL. Might not be present if not requested or currently unavailable.
- "week": { # Click analytics over the last week.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "allTime": { # Click analytics over all time.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "twoHours": { # Click analytics over the last two hours.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "day": { # Click analytics over the last day.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- "month": { # Click analytics over the last month.
- "shortUrlClicks": "A String", # Number of clicks on this short URL.
- "countries": [ # Top countries (expressed as country codes), e.g. "US" or "DE"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "platforms": [ # Top platforms or OSes, e.g. "Windows"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "browsers": [ # Top browsers, e.g. "Chrome"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "referrers": [ # Top referring hosts, e.g. "www.google.com"; sorted by (descending) click counts. Only present if this data is available.
- {
- "count": "A String", # Number of clicks for this top entry, e.g. for this particular country or browser.
- "id": "A String", # Label assigned to this top entry, e.g. "US" or "Chrome".
- },
- ],
- "longUrlClicks": "A String", # Number of clicks on all goo.gl short URLs pointing to this long URL.
- },
- },
- "longUrl": "A String", # Long URL, e.g. "http://www.google.com/". Might not be present if the status is "REMOVED".
- "id": "A String", # Short URL, e.g. "http://goo.gl/l6MS".
- },
- ],
- "kind": "urlshortener#urlHistory", # The fixed string "urlshortener#urlHistory".
- "itemsPerPage": 42, # Number of items returned with each full "page" of results. Note that the last page could have fewer items than the "itemsPerPage" value.
- "totalItems": 42, # Total number of short URLs associated with this user (may be approximate).
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/v1dev_v1dev.channels.html b/docs/dyn/v1dev_v1dev.channels.html
deleted file mode 100644
index 70cd2c8..0000000
--- a/docs/dyn/v1dev_v1dev.channels.html
+++ /dev/null
@@ -1,106 +0,0 @@
-
-
-
-
A description of how to use this function
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/v1dev_v1dev.html b/docs/dyn/v1dev_v1dev.html
deleted file mode 100644
index f692b42..0000000
--- a/docs/dyn/v1dev_v1dev.html
+++ /dev/null
@@ -1,92 +0,0 @@
-
-
-
-
Deletes an item.
-
-Args:
- sessionId: string, The session ID. (required)
- itemId: string, The item ID. (required)
-
-
-
-
- get(sessionId, itemId)
-
Gets one item by ID.
-
-Args:
- sessionId: string, The session ID. (required)
- itemId: string, The item ID. (required)
-
-Returns:
- An object of the form:
-
- {
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-
- insert(sessionId, body)
-
Inserts a new item into this session.
-
-Args:
- sessionId: string, The session ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-
- list(sessionId)
-
Retrieves a list of items in a session.
-
-Args:
- sessionId: string, The session ID. (required)
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The list of Wax items.
- {
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- },
- ],
- "kind": "wax#waxList", # The kind of object this is.
- }
-
-
-
- patch(sessionId, itemId, body)
-
Updates an existing item. This method supports patch semantics.
-
-Args:
- sessionId: string, The session ID. (required)
- itemId: string, The item ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-
- update(sessionId, itemId, body)
-
Updates an existing item.
-
-Args:
- sessionId: string, The session ID. (required)
- itemId: string, The item ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "blobOfData": "A String", # A blob of data stored in the item.
- "sizeInBytes": 42, # The size (in bytes) of the blob of data.
- "kind": "wax#waxDataItem", # The kind of object this is.
- "id": "A String", # The item ID.
- "name": "A String", # The name of the item.
- }
-
-
-
- watch(sessionId, body)
-
Subscribe to changes to any item in a session.
-
-Args:
- sessionId: string, The session ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
- watchToOneItem(sessionId, itemId, body)
-
Subscribe to changes to one item in a session.
-
-Args:
- sessionId: string, The session ID. (required)
- itemId: string, The item ID. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-Returns:
- An object of the form:
-
- {
- "resourceUri": "A String", # The canonicalized ID of the watched resource.
- "kind": "api#channel", # A channel watching an API resource
- "resourceId": "A String", # An opaque id that identifies the resource that is being watched. Stable across different API versions
- "token": "A String", # An arbitrary string associated with the channel that is delivered to the target address with each event delivered over this channel.
- "params": { # Additional parameters controlling delivery channel behavior
- "a_key": "A String", # Declares a new parameter by name.
- },
- "expiration": "A String", # The expiration instant for this channel if it is defined.
- "address": "A String", # The address of the receiving entity where events are delivered. Specific to the channel type.
- "type": "A String", # The type of delivery mechanism used by this channel
- "id": "A String", # A UUID for the channel
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/v1dev_v1dev.sessions.html b/docs/dyn/v1dev_v1dev.sessions.html
deleted file mode 100644
index f3c8574..0000000
--- a/docs/dyn/v1dev_v1dev.sessions.html
+++ /dev/null
@@ -1,160 +0,0 @@
-
-
-
-
Creates a new session. New sessions are initialized with two pre-defined items. Just like wax.sessions.newsession, but matches other implementations of Wax in Endpoints.
Removes a session. Clients that create sessions with long or infinite durations should call this method to clean up after themselves.
-
Method Details
-
- create(body)
-
Creates a new session. New sessions are initialized with two pre-defined items. Just like wax.sessions.newsession, but matches other implementations of Wax in Endpoints.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "sessionName": "A String", # Usually a short, human-readable name that describes a session. This name will appear as part of the session ID, which is generated by the API when the session is created.
- "durationInMillis": "A String", # Session duration in milliseconds.
- }
-
-
-Returns:
- An object of the form:
-
- {
- "newSessionId": "A String", # The session ID.
- "kind": "wax#waxNewSession", # The kind of object this is.
- }
-
-
-
- newSession(body, sessionName=None)
-
Creates a new session. New sessions are initialized with two pre-defined items.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "newSessionParams": { # Parameters used when requesting a new session.
- "kind": "wax#waxNewSessionParams", # The kind of object this is.
- "durationInMillis": "A String", # Session duration in milliseconds.
- },
- "sessionName": "A String", # Usually a short, human-readable name that describes a session. This name will appear as part of the session ID, which is generated by the API when the session is created.
- }
-
- sessionName: string, Human-readable name that describes a session. This name will be part of the session ID.
-
-Returns:
- An object of the form:
-
- {
- "newSessionId": "A String", # The session ID.
- "kind": "wax#waxNewSession", # The kind of object this is.
- }
-
-
-
- removeSession(body, sessionId=None)
-
Removes a session. Clients that create sessions with long or infinite durations should call this method to clean up after themselves.
-
-Args:
- body: object, The request body. (required)
- The object takes the form of:
-
-{
- "sessionId": "A String", # The ID corresponding to the session to be removed.
- }
-
- sessionId: string, The session ID.
-
-Returns:
- An object of the form:
-
- {
- "kind": "wax#waxRemoveSession", # The kind of object this is.
- "removedSessionId": "A String", # The ID corresponding to the session that was removed.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/webfonts_v1.html b/docs/dyn/webfonts_v1.html
deleted file mode 100644
index 2ae835b..0000000
--- a/docs/dyn/webfonts_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Retrieves the list of fonts currently served by the Google Fonts Developer API
-
Method Details
-
- list(sort=None)
-
Retrieves the list of fonts currently served by the Google Fonts Developer API
-
-Args:
- sort: string, Enables sorting of the list
- Allowed values
- alpha - Sort alphabetically
- date - Sort by date added
- popularity - Sort by popularity
- style - Sort by number of styles
- trending - Sort by trending
-
-Returns:
- An object of the form:
-
- {
- "items": [ # The list of fonts currently served by the Google Fonts API.
- {
- "files": { # The font files (with all supported scripts) for each one of the available variants, as a key : value map.
- "a_key": "A String", # The font file URL (value) for an specific variant (key).
- },
- "kind": "webfonts#webfont", # This kind represents a webfont object in the webfonts service.
- "family": "A String", # The name of the font.
- "subsets": [ # The scripts supported by the font.
- "A String",
- ],
- "lastModified": "A String", # The date (format "yyyy-MM-dd") the font was modified for the last time.
- "version": "A String", # The font version.
- "variants": [ # The available variants for the font.
- "A String",
- ],
- },
- ],
- "kind": "webfonts#webfontList", # This kind represents a list of webfont objects in the webfonts service.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtubeAnalytics_v1.html b/docs/dyn/youtubeAnalytics_v1.html
deleted file mode 100644
index 14efd64..0000000
--- a/docs/dyn/youtubeAnalytics_v1.html
+++ /dev/null
@@ -1,82 +0,0 @@
-
-
-
-
Retrieve your YouTube Analytics reports.
-
-Args:
- ids: string, Identifies the YouTube channel or content owner for which you are retrieving YouTube Analytics data.
-- To request data for a YouTube user, set the ids parameter value to channel==CHANNEL_ID, where CHANNEL_ID specifies the unique YouTube channel ID.
-- To request data for a YouTube CMS content owner, set the ids parameter value to contentOwner==OWNER_NAME, where OWNER_NAME is the CMS name of the content owner. (required)
- start_date: string, The start date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. (required)
- end_date: string, The end date for fetching YouTube Analytics data. The value should be in YYYY-MM-DD format. (required)
- metrics: string, A comma-separated list of YouTube Analytics metrics, such as views or likes,dislikes. See the Available Reports document for a list of the reports that you can retrieve and the metrics available in each report, and see the Metrics document for definitions of those metrics. (required)
- sort: string, A comma-separated list of dimensions or metrics that determine the sort order for YouTube Analytics data. By default the sort order is ascending. The '-' prefix causes descending sort order.
- dimensions: string, A comma-separated list of YouTube Analytics dimensions, such as views or ageGroup,gender. See the Available Reports document for a list of the reports that you can retrieve and the dimensions used for those reports. Also see the Dimensions document for definitions of those dimensions.
- filters: string, A list of filters that should be applied when retrieving YouTube Analytics data. The Available Reports document identifies the dimensions that can be used to filter each report, and the Dimensions document defines those dimensions. If a request uses multiple filters, join them together with a semicolon (;), and the returned result table will satisfy both filters. For example, a filters parameter value of video==dMH0bHeiRNg;country==IT restricts the result set to include data for the given video in Italy.
- max_results: integer, The maximum number of rows to include in the response.
- start_index: integer, An index of the first entity to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter (one-based, inclusive).
-
-Returns:
- An object of the form:
-
- { # Contains a single result table. The table is returned as an array of rows that contain the values for the cells of the table. Depending on the metric or dimension, the cell can contain a string (video ID, country code) or a number (number of views or number of likes).
- "kind": "youtubeAnalytics#resultTable", # This value specifies the type of data included in the API response. For the query method, the kind property value will be youtubeAnalytics#resultTable.
- "rows": [ # The list contains all rows of the result table. Each item in the list is an array that contains comma-delimited data corresponding to a single row of data. The order of the comma-delimited data fields will match the order of the columns listed in the columnHeaders field. If no data is available for the given query, the rows element will be omitted from the response. The response for a query with the day dimension will not contain rows for the most recent days.
- [
- "",
- ],
- ],
- "columnHeaders": [ # This value specifies information about the data returned in the rows fields. Each item in the columnHeaders list identifies a field returned in the rows value, which contains a list of comma-delimited data. The columnHeaders list will begin with the dimensions specified in the API request, which will be followed by the metrics specified in the API request. The order of both dimensions and metrics will match the ordering in the API request. For example, if the API request contains the parameters dimensions=ageGroup,gender&metrics=viewerPercentage, the API response will return columns in this order: ageGroup,gender,viewerPercentage.
- {
- "dataType": "A String", # The type of the data in the column (STRING, INTEGER, FLOAT, etc.).
- "columnType": "A String", # The type of the column (DIMENSION or METRIC).
- "name": "A String", # The name of the dimension or metric.
- },
- ],
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.activities.html b/docs/dyn/youtube_v3.activities.html
deleted file mode 100644
index d2744cb..0000000
--- a/docs/dyn/youtube_v3.activities.html
+++ /dev/null
@@ -1,575 +0,0 @@
-
-
-
-
Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel, events associated with the user's subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each user.
Posts a bulletin for a specific channel. (The user submitting the request must be authorized to act on the channel's behalf.)
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and contentDetails. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
- "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The title of the resource primarily associated with the activity.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel responsible for this activity
- "type": "A String", # The type of activity that the resource describes.
- "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
- "description": "A String", # The description of the resource primarily associated with the activity.
- },
- "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
- "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
- "playlistItemId": "A String", # ID of the item within the playlist.
- },
- "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
- "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
- "adTag": "A String", # The URL the client should fetch to request a promoted item.
- "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
- "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
- "descriptionText": "A String", # The text description to accompany the promoted item.
- "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
- },
- "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "imageUrl": "A String", # An image of the post's author.
- "type": "A String", # The name of the social network.
- "referenceUrl": "A String", # The URL of the social network post.
- "author": "A String", # The author of the social network post.
- },
- "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
- },
- "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "reason": "A String", # The reason that the resource is recommended to the user.
- "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- },
- "kind": "youtube#activity", # The kind, fixed to "youtube#activity".
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
- }
-
-
-Returns:
- An object of the form:
-
- { # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
- "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The title of the resource primarily associated with the activity.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel responsible for this activity
- "type": "A String", # The type of activity that the resource describes.
- "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
- "description": "A String", # The description of the resource primarily associated with the activity.
- },
- "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
- "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
- "playlistItemId": "A String", # ID of the item within the playlist.
- },
- "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
- "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
- "adTag": "A String", # The URL the client should fetch to request a promoted item.
- "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
- "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
- "descriptionText": "A String", # The text description to accompany the promoted item.
- "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
- },
- "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "imageUrl": "A String", # An image of the post's author.
- "type": "A String", # The name of the social network.
- "referenceUrl": "A String", # The URL of the social network post.
- "author": "A String", # The author of the social network post.
- },
- "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
- },
- "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "reason": "A String", # The reason that the resource is recommended to the user.
- "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- },
- "kind": "youtube#activity", # The kind, fixed to "youtube#activity".
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
- }
Returns a list of channel activity events that match the request criteria. For example, you can retrieve events associated with a particular channel, events associated with the user's subscriptions and Google+ friends, or the YouTube home page feed, which is customized for each user.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more activity resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a activity resource, the snippet property contains other properties that identify the type of activity, a display title for the activity, and so forth. If you set part=snippet, the API response will also contain all of those nested properties. (required)
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- publishedBefore: string, The publishedBefore parameter specifies the date and time before which an activity must have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be excluded from the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- channelId: string, The channelId parameter specifies a unique YouTube channel ID. The API will then return a list of that channel's activities.
- mine: boolean, Set this parameter's value to true to retrieve a feed of the authenticated user's activities.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- regionCode: string, The regionCode parameter instructs the API to return results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
- home: boolean, Set this parameter's value to true to retrieve the activity feed that displays on the YouTube home page for the currently authenticated user.
- publishedAfter: string, The publishedAfter parameter specifies the earliest date and time that an activity could have occurred for that activity to be included in the API response. If the parameter value specifies a day, but not a time, then any activities that occurred that day will be included in the result set. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
-
-Returns:
- An object of the form:
-
- { # A paginated list of activities returned as a response to youtube.activities.list calls.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#activityListResponse", # The type of the API response. For this operation, the value will be youtube#activityListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of activities, or events, that match the request criteria.
- { # An activity resource contains information about an action that a particular channel, or user, has taken on YouTube.The actions reported in activity feeds include rating a video, sharing a video, marking a video as a favorite, commenting on a video, uploading a video, and so forth. Each activity resource identifies the type of action, the channel associated with the action, and the resource(s) associated with the action, such as the video that was rated or uploaded.
- "snippet": { # Basic details about an activity, including title, description, thumbnails, activity type and group. # The snippet object contains basic details about the activity, including the activity's type and group ID.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the resource that is primarily associated with the activity. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The title of the resource primarily associated with the activity.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel associated with the activity.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel responsible for this activity
- "type": "A String", # The type of activity that the resource describes.
- "groupId": "A String", # The group ID associated with the activity. A group ID identifies user events that are associated with the same user and resource. For example, if a user rates a video and marks the same video as a favorite, the entries for those events would have the same group ID in the user's activity feed. In your user interface, you can avoid repetition by grouping events with the same groupId value.
- "description": "A String", # The description of the resource primarily associated with the activity.
- },
- "contentDetails": { # Details about the content of an activity: the video that was shared, the channel that was subscribed to, etc. # The contentDetails object contains information about the content associated with the activity. For example, if the snippet.type value is videoRated, then the contentDetails object's content identifies the rated video.
- "comment": { # Information about a resource that received a comment. # The comment object contains information about a resource that received a comment. This property is only present if the snippet.type is comment.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with the comment.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "playlistItem": { # Information about a new playlist item. # The playlistItem object contains information about a new playlist item. This property is only present if the snippet.type is playlistItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information about the resource that was added to the playlist.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "playlistId": "A String", # The value that YouTube uses to uniquely identify the playlist.
- "playlistItemId": "A String", # ID of the item within the playlist.
- },
- "like": { # Information about a resource that received a positive (like) rating. # The like object contains information about a resource that received a positive (like) rating. This property is only present if the snippet.type is like.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the rated resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "promotedItem": { # Details about a resource which is being promoted. # The promotedItem object contains details about a resource which is being promoted. This property is only present if the snippet.type is promotedItem.
- "ctaType": "A String", # The type of call-to-action, a message to the user indicating action that can be taken.
- "adTag": "A String", # The URL the client should fetch to request a promoted item.
- "destinationUrl": "A String", # The URL the client should direct the user to, if the user chooses to visit the advertiser's website.
- "creativeViewUrl": "A String", # The URL the client should ping to indicate that the user was shown this promoted item.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the promoted video.
- "descriptionText": "A String", # The text description to accompany the promoted item.
- "clickTrackingUrl": "A String", # The URL the client should ping to indicate that the user clicked through on this promoted item.
- },
- "social": { # Details about a social network post. # The social object contains details about a social network post. This property is only present if the snippet.type is social.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object encapsulates information that identifies the resource associated with a social network post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "imageUrl": "A String", # An image of the post's author.
- "type": "A String", # The name of the social network.
- "referenceUrl": "A String", # The URL of the social network post.
- "author": "A String", # The author of the social network post.
- },
- "favorite": { # Information about a video that was marked as a favorite video. # The favorite object contains information about a video that was marked as a favorite video. This property is only present if the snippet.type is favorite.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was marked as a favorite.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "upload": { # Information about the uploaded video. # The upload object contains information about the uploaded video. This property is only present if the snippet.type is upload.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the uploaded video.
- },
- "recommendation": { # Information that identifies the recommended resource. # The recommendation object contains information about a recommended resource. This property is only present if the snippet.type is recommendation.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the recommended resource.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "reason": "A String", # The reason that the resource is recommended to the user.
- "seedResourceId": { # A resource id is a generic reference that points to another YouTube resource. # The seedResourceId object contains information about the resource that caused the recommendation.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "subscription": { # Information about a channel that a user subscribed to. # The subscription object contains information about a channel that a user subscribed to. This property is only present if the snippet.type is subscription.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "bulletin": { # Details about a channel bulletin post. # The bulletin object contains details about a channel bulletin post. This object is only present if the snippet.type is bulletin.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource associated with a bulletin post.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- "channelItem": { # Details about a resource which was added to a channel. # The channelItem object contains details about a resource which was added to a channel. This property is only present if the snippet.type is channelItem.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The resourceId object contains information that identifies the resource that was added to the channel.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- },
- "kind": "youtube#activity", # The kind, fixed to "youtube#activity".
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the activity.
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.channelBanners.html b/docs/dyn/youtube_v3.channelBanners.html
deleted file mode 100644
index b567a25..0000000
--- a/docs/dyn/youtube_v3.channelBanners.html
+++ /dev/null
@@ -1,108 +0,0 @@
-
-
-
-
Uploads a channel banner to YouTube.
-
-Args:
- body: object, The request body.
- The object takes the form of:
-
-{ # A channel banner returned as the response to a channel_banner.insert call.
- "url": "A String", # The URL of this banner image.
- "kind": "youtube#channelBannerResource", # The kind, fixed to "youtube#channelBannerResource".
- "etag": "A String", # Etag of this resource.
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A channel banner returned as the response to a channel_banner.insert call.
- "url": "A String", # The URL of this banner image.
- "kind": "youtube#channelBannerResource", # The kind, fixed to "youtube#channelBannerResource".
- "etag": "A String", # Etag of this resource.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.channels.html b/docs/dyn/youtube_v3.channels.html
deleted file mode 100644
index 56de365..0000000
--- a/docs/dyn/youtube_v3.channels.html
+++ /dev/null
@@ -1,717 +0,0 @@
-
-
-
-
Returns a collection of zero or more channel resources that match the request criteria.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more channel resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, statistics, topicDetails, and invideoPromotion.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a channel resource, the contentDetails property contains other properties, such as the uploads properties. As such, if you set part=contentDetails, the API response will also contain all of those nested properties. (required)
- managedByMe: boolean, Set this parameter's value to true to instruct the API to only return channels managed by the content owner that the onBehalfOfContentOwner parameter specifies. The user must be authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.
- onBehalfOfContentOwner: string, The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.
- forUsername: string, The forUsername parameter specifies a YouTube username, thereby requesting the channel associated with that username.
- pageToken: string, The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
- categoryId: string, The categoryId parameter specifies a YouTube guide category, thereby requesting YouTube channels associated with that category.
- maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set.
- mine: boolean, Set this parameter's value to true to instruct the API to only return channels owned by the authenticated user.
- mySubscribers: boolean, Set this parameter's value to true to retrieve a list of channels that subscribed to the authenticated user's channel.
- id: string, The id parameter specifies a comma-separated list of the YouTube channel ID(s) for the resource(s) that are being retrieved. In a channel resource, the id property specifies the channel's YouTube channel ID.
-
-Returns:
- An object of the form:
-
- { # A paginated list of channels returned as the response to a youtube.channels.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#channelListResponse", # The type of the API response. For this operation, the value will be youtube#channelListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of channels that match the request criteria.
- { # A channel resource contains information about a YouTube channel.
- "status": { # JSON template for the status part of a channel. # The status object encapsulates information about the privacy status of the channel.
- "privacyStatus": "A String", # Privacy status of the channel.
- "isLinked": True or False, # If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.
- },
- "invideoPromotion": { # Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id. # The invideoPromotion object encapsulates information about promotion campaign associated with the channel.
- "defaultTiming": { # Describes a temporal position of a visual widget inside a video. # The default temporal position within the video where the promoted item will be displayed. Can be overriden by more specific timing in the item.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "items": [ # List of promoted items in decreasing priority.
- { # Describes a single promoted item.
- "timing": { # Describes a temporal position of a visual widget inside a video. # The temporal position within the video where the promoted item will be displayed. If present, it overrides the default timing.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "customMessage": "A String", # A custom message to display for this promotion. This field is currently ignored unless the promoted item is a website.
- "id": { # Describes a single promoted item id. It is a union of various possible types. # Identifies the promoted item.
- "websiteUrl": "A String", # If the promoted item represents a website, this field represents the url pointing to the website. This field will be present only if type has the value website.
- "type": "A String", # Describes the type of the promoted item.
- "videoId": "A String", # If the promoted item represents a video, this field represents the unique YouTube ID identifying it. This field will be present only if type has the value video.
- },
- },
- ],
- "position": { # Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one. # The spatial position within the video where the promoted item will be displayed.
- "cornerPosition": "A String", # Describes in which corner of the video the visual widget will appear.
- "type": "A String", # Defines the position type.
- },
- },
- "kind": "youtube#channel", # The kind, fixed to "youtube#channel".
- "statistics": { # Statistics about a channel: number of subscribers, number of videos in the channel, etc. # The statistics object encapsulates statistics for the channel.
- "commentCount": "A String", # The number of comments for the channel.
- "subscriberCount": "A String", # The number of subscribers that the channel has.
- "videoCount": "A String", # The number of videos uploaded to the channel.
- "viewCount": "A String", # The number of times the channel has been viewed.
- },
- "topicDetails": { # Freebase topic information related to the channel. # The topicDetails object encapsulates information about Freebase topics associated with the channel.
- "topicIds": [ # A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- },
- "contentDetails": { # Details about the content of a channel. # The contentDetails object encapsulates information about the channel's content.
- "relatedPlaylists": {
- "watchLater": "A String", # The ID of the playlist that contains the channel"s watch later playlist. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "watchHistory": "A String", # The ID of the playlist that contains the channel"s watch history. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "likes": "A String", # The ID of the playlist that contains the channel"s liked videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "favorites": "A String", # The ID of the playlist that contains the channel"s favorite videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "uploads": "A String", # The ID of the playlist that contains the channel"s uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos.
- },
- "googlePlusUserId": "A String", # The googlePlusUserId object identifies the Google+ profile ID associated with this channel.
- },
- "brandingSettings": { # Branding properties of a YouTube channel. # The brandingSettings object encapsulates information about the branding of the channel.
- "image": { # Branding properties for images associated with the channel. # Branding properties for branding images.
- "largeBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 854px by 70px image that appears below the video player in the expanded video view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerImageUrl": "A String", # Banner image. Desktop size (1060x175).
- "backgroundImageUrl": { # Represent a property available in different languages. # The URL for the background image shown on the video watch page. The image should be 1200px by 615px, with a maximum file size of 128k.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "largeBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the large banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerMobileImageUrl": "A String", # Banner image. Mobile size (640x175).
- "smallBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the small banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "smallBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 640px by 70px banner image that appears below the video player in the default view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerTabletHdImageUrl": "A String", # Banner image. Tablet size high resolution (2276x377).
- "bannerTabletLowImageUrl": "A String", # Banner image. Tablet size low resolution (1138x188).
- "trackingImageUrl": "A String", # The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages.
- "bannerMobileMediumHdImageUrl": "A String", # Banner image. Mobile size medium/high resolution (960x263).
- "bannerMobileHdImageUrl": "A String", # Banner image. Mobile size high resolution (1280x360).
- "bannerExternalUrl": "A String", # This is used only in update requests; if it's set, we use this URL to generate all of the above banner URLs.
- "bannerTabletImageUrl": "A String", # Banner image. Tablet size (1707x283).
- "bannerMobileExtraHdImageUrl": "A String", # Banner image. Mobile size high resolution (1440x395).
- "bannerMobileLowImageUrl": "A String", # Banner image. Mobile size low resolution (320x88).
- "watchIconImageUrl": "A String", # The URL for the image that appears above the top-left corner of the video player. This is a 25-pixel-high image with a flexible width that cannot exceed 170 pixels.
- "bannerTvImageUrl": "A String", # Banner image. TV size (2120x1192).
- "bannerTabletExtraHdImageUrl": "A String", # Banner image. Tablet size extra high resolution (2560x424).
- },
- "watch": { # Branding properties for the watch. # Branding properties for the watch page.
- "textColor": "A String", # The background color for the video watch page's branded area.
- "featuredPlaylistId": "A String", # An ID that uniquely identifies a playlist that displays next to the video player.
- "backgroundColor": "A String", # The text color for the video watch page's branded area.
- },
- "channel": { # Branding properties for the channel view. # Branding properties for the channel view.
- "description": "A String", # Specifies the channel description.
- "title": "A String", # Specifies the channel title.
- "moderateComments": True or False, # Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.
- "showBrowseView": True or False, # Whether the tab to browse the videos should be displayed.
- "featuredChannelsTitle": "A String", # Title for the featured channels tab.
- "unsubscribedTrailer": "A String", # The trailer of the channel, for users that are not subscribers.
- "keywords": "A String", # Lists keywords associated with the channel, comma-separated.
- "profileColor": "A String", # A prominent color that can be rendered on this channel page.
- "defaultTab": "A String", # Which content tab users should see when viewing the channel.
- "featuredChannelsUrls": [ # The list of featured channels.
- "A String",
- ],
- "trackingAnalyticsAccountId": "A String", # The ID for a Google Analytics account to track and measure traffic to the channels.
- "showRelatedChannels": True or False, # Whether related channels should be proposed.
- },
- "hints": [ # Additional experimental branding properties.
- { # A pair Property / Value.
- "property": "A String", # A property.
- "value": "A String", # The property's value.
- },
- ],
- },
- "conversionPings": { # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel. # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.
- "pings": [ # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- { # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- "conversionUrl": "A String", # The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- "snippet": { # Basic details about a channel, including title, description and thumbnails. # The snippet object contains basic details about the channel, such as its title, description, and thumbnail images.
- "title": "A String", # The channel's title.
- "description": "A String", # The description of the channel.
- "publishedAt": "A String", # The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the channel.
- },
- ],
- "etag": "A String", # The ETag for the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Updates a channel's metadata.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are id and invideoPromotion.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A channel resource contains information about a YouTube channel.
- "status": { # JSON template for the status part of a channel. # The status object encapsulates information about the privacy status of the channel.
- "privacyStatus": "A String", # Privacy status of the channel.
- "isLinked": True or False, # If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.
- },
- "invideoPromotion": { # Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id. # The invideoPromotion object encapsulates information about promotion campaign associated with the channel.
- "defaultTiming": { # Describes a temporal position of a visual widget inside a video. # The default temporal position within the video where the promoted item will be displayed. Can be overriden by more specific timing in the item.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "items": [ # List of promoted items in decreasing priority.
- { # Describes a single promoted item.
- "timing": { # Describes a temporal position of a visual widget inside a video. # The temporal position within the video where the promoted item will be displayed. If present, it overrides the default timing.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "customMessage": "A String", # A custom message to display for this promotion. This field is currently ignored unless the promoted item is a website.
- "id": { # Describes a single promoted item id. It is a union of various possible types. # Identifies the promoted item.
- "websiteUrl": "A String", # If the promoted item represents a website, this field represents the url pointing to the website. This field will be present only if type has the value website.
- "type": "A String", # Describes the type of the promoted item.
- "videoId": "A String", # If the promoted item represents a video, this field represents the unique YouTube ID identifying it. This field will be present only if type has the value video.
- },
- },
- ],
- "position": { # Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one. # The spatial position within the video where the promoted item will be displayed.
- "cornerPosition": "A String", # Describes in which corner of the video the visual widget will appear.
- "type": "A String", # Defines the position type.
- },
- },
- "kind": "youtube#channel", # The kind, fixed to "youtube#channel".
- "statistics": { # Statistics about a channel: number of subscribers, number of videos in the channel, etc. # The statistics object encapsulates statistics for the channel.
- "commentCount": "A String", # The number of comments for the channel.
- "subscriberCount": "A String", # The number of subscribers that the channel has.
- "videoCount": "A String", # The number of videos uploaded to the channel.
- "viewCount": "A String", # The number of times the channel has been viewed.
- },
- "topicDetails": { # Freebase topic information related to the channel. # The topicDetails object encapsulates information about Freebase topics associated with the channel.
- "topicIds": [ # A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- },
- "contentDetails": { # Details about the content of a channel. # The contentDetails object encapsulates information about the channel's content.
- "relatedPlaylists": {
- "watchLater": "A String", # The ID of the playlist that contains the channel"s watch later playlist. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "watchHistory": "A String", # The ID of the playlist that contains the channel"s watch history. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "likes": "A String", # The ID of the playlist that contains the channel"s liked videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "favorites": "A String", # The ID of the playlist that contains the channel"s favorite videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "uploads": "A String", # The ID of the playlist that contains the channel"s uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos.
- },
- "googlePlusUserId": "A String", # The googlePlusUserId object identifies the Google+ profile ID associated with this channel.
- },
- "brandingSettings": { # Branding properties of a YouTube channel. # The brandingSettings object encapsulates information about the branding of the channel.
- "image": { # Branding properties for images associated with the channel. # Branding properties for branding images.
- "largeBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 854px by 70px image that appears below the video player in the expanded video view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerImageUrl": "A String", # Banner image. Desktop size (1060x175).
- "backgroundImageUrl": { # Represent a property available in different languages. # The URL for the background image shown on the video watch page. The image should be 1200px by 615px, with a maximum file size of 128k.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "largeBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the large banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerMobileImageUrl": "A String", # Banner image. Mobile size (640x175).
- "smallBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the small banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "smallBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 640px by 70px banner image that appears below the video player in the default view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerTabletHdImageUrl": "A String", # Banner image. Tablet size high resolution (2276x377).
- "bannerTabletLowImageUrl": "A String", # Banner image. Tablet size low resolution (1138x188).
- "trackingImageUrl": "A String", # The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages.
- "bannerMobileMediumHdImageUrl": "A String", # Banner image. Mobile size medium/high resolution (960x263).
- "bannerMobileHdImageUrl": "A String", # Banner image. Mobile size high resolution (1280x360).
- "bannerExternalUrl": "A String", # This is used only in update requests; if it's set, we use this URL to generate all of the above banner URLs.
- "bannerTabletImageUrl": "A String", # Banner image. Tablet size (1707x283).
- "bannerMobileExtraHdImageUrl": "A String", # Banner image. Mobile size high resolution (1440x395).
- "bannerMobileLowImageUrl": "A String", # Banner image. Mobile size low resolution (320x88).
- "watchIconImageUrl": "A String", # The URL for the image that appears above the top-left corner of the video player. This is a 25-pixel-high image with a flexible width that cannot exceed 170 pixels.
- "bannerTvImageUrl": "A String", # Banner image. TV size (2120x1192).
- "bannerTabletExtraHdImageUrl": "A String", # Banner image. Tablet size extra high resolution (2560x424).
- },
- "watch": { # Branding properties for the watch. # Branding properties for the watch page.
- "textColor": "A String", # The background color for the video watch page's branded area.
- "featuredPlaylistId": "A String", # An ID that uniquely identifies a playlist that displays next to the video player.
- "backgroundColor": "A String", # The text color for the video watch page's branded area.
- },
- "channel": { # Branding properties for the channel view. # Branding properties for the channel view.
- "description": "A String", # Specifies the channel description.
- "title": "A String", # Specifies the channel title.
- "moderateComments": True or False, # Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.
- "showBrowseView": True or False, # Whether the tab to browse the videos should be displayed.
- "featuredChannelsTitle": "A String", # Title for the featured channels tab.
- "unsubscribedTrailer": "A String", # The trailer of the channel, for users that are not subscribers.
- "keywords": "A String", # Lists keywords associated with the channel, comma-separated.
- "profileColor": "A String", # A prominent color that can be rendered on this channel page.
- "defaultTab": "A String", # Which content tab users should see when viewing the channel.
- "featuredChannelsUrls": [ # The list of featured channels.
- "A String",
- ],
- "trackingAnalyticsAccountId": "A String", # The ID for a Google Analytics account to track and measure traffic to the channels.
- "showRelatedChannels": True or False, # Whether related channels should be proposed.
- },
- "hints": [ # Additional experimental branding properties.
- { # A pair Property / Value.
- "property": "A String", # A property.
- "value": "A String", # The property's value.
- },
- ],
- },
- "conversionPings": { # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel. # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.
- "pings": [ # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- { # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- "conversionUrl": "A String", # The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- "snippet": { # Basic details about a channel, including title, description and thumbnails. # The snippet object contains basic details about the channel, such as its title, description, and thumbnail images.
- "title": "A String", # The channel's title.
- "description": "A String", # The description of the channel.
- "publishedAt": "A String", # The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the channel.
-}
-
- onBehalfOfContentOwner: string, The onBehalfOfContentOwner parameter indicates that the authenticated user is acting on behalf of the content owner specified in the parameter value. This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and get access to all their video and channel data, without having to provide authentication credentials for each individual channel. The actual CMS account that the user authenticates with needs to be linked to the specified YouTube content owner.
-
-Returns:
- An object of the form:
-
- { # A channel resource contains information about a YouTube channel.
- "status": { # JSON template for the status part of a channel. # The status object encapsulates information about the privacy status of the channel.
- "privacyStatus": "A String", # Privacy status of the channel.
- "isLinked": True or False, # If true, then the user is linked to either a YouTube username or G+ account. Otherwise, the user doesn't have a public YouTube identity.
- },
- "invideoPromotion": { # Describes an invideo promotion campaign consisting of multiple promoted items. A campaign belongs to a single channel_id. # The invideoPromotion object encapsulates information about promotion campaign associated with the channel.
- "defaultTiming": { # Describes a temporal position of a visual widget inside a video. # The default temporal position within the video where the promoted item will be displayed. Can be overriden by more specific timing in the item.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "items": [ # List of promoted items in decreasing priority.
- { # Describes a single promoted item.
- "timing": { # Describes a temporal position of a visual widget inside a video. # The temporal position within the video where the promoted item will be displayed. If present, it overrides the default timing.
- "offsetMs": "A String", # Defines the time at which the promotion will appear. Depending on the value of type the value of the offsetMs field will represent a time offset from the start or from the end of the video, expressed in milliseconds.
- "type": "A String", # Describes a timing type. If the value is offsetFromStart, then the offsetMs field represents an offset from the start of the video. If the value is offsetFromEnd, then the offsetMs field represents an offset from the end of the video.
- "durationMs": "A String", # Defines the duration in milliseconds for which the promotion should be displayed. If missing, the client should use the default.
- },
- "customMessage": "A String", # A custom message to display for this promotion. This field is currently ignored unless the promoted item is a website.
- "id": { # Describes a single promoted item id. It is a union of various possible types. # Identifies the promoted item.
- "websiteUrl": "A String", # If the promoted item represents a website, this field represents the url pointing to the website. This field will be present only if type has the value website.
- "type": "A String", # Describes the type of the promoted item.
- "videoId": "A String", # If the promoted item represents a video, this field represents the unique YouTube ID identifying it. This field will be present only if type has the value video.
- },
- },
- ],
- "position": { # Describes the spatial position of a visual widget inside a video. It is a union of various position types, out of which only will be set one. # The spatial position within the video where the promoted item will be displayed.
- "cornerPosition": "A String", # Describes in which corner of the video the visual widget will appear.
- "type": "A String", # Defines the position type.
- },
- },
- "kind": "youtube#channel", # The kind, fixed to "youtube#channel".
- "statistics": { # Statistics about a channel: number of subscribers, number of videos in the channel, etc. # The statistics object encapsulates statistics for the channel.
- "commentCount": "A String", # The number of comments for the channel.
- "subscriberCount": "A String", # The number of subscribers that the channel has.
- "videoCount": "A String", # The number of videos uploaded to the channel.
- "viewCount": "A String", # The number of times the channel has been viewed.
- },
- "topicDetails": { # Freebase topic information related to the channel. # The topicDetails object encapsulates information about Freebase topics associated with the channel.
- "topicIds": [ # A list of Freebase topic IDs associated with the channel. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- },
- "contentDetails": { # Details about the content of a channel. # The contentDetails object encapsulates information about the channel's content.
- "relatedPlaylists": {
- "watchLater": "A String", # The ID of the playlist that contains the channel"s watch later playlist. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "watchHistory": "A String", # The ID of the playlist that contains the channel"s watch history. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "likes": "A String", # The ID of the playlist that contains the channel"s liked videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "favorites": "A String", # The ID of the playlist that contains the channel"s favorite videos. Use the playlistItems.insert and playlistItems.delete to add or remove items from that list.
- "uploads": "A String", # The ID of the playlist that contains the channel"s uploaded videos. Use the videos.insert method to upload new videos and the videos.delete method to delete previously uploaded videos.
- },
- "googlePlusUserId": "A String", # The googlePlusUserId object identifies the Google+ profile ID associated with this channel.
- },
- "brandingSettings": { # Branding properties of a YouTube channel. # The brandingSettings object encapsulates information about the branding of the channel.
- "image": { # Branding properties for images associated with the channel. # Branding properties for branding images.
- "largeBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 854px by 70px image that appears below the video player in the expanded video view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerImageUrl": "A String", # Banner image. Desktop size (1060x175).
- "backgroundImageUrl": { # Represent a property available in different languages. # The URL for the background image shown on the video watch page. The image should be 1200px by 615px, with a maximum file size of 128k.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "largeBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the large banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerMobileImageUrl": "A String", # Banner image. Mobile size (640x175).
- "smallBrandedBannerImageImapScript": { # Represent a property available in different languages. # The image map script for the small banner image.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "smallBrandedBannerImageUrl": { # Represent a property available in different languages. # The URL for the 640px by 70px banner image that appears below the video player in the default view of the video watch page.
- "default": "A String", # Default value for the localized property.
- "localized": [ # The localized values.
- { # A localized string.
- "value": "A String", # Value of the property.
- "language": "A String", # Language associated to this value.
- },
- ],
- },
- "bannerTabletHdImageUrl": "A String", # Banner image. Tablet size high resolution (2276x377).
- "bannerTabletLowImageUrl": "A String", # Banner image. Tablet size low resolution (1138x188).
- "trackingImageUrl": "A String", # The URL for a 1px by 1px tracking pixel that can be used to collect statistics for views of the channel or video pages.
- "bannerMobileMediumHdImageUrl": "A String", # Banner image. Mobile size medium/high resolution (960x263).
- "bannerMobileHdImageUrl": "A String", # Banner image. Mobile size high resolution (1280x360).
- "bannerExternalUrl": "A String", # This is used only in update requests; if it's set, we use this URL to generate all of the above banner URLs.
- "bannerTabletImageUrl": "A String", # Banner image. Tablet size (1707x283).
- "bannerMobileExtraHdImageUrl": "A String", # Banner image. Mobile size high resolution (1440x395).
- "bannerMobileLowImageUrl": "A String", # Banner image. Mobile size low resolution (320x88).
- "watchIconImageUrl": "A String", # The URL for the image that appears above the top-left corner of the video player. This is a 25-pixel-high image with a flexible width that cannot exceed 170 pixels.
- "bannerTvImageUrl": "A String", # Banner image. TV size (2120x1192).
- "bannerTabletExtraHdImageUrl": "A String", # Banner image. Tablet size extra high resolution (2560x424).
- },
- "watch": { # Branding properties for the watch. # Branding properties for the watch page.
- "textColor": "A String", # The background color for the video watch page's branded area.
- "featuredPlaylistId": "A String", # An ID that uniquely identifies a playlist that displays next to the video player.
- "backgroundColor": "A String", # The text color for the video watch page's branded area.
- },
- "channel": { # Branding properties for the channel view. # Branding properties for the channel view.
- "description": "A String", # Specifies the channel description.
- "title": "A String", # Specifies the channel title.
- "moderateComments": True or False, # Whether user-submitted comments left on the channel page need to be approved by the channel owner to be publicly visible.
- "showBrowseView": True or False, # Whether the tab to browse the videos should be displayed.
- "featuredChannelsTitle": "A String", # Title for the featured channels tab.
- "unsubscribedTrailer": "A String", # The trailer of the channel, for users that are not subscribers.
- "keywords": "A String", # Lists keywords associated with the channel, comma-separated.
- "profileColor": "A String", # A prominent color that can be rendered on this channel page.
- "defaultTab": "A String", # Which content tab users should see when viewing the channel.
- "featuredChannelsUrls": [ # The list of featured channels.
- "A String",
- ],
- "trackingAnalyticsAccountId": "A String", # The ID for a Google Analytics account to track and measure traffic to the channels.
- "showRelatedChannels": True or False, # Whether related channels should be proposed.
- },
- "hints": [ # Additional experimental branding properties.
- { # A pair Property / Value.
- "property": "A String", # A property.
- "value": "A String", # The property's value.
- },
- ],
- },
- "conversionPings": { # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel. # The conversionPings object encapsulates information about conversion pings that need to be respected by the channel.
- "pings": [ # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- { # Pings that the app shall fire (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- "conversionUrl": "A String", # The url (without the schema) that the player shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D cview%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- "snippet": { # Basic details about a channel, including title, description and thumbnails. # The snippet object contains basic details about the channel, such as its title, description, and thumbnail images.
- "title": "A String", # The channel's title.
- "description": "A String", # The description of the channel.
- "publishedAt": "A String", # The date and time that the channel was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the channel. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the channel.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.guideCategories.html b/docs/dyn/youtube_v3.guideCategories.html
deleted file mode 100644
index 38cd259..0000000
--- a/docs/dyn/youtube_v3.guideCategories.html
+++ /dev/null
@@ -1,115 +0,0 @@
-
-
-
-
Returns a list of categories that can be associated with YouTube channels.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more guideCategory resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a guideCategory resource, the snippet property contains other properties, such as the category's title. If you set part=snippet, the API response will also contain all of those nested properties. (required)
- regionCode: string, The regionCode parameter instructs the API to return the list of guide categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
- hl: string, The hl parameter specifies the language that will be used for text values in the API response.
- id: string, The id parameter specifies a comma-separated list of the YouTube channel category ID(s) for the resource(s) that are being retrieved. In a guideCategory resource, the id property specifies the YouTube channel category ID.
-
-Returns:
- An object of the form:
-
- { # A paginated list of guide categories returned as the response to a youtube.guideCategories.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "items": [ # A list of categories that can be associated with YouTube channels. In this map, the category ID is the map key, and its value is the corresponding guideCategory resource.
- { # A guideCategory resource identifies a category that YouTube algorithmically assigns based on a channel's content or other indicators, such as the channel's popularity. The list is similar to video categories, with the difference being that a video's uploader can assign a video category but only YouTube can assign a channel category.
- "snippet": { # Basic details about a guide category. # The snippet object contains basic details about the category, such as its title.
- "channelId": "UCBR8-60-B28hp2BmDPdntcQ",
- "title": "A String", # Description of the guide category.
- },
- "kind": "youtube#guideCategory", # The kind, fixed to "youtube#guideCategory".
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the guide category.
- },
- ],
- "kind": "youtube#guideCategoryListResponse", # The type of the API response. For this operation, the value will be youtube#guideCategoryListResponse.
- "etag": "A String", # The ETag of the response.
- "visitorId": "A String", # The visitorId identifies the visitor.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.html b/docs/dyn/youtube_v3.html
deleted file mode 100644
index ee5a74d..0000000
--- a/docs/dyn/youtube_v3.html
+++ /dev/null
@@ -1,142 +0,0 @@
-
-
-
-
Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream.
Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream.
Binds a YouTube broadcast to a stream or removes an existing binding between a broadcast and a stream. A broadcast can only be bound to one video stream.
-
-Args:
- id: string, The id parameter specifies the unique ID of the broadcast that is being bound to a video stream. (required)
- part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
- streamId: string, The streamId parameter specifies the unique ID of the video stream that is being bound to a broadcast. If this parameter is omitted, the API will remove any existing binding between the broadcast and a video stream.
-
-Returns:
- An object of the form:
-
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- }
Control the slate of the broadacast.
-
-Args:
- id: string, The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. (required)
- part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
- displaySlate: boolean, The displaySlate parameter specifies whether to enable or disable the slate.
- offsetTimeMs: string, The offsetTimeMs parameter specifies a point in time in the video when the specified action (e.g. display a slate) is executed. The property value identifies a positive time offset, in milliseconds, from the beginning of the monitor stream. Though measured in milliseconds, the value is actually an approximation, and YouTube will act as closely as possible to that time. If not specified, it indicates that the action should be performed as soon as possible. If your broadcast stream is not delayed, then it should not be specified. However, if your broadcast stream is delayed, then the parameter can specify the time when the operation should be executed. See the Getting started guide for more details. Note: The offset is measured from the time that the testing phase began.
-
-Returns:
- An object of the form:
-
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- }
-
-
-
- delete(id, onBehalfOfContentOwner=None)
-
Deletes a broadcast.
-
-Args:
- id: string, The id parameter specifies the YouTube live broadcast ID for the resource that is being deleted. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
Creates a broadcast.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part properties that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
-}
-
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- }
Returns a list of YouTube broadcasts that match the API request parameters.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
- broadcastStatus: string, The broadcastStatus parameter filters the API response to only include broadcasts with the specified status.
- Allowed values
- active - Return current live broadcasts.
- all - Return all broadcasts.
- completed - Return broadcasts that have already ended.
- upcoming - Return broadcasts that have not yet started.
- pageToken: string, The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
- mine: boolean, The mine parameter can be used to instruct the API to only return broadcasts owned by the authenticated user. Set the parameter value to true to only retrieve your own broadcasts.
- maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.
- id: string, The id parameter specifies a comma-separated list of YouTube broadcast IDs that identify the broadcasts being retrieved. In a liveBroadcast resource, the id property specifies the broadcast's ID.
-
-Returns:
- An object of the form:
-
- { # JSON template for list of broadcasts.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#liveBroadcastList", # The type of the API response. For this operation, the value will be youtube#liveBroadcastList.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of broadcasts that match the request criteria.
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
Changes the status of a YouTube live broadcast and initiates any processes associated with the new status. For example, when you transition a broadcast's status to testing, YouTube starts to transmit video to that broadcast's monitor stream.
-
-Args:
- broadcastStatus: string, The broadcastStatus parameter identifies the state to which the broadcast is changing. (required)
- Allowed values
- complete - The broadcast is over. YouTube stops transmitting video.
- live - The broadcast is visible to its audience. YouTube transmits video to the broadcast's monitor stream and its broadcast stream.
- testing - Start testing the broadcast. YouTube transmits video to the broadcast's monitor stream. Note that you can only transition a broadcast to the testing state if its contentDetails.monitorStream.enableMonitorStream property is set to true.
- id: string, The id parameter specifies the unique ID of the broadcast that is transitioning to another status. (required)
- part: string, The part parameter specifies a comma-separated list of one or more liveBroadcast resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, and status. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- }
Updates a broadcast. For example, you could modify the broadcast settings defined in the liveBroadcast resource's contentDetails object.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part properties that you can include in the parameter value are id, snippet, contentDetails, and status.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a broadcast's privacy status is defined in the status part. As such, if your request is updating a private or unlisted broadcast, and the request's part parameter value includes the status part, the broadcast's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the broadcast will revert to the default privacy setting. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
-}
-
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A liveBroadcast resource represents an event that will be streamed, via live video, on YouTube.
- "status": { # The status object contains information about the event's status.
- "recordingStatus": "A String", # The broadcast's recording status.
- "privacyStatus": "A String", # The broadcast's privacy status. Note that the broadcast represents exactly one YouTube video, so the privacy settings are identical to those supported for videos. In addition, you can set this field by modifying the broadcast resource or by setting the privacyStatus field of the corresponding video resource.
- "lifeCycleStatus": "A String", # The broadcast's status. The status can be updated using the API's liveBroadcasts.transition method.
- },
- "kind": "youtube#liveBroadcast", # The kind, fixed to "youtube#liveBroadcast".
- "contentDetails": { # Detailed settings of a broadcast. # The contentDetails object contains information about the event's video content, such as whether the content can be shown in an embedded video player or if it will be archived and therefore available for viewing after the event has concluded.
- "startWithSlate": True or False, # This setting indicates whether the broadcast should automatically begin with an in-stream slate when you update the broadcast's status to live. After updating the status, you then need to send a liveCuepoints.insert request that sets the cuepoint's eventState to end to remove the in-stream slate and make your broadcast stream visible to viewers.
- "boundStreamId": "A String", # This value uniquely identifies the live stream bound to the broadcast.
- "enableEmbed": True or False, # This setting indicates whether the broadcast video can be played in an embedded player. If you choose to archive the video (using the enableArchive property), this setting will also apply to the archived video.
- "enableClosedCaptions": True or False, # This setting indicates whether closed captioning is enabled for this broadcast. The ingestion URL of the closed captions is returned through the liveStreams API.
- "enableContentEncryption": True or False, # This setting indicates whether YouTube should enable content encryption for the broadcast.
- "recordFromStart": True or False, # Automatically start recording after the event goes live. The default value for this property is true.
- #
- #
- #
- # Important: You must also set the enableDvr property's value to true if you want the playback to be available immediately after the broadcast ends. If you set this property's value to true but do not also set the enableDvr property to true, there may be a delay of around one day before the archived video will be available for playback.
- "enableDvr": True or False, # This setting determines whether viewers can access DVR controls while watching the video. DVR controls enable the viewer to control the video playback experience by pausing, rewinding, or fast forwarding content. The default value for this property is true.
- #
- #
- #
- # Important: You must set the value to true and also set the enableArchive property's value to true if you want to make playback available immediately after the broadcast ends.
- "monitorStream": { # Settings and Info of the monitor stream # The monitorStream object contains information about the monitor stream, which the broadcaster can use to review the event content before the broadcast stream is shown publicly.
- "broadcastStreamDelayMs": 42, # If you have set the enableMonitorStream property to true, then this property determines the length of the live broadcast delay.
- "embedHtml": "A String", # HTML code that embeds a player that plays the monitor stream.
- "enableMonitorStream": True or False, # This value determines whether the monitor stream is enabled for the broadcast. If the monitor stream is enabled, then YouTube will broadcast the event content on a special stream intended only for the broadcaster's consumption. The broadcaster can use the stream to review the event content and also to identify the optimal times to insert cuepoints.
- #
- # You need to set this value to true if you intend to have a broadcast delay for your event.
- #
- # Note: This property cannot be updated once the broadcast is in the testing or live state.
- },
- },
- "snippet": { # The snippet object contains basic details about the event, including its title, description, start time, and end time.
- "actualEndTime": "A String", # The date and time that the broadcast actually ended. This information is only available once the broadcast's state is complete. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "description": "A String", # The broadcast's description. As with the title, you can set this field by modifying the broadcast resource or by setting the description field of the corresponding video resource.
- "title": "A String", # The broadcast's title. Note that the broadcast represents exactly one YouTube video. You can set this field by modifying the broadcast resource or by setting the title field of the corresponding video resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is publishing the broadcast.
- "publishedAt": "A String", # The date and time that the broadcast was added to YouTube's live broadcast schedule. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledStartTime": "A String", # The date and time that the broadcast is scheduled to start. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "actualStartTime": "A String", # The date and time that the broadcast actually started. This information is only available once the broadcast's state is live. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "scheduledEndTime": "A String", # The date and time that the broadcast is scheduled to end. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the broadcast. For each nested object in this object, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the broadcast.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.liveStreams.html b/docs/dyn/youtube_v3.liveStreams.html
deleted file mode 100644
index 245f0fa..0000000
--- a/docs/dyn/youtube_v3.liveStreams.html
+++ /dev/null
@@ -1,334 +0,0 @@
-
-
-
-
Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.
-
Method Details
-
- delete(id)
-
Deletes a video stream.
-
-Args:
- id: string, The id parameter specifies the YouTube live stream ID for the resource that is being deleted. (required)
-
-
-
-
- insert(part=None, body)
-
Creates a video stream. The stream enables you to send your video to YouTube, which can then broadcast the video to your audience.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part properties that you can include in the parameter value are id, snippet, cdn, and status. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A live stream describes a live ingestion point.
- "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
- "streamStatus": "A String",
- },
- "kind": "youtube#liveStream", # The kind, fixed to "youtube#liveStream".
- "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
- "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
- },
- "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
- "ingestionType": "A String", # The method or protocol used to transmit the video stream.
- "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
- "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
- "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
- "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
- #
- # Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:
- #
- # STREAM_URL/STREAM_NAME
- },
- "format": "A String", # The format of the video stream that you are sending to Youtube.
- },
- "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
- "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
- }
-
-
-Returns:
- An object of the form:
-
- { # A live stream describes a live ingestion point.
- "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
- "streamStatus": "A String",
- },
- "kind": "youtube#liveStream", # The kind, fixed to "youtube#liveStream".
- "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
- "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
- },
- "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
- "ingestionType": "A String", # The method or protocol used to transmit the video stream.
- "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
- "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
- "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
- "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
- #
- # Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:
- #
- # STREAM_URL/STREAM_NAME
- },
- "format": "A String", # The format of the video stream that you are sending to Youtube.
- },
- "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
- "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
- }
Returns a list of video streams that match the API request parameters.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more liveStream resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, cdn, and status. (required)
- pageToken: string, The pageToken parameter identifies a specific page in the result set that should be returned. In an API response, the nextPageToken and prevPageToken properties identify other pages that could be retrieved.
- mine: boolean, The mine parameter can be used to instruct the API to only return streams owned by the authenticated user. Set the parameter value to true to only retrieve your own streams.
- maxResults: integer, The maxResults parameter specifies the maximum number of items that should be returned in the result set. Acceptable values are 0 to 50, inclusive. The default value is 5.
- id: string, The id parameter specifies a comma-separated list of YouTube stream IDs that identify the streams being retrieved. In a liveStream resource, the id property specifies the stream's ID.
-
-Returns:
- An object of the form:
-
- { # List of live streams.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#liveStreamList", # The type of the API response. For this operation, the value will be youtube#liveStreamList.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of live streams that match the request criteria.
- { # A live stream describes a live ingestion point.
- "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
- "streamStatus": "A String",
- },
- "kind": "youtube#liveStream", # The kind, fixed to "youtube#liveStream".
- "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
- "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
- },
- "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
- "ingestionType": "A String", # The method or protocol used to transmit the video stream.
- "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
- "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
- "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
- "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
- #
- # Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:
- #
- # STREAM_URL/STREAM_NAME
- },
- "format": "A String", # The format of the video stream that you are sending to Youtube.
- },
- "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
- "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- update(part=None, body)
-
Updates a video stream. If the properties that you want to change cannot be updated, then you need to create a new stream with the proper settings.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part properties that you can include in the parameter value are id, snippet, cdn, and status.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. If the request body does not specify a value for a mutable property, the existing value for that property will be removed. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A live stream describes a live ingestion point.
- "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
- "streamStatus": "A String",
- },
- "kind": "youtube#liveStream", # The kind, fixed to "youtube#liveStream".
- "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
- "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
- },
- "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
- "ingestionType": "A String", # The method or protocol used to transmit the video stream.
- "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
- "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
- "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
- "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
- #
- # Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:
- #
- # STREAM_URL/STREAM_NAME
- },
- "format": "A String", # The format of the video stream that you are sending to Youtube.
- },
- "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
- "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
- }
-
-
-Returns:
- An object of the form:
-
- { # A live stream describes a live ingestion point.
- "status": { # Brief description of the live stream status. # The status object contains information about live stream's status.
- "streamStatus": "A String",
- },
- "kind": "youtube#liveStream", # The kind, fixed to "youtube#liveStream".
- "contentDetails": { # Detailed settings of a stream. # The content_details object contains information about the stream, including the closed captions ingestion URL.
- "closedCaptionsIngestionUrl": "A String", # The ingestion URL where the closed captions of this stream are sent.
- },
- "cdn": { # Brief description of the live stream cdn settings. # The cdn object defines the live stream's content delivery network (CDN) settings. These settings provide details about the manner in which you stream your content to YouTube.
- "ingestionType": "A String", # The method or protocol used to transmit the video stream.
- "ingestionInfo": { # Describes information necessary for ingesting an RTMP or an HTTP stream. # The ingestionInfo object contains information that YouTube provides that you need to transmit your RTMP or HTTP stream to YouTube.
- "backupIngestionAddress": "A String", # The backup ingestion URL that you should use to stream video to YouTube. You have the option of simultaneously streaming the content that you are sending to the ingestionAddress to this URL.
- "streamName": "A String", # The HTTP or RTMP stream name that YouTube assigns to the video stream.
- "ingestionAddress": "A String", # The primary ingestion URL that you should use to stream video to YouTube. You must stream video to this URL.
- #
- # Depending on which application or tool you use to encode your video stream, you may need to enter the stream URL and stream name separately or you may need to concatenate them in the following format:
- #
- # STREAM_URL/STREAM_NAME
- },
- "format": "A String", # The format of the video stream that you are sending to Youtube.
- },
- "snippet": { # The snippet object contains basic details about the stream, including its channel, title, and description.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that is transmitting the stream.
- "description": "A String", # The stream's description. The value cannot be longer than 10000 characters.
- "publishedAt": "A String", # The date and time that the stream was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "title": "A String", # The stream's title. The value must be between 1 and 128 characters long.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube assigns to uniquely identify the stream.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.playlistItems.html b/docs/dyn/youtube_v3.playlistItems.html
deleted file mode 100644
index 5a81b92..0000000
--- a/docs/dyn/youtube_v3.playlistItems.html
+++ /dev/null
@@ -1,512 +0,0 @@
-
-
-
-
Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.
Modifies a playlist item. For example, you could update the item's position in the playlist.
-
Method Details
-
- delete(id)
-
Deletes a playlist item.
-
-Args:
- id: string, The id parameter specifies the YouTube playlist item ID for the playlist item that is being deleted. In a playlistItem resource, the id property specifies the playlist item's ID. (required)
-
-
-
-
- insert(part=None, body)
-
Adds a resource to a playlist.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and contentDetails. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
- #
- # YouTube uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.
- #
- # You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
- "status": { # Information about the playlist item's privacy status. # The status object contains information about the playlist item's privacy status.
- "privacyStatus": "A String", # This resource's privacy status.
- },
- "kind": "youtube#playlistItem", # The kind, fixed to "youtube#playlistItem".
- "contentDetails": { # The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
- "note": "A String", # A user-generated note for this item.
- "startAt": "A String", # The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
- "endAt": "A String", # The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
- "description": "A String", # The item's description.
- "title": "A String", # The item's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- "publishedAt": "A String", # The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the playlist item belongs to.
- "position": 42, # The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist item.
- }
-
-
-Returns:
- An object of the form:
-
- { # A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
- #
- # YouTube uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.
- #
- # You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
- "status": { # Information about the playlist item's privacy status. # The status object contains information about the playlist item's privacy status.
- "privacyStatus": "A String", # This resource's privacy status.
- },
- "kind": "youtube#playlistItem", # The kind, fixed to "youtube#playlistItem".
- "contentDetails": { # The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
- "note": "A String", # A user-generated note for this item.
- "startAt": "A String", # The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
- "endAt": "A String", # The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
- "description": "A String", # The item's description.
- "title": "A String", # The item's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- "publishedAt": "A String", # The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the playlist item belongs to.
- "position": 42, # The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist item.
- }
Returns a collection of playlist items that match the API request parameters. You can retrieve all of the playlist items in a specified playlist or retrieve one or more playlist items by their unique IDs.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more playlistItem resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlistItem resource, the snippet property contains numerous fields, including the title, description, position, and resourceId properties. As such, if you set part=snippet, the API response will contain all of those properties. (required)
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- playlistId: string, The playlistId parameter specifies the unique ID of the playlist for which you want to retrieve playlist items. Note that even though this is an optional parameter, every request to retrieve playlist items must specify a value for either the id parameter or the playlistId parameter.
- videoId: string, The videoId parameter specifies that the request should return only the playlist items that contain the specified video.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- id: string, The id parameter specifies a comma-separated list of one or more unique playlist item IDs.
-
-Returns:
- An object of the form:
-
- { # A paginated list of playlist items returned as the response to a youtube.playlistItems.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # A token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#playlistItemListResponse", # The type of the API response. For this operation, the value will be youtube#playlistItemListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of playlist items that match the request criteria.
- { # A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
- #
- # YouTube uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.
- #
- # You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
- "status": { # Information about the playlist item's privacy status. # The status object contains information about the playlist item's privacy status.
- "privacyStatus": "A String", # This resource's privacy status.
- },
- "kind": "youtube#playlistItem", # The kind, fixed to "youtube#playlistItem".
- "contentDetails": { # The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
- "note": "A String", # A user-generated note for this item.
- "startAt": "A String", # The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
- "endAt": "A String", # The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
- "description": "A String", # The item's description.
- "title": "A String", # The item's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- "publishedAt": "A String", # The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the playlist item belongs to.
- "position": 42, # The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist item.
- },
- ],
- "etag": "A String", # The ETag for the response.
- "prevPageToken": "A String", # A token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- update(part=None, body)
-
Modifies a playlist item. For example, you could update the item's position in the playlist.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and contentDetails.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist item can specify a start time and end time, which identify the times portion of the video that should play when users watch the video in the playlist. If your request is updating a playlist item that sets these values, and the request's part parameter value includes the contentDetails part, the playlist item's start and end times will be updated to whatever value the request body specifies. If the request body does not specify values, the existing start and end times will be removed and replaced with the default settings. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
- #
- # YouTube uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.
- #
- # You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
- "status": { # Information about the playlist item's privacy status. # The status object contains information about the playlist item's privacy status.
- "privacyStatus": "A String", # This resource's privacy status.
- },
- "kind": "youtube#playlistItem", # The kind, fixed to "youtube#playlistItem".
- "contentDetails": { # The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
- "note": "A String", # A user-generated note for this item.
- "startAt": "A String", # The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
- "endAt": "A String", # The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
- "description": "A String", # The item's description.
- "title": "A String", # The item's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- "publishedAt": "A String", # The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the playlist item belongs to.
- "position": 42, # The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist item.
- }
-
-
-Returns:
- An object of the form:
-
- { # A playlistItem resource identifies another resource, such as a video, that is included in a playlist. In addition, the playlistItem resource contains details about the included resource that pertain specifically to how that resource is used in that playlist.
- #
- # YouTube uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information.
- #
- # You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel. You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods. For example, if a user gives a positive rating to a video, you would insert that video into the liked videos playlist for that user's channel.
- "status": { # Information about the playlist item's privacy status. # The status object contains information about the playlist item's privacy status.
- "privacyStatus": "A String", # This resource's privacy status.
- },
- "kind": "youtube#playlistItem", # The kind, fixed to "youtube#playlistItem".
- "contentDetails": { # The contentDetails object is included in the resource if the included item is a YouTube video. The object contains additional information about the video.
- "note": "A String", # A user-generated note for this item.
- "startAt": "A String", # The time, measured in seconds from the start of the video, when the video should start playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) The default value is 0.
- "endAt": "A String", # The time, measured in seconds from the start of the video, when the video should stop playing. (The playlist owner can specify the times when the video should start and stop playing when the video is played in the context of the playlist.) By default, assume that the video.endTime is the end of the video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify a video. To retrieve the video resource, set the id query parameter to this value in your API request.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist item, such as its title and position in the playlist.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the playlist that the playlist item is in.
- "description": "A String", # The item's description.
- "title": "A String", # The item's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that is included in the playlist as the playlist item.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the user that added the item to the playlist.
- "publishedAt": "A String", # The date and time that the item was added to the playlist. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the playlist item belongs to.
- "position": 42, # The order in which the item appears in the playlist. The value uses a zero-based index, so the first item has a position of 0, the second item has a position of 1, and so forth.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist item. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist item.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.playlists.html b/docs/dyn/youtube_v3.playlists.html
deleted file mode 100644
index d30c2a2..0000000
--- a/docs/dyn/youtube_v3.playlists.html
+++ /dev/null
@@ -1,487 +0,0 @@
-
-
-
-
Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.
Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.
-
Method Details
-
- delete(id)
-
Deletes a playlist.
-
-Args:
- id: string, The id parameter specifies the YouTube playlist ID for the playlist that is being deleted. In a playlist resource, the id property specifies the playlist's ID. (required)
-
-
-
-
- insert(part=None, body)
-
Creates a playlist.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and status. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
- #
- # YouTube also uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel.
- #
- # You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
- "status": { # The status object contains status information for the playlist.
- "privacyStatus": "A String", # The playlist's privacy status.
- },
- "kind": "youtube#playlist", # The kind, fixed to "youtube#playlist".
- "contentDetails": { # The contentDetails object contains information like video count.
- "itemCount": 42, # The number of videos in the playlist.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "tags": [ # Keyword tags associated with the playlist.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
- "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # The channel title of the channel that the video belongs to.
- "title": "A String", # The playlist's title.
- "description": "A String", # The playlist's description.
- },
- "player": { # The player object contains information that you would use to play the playlist in an embedded player.
- "embedHtml": "A String", # An
Returns a collection of playlists that match the API request parameters. For example, you can retrieve all playlists that the authenticated user owns, or you can retrieve one or more playlists by their unique IDs.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more playlist resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and status.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a playlist resource, the snippet property contains properties like author, title, description, tags, and timeCreated. As such, if you set part=snippet, the API response will contain all of those properties. (required)
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- channelId: string, This value indicates that the API should only return the specified channel's playlists.
- mine: boolean, Set this parameter's value to true to instruct the API to only return playlists owned by the authenticated user.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- id: string, The id parameter specifies a comma-separated list of the YouTube playlist ID(s) for the resource(s) that are being retrieved. In a playlist resource, the id property specifies the playlist's YouTube playlist ID.
-
-Returns:
- An object of the form:
-
- { # A paginated list of playlists returned as the response to a youtube.playlists.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#playlistListResponse", # The type of the API response. For this operation, the value will be youtube#playlistListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of playlists that match the request criteria.
- { # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
- #
- # YouTube also uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel.
- #
- # You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
- "status": { # The status object contains status information for the playlist.
- "privacyStatus": "A String", # The playlist's privacy status.
- },
- "kind": "youtube#playlist", # The kind, fixed to "youtube#playlist".
- "contentDetails": { # The contentDetails object contains information like video count.
- "itemCount": 42, # The number of videos in the playlist.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "tags": [ # Keyword tags associated with the playlist.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
- "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # The channel title of the channel that the video belongs to.
- "title": "A String", # The playlist's title.
- "description": "A String", # The playlist's description.
- },
- "player": { # The player object contains information that you would use to play the playlist in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the playlist.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- update(part=None, body)
-
Modifies a playlist. For example, you could change a playlist's title, description, or privacy status.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and status.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a playlist's privacy setting is contained in the status part. As such, if your request is updating a private playlist, and the request's part parameter value includes the status part, the playlist's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the playlist will revert to the default privacy setting. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
- #
- # YouTube also uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel.
- #
- # You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
- "status": { # The status object contains status information for the playlist.
- "privacyStatus": "A String", # The playlist's privacy status.
- },
- "kind": "youtube#playlist", # The kind, fixed to "youtube#playlist".
- "contentDetails": { # The contentDetails object contains information like video count.
- "itemCount": 42, # The number of videos in the playlist.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "tags": [ # Keyword tags associated with the playlist.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
- "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # The channel title of the channel that the video belongs to.
- "title": "A String", # The playlist's title.
- "description": "A String", # The playlist's description.
- },
- "player": { # The player object contains information that you would use to play the playlist in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the playlist.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
- }
-
-
-Returns:
- An object of the form:
-
- { # A playlist resource represents a YouTube playlist. A playlist is a collection of videos that can be viewed sequentially and shared with other users. A playlist can contain up to 200 videos, and YouTube does not limit the number of playlists that each user creates. By default, playlists are publicly visible to other users, but playlists can be public or private.
- #
- # YouTube also uses playlists to identify special collections of videos for a channel, such as:
- # - uploaded videos
- # - favorite videos
- # - positively rated (liked) videos
- # - watch history
- # - watch later To be more specific, these lists are associated with a channel, which is a collection of a person, group, or company's videos, playlists, and other YouTube information. You can retrieve the playlist IDs for each of these lists from the channel resource for a given channel.
- #
- # You can then use the playlistItems.list method to retrieve any of those lists. You can also add or remove items from those lists by calling the playlistItems.insert and playlistItems.delete methods.
- "status": { # The status object contains status information for the playlist.
- "privacyStatus": "A String", # The playlist's privacy status.
- },
- "kind": "youtube#playlist", # The kind, fixed to "youtube#playlist".
- "contentDetails": { # The contentDetails object contains information like video count.
- "itemCount": 42, # The number of videos in the playlist.
- },
- "snippet": { # Basic details about a playlist, including title, description and thumbnails. # The snippet object contains basic details about the playlist, such as its title and description.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the playlist. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "tags": [ # Keyword tags associated with the playlist.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that published the playlist.
- "publishedAt": "A String", # The date and time that the playlist was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # The channel title of the channel that the video belongs to.
- "title": "A String", # The playlist's title.
- "description": "A String", # The playlist's description.
- },
- "player": { # The player object contains information that you would use to play the playlist in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the playlist.
- },
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the playlist.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.search.html b/docs/dyn/youtube_v3.search.html
deleted file mode 100644
index 19bad22..0000000
--- a/docs/dyn/youtube_v3.search.html
+++ /dev/null
@@ -1,240 +0,0 @@
-
-
-
-
Returns a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and playlist resources, but you can also configure queries to only retrieve a specific type of resource.
Returns a collection of search results that match the query parameters specified in the API request. By default, a search result set identifies matching video, channel, and playlist resources, but you can also configure queries to only retrieve a specific type of resource.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more search resource properties that the API response will include. The part names that you can include in the parameter value are id and snippet.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a search result, the snippet property contains other properties that identify the result's title, description, and so forth. If you set part=snippet, the API response will also contain all of those nested properties. (required)
- channelId: string, The channelId parameter indicates that the API response should only contain resources created by the channel
- videoSyndicated: string, The videoSyndicated parameter lets you to restrict a search to only videos that can be played outside youtube.com.
- Allowed values
- any - Return all videos, syndicated or not.
- true - Only retrieve syndicated videos.
- channelType: string, The channelType parameter lets you restrict a search to a particular type of channel.
- Allowed values
- any - Return all channels.
- show - Only retrieve shows.
- videoCaption: string, The videoCaption parameter indicates whether the API should filter video search results based on whether they have captions.
- Allowed values
- any - Do not filter results based on caption availability.
- closedCaption - Only include videos that have captions.
- none - Only include videos that do not have captions.
- publishedAfter: string, The publishedAfter parameter indicates that the API response should only contain resources created after the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
- forContentOwner: boolean, The forContentOwner parameter restricts the search to only retrieve resources owned by the content owner specified by the onBehalfOfContentOwner parameter. The user must be authenticated as a CMS account linked to the specified content owner and onBehalfOfContentOwner must be provided.
- regionCode: string, The regionCode parameter instructs the API to return search results for the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
- type: string, The type parameter restricts a search query to only retrieve a particular type of resource.
- topicId: string, The topicId parameter indicates that the API response should only contain resources associated with the specified topic. The value identifies a Freebase topic ID.
- publishedBefore: string, The publishedBefore parameter indicates that the API response should only contain resources created before the specified time. The value is an RFC 3339 formatted date-time value (1970-01-01T00:00:00Z).
- videoDimension: string, The videoDimension parameter lets you restrict a search to only retrieve 2D or 3D videos.
- Allowed values
- 2d - Restrict search results to exclude 3D videos.
- 3d - Restrict search results to only include 3D videos.
- any - Include both 3D and non-3D videos in returned results. This is the default value.
- videoLicense: string, The videoLicense parameter filters search results to only include videos with a particular license. YouTube lets video uploaders choose to attach either the Creative Commons license or the standard YouTube license to each of their videos.
- Allowed values
- any - Return all videos, regardless of which license they have, that match the query parameters.
- creativeCommon - Only return videos that have a Creative Commons license. Users can reuse videos with this license in other videos that they create. Learn more.
- youtube - Only return videos that have the standard YouTube license.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- videoType: string, The videoType parameter lets you restrict a search to a particular type of videos.
- Allowed values
- any - Return all videos.
- episode - Only retrieve episodes of shows.
- movie - Only retrieve movies.
- videoDefinition: string, The videoDefinition parameter lets you restrict a search to only include either high definition (HD) or standard definition (SD) videos. HD videos are available for playback in at least 720p, though higher resolutions, like 1080p, might also be available.
- Allowed values
- any - Return all videos, regardless of their resolution.
- high - Only retrieve HD videos.
- standard - Only retrieve videos in standard definition.
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- relatedToVideoId: string, The relatedToVideoId parameter retrieves a list of videos that are related to the video that the parameter value identifies. The parameter value must be set to a YouTube video ID and, if you are using this parameter, the type parameter must be set to video.
- videoDuration: string, The videoDuration parameter filters video search results based on their duration.
- Allowed values
- any - Do not filter video search results based on their duration. This is the default value.
- long - Only include videos longer than 20 minutes.
- medium - Only include videos that are between four and 20 minutes long (inclusive).
- short - Only include videos that are less than four minutes long.
- forMine: boolean, The forMine parameter restricts the search to only retrieve videos owned by the authenticated user.
- q: string, The q parameter specifies the query term to search for.
- safeSearch: string, The safeSearch parameter indicates whether the search results should include restricted content as well as standard content.
- Allowed values
- moderate - YouTube will filter some content from search results and, at the least, will filter content that is restricted in your locale. Based on their content, search results could be removed from search results or demoted in search results. Note: The default value for the safeSearch parameter is moderate.
- none - YouTube will not perform any filtering on the search result set.
- strict - YouTube will try to exclude all restricted content from the search result set. Based on their content, search results could be removed from search results or demoted in search results.
- videoEmbeddable: string, The videoEmbeddable parameter lets you to restrict a search to only videos that can be embedded into a webpage.
- Allowed values
- any - Return all videos, embeddable or not.
- true - Only retrieve embeddable videos.
- videoCategoryId: string, The videoCategoryId parameter filters video search results based on their category.
- order: string, The order parameter specifies the method that will be used to order resources in the API response.
- Allowed values
- date - Resources are sorted in reverse chronological order based on the date they were created.
- rating - Resources are sorted from highest to lowest rating.
- relevance - Resources are sorted based on their relevance to the search query. This is the default value for this parameter.
- title - Resources are sorted based on their title.
- videoCount - Channels are sorted from highest to lowest number of video uploaded.
- viewCount - Resources are sorted from highest to lowest number of views.
-
-Returns:
- An object of the form:
-
- { # A paginated list of search results returned as the response to a youtube.search.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#searchListResponse", # The type of the API response. For this operation, the value will be youtube#searchListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of results that match the search criteria.
- { # A search result contains information about a YouTube video, channel, or playlist that matches the search parameters specified in an API request. While a search result points to a uniquely identifiable resource, like a video, it does not have its own persistent data.
- "snippet": { # Basic details about a search result, including title, description and thumbnails of the item referenced by the search result. # The snippet object contains basic details about a search result, such as its title or description. For example, if the search result is a video, then the title will be the video's title and the description will be the video's description.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the search result. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The title of the search result.
- "channelId": "A String", # The value that YouTube uses to uniquely identify the channel that published the resource that the search result identifies.
- "publishedAt": "A String", # The creation date and time of the resource that the search result identifies. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # The title of the channel that published the resource that the search result identifies.
- "description": "A String", # A description of the search result.
- },
- "kind": "youtube#searchResult", # The kind, fixed to "youtube#searchResult".
- "etag": "A String", # Etag of this resource.
- "id": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information that can be used to uniquely identify the resource that matches the search request.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- },
- ],
- "etag": "A String", # The ETag for the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the search result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.subscriptions.html b/docs/dyn/youtube_v3.subscriptions.html
deleted file mode 100644
index 68f9232..0000000
--- a/docs/dyn/youtube_v3.subscriptions.html
+++ /dev/null
@@ -1,417 +0,0 @@
-
-
-
-
Deletes a subscription.
-
-Args:
- id: string, The id parameter specifies the YouTube subscription ID for the resource that is being deleted. In a subscription resource, the id property specifies the YouTube subscription ID. (required)
-
-
-
-
- insert(part=None, body)
-
Adds a subscription for the authenticated user's channel.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet and contentDetails. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
- "kind": "youtube#subscription", # The kind, fixed to "youtube#subscription".
- "contentDetails": { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
- "newItemCount": 42, # The number of new items in the subscription since its content was last read.
- "activityType": "A String", # The type of activity this subscription is for (only uploads, everything).
- "totalItemCount": 42, # The approximate number of items that the subscription points to.
- },
- "snippet": { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The subscription's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel.
- "publishedAt": "A String", # The date and time that the subscription was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the subscription belongs to.
- "description": "A String", # The subscription's details.
- },
- "etag": "A String", # Etag of this resource.
- "subscriberSnippet": { # Basic details about a subscription's subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the sbuscriber.
- "title": "A String", # The title of the subscriber.
- "channelId": "A String", # The channel ID of the subscriber.
- "description": "A String", # The description of the subscriber.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the subscription.
- }
-
-
-Returns:
- An object of the form:
-
- { # A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
- "kind": "youtube#subscription", # The kind, fixed to "youtube#subscription".
- "contentDetails": { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
- "newItemCount": 42, # The number of new items in the subscription since its content was last read.
- "activityType": "A String", # The type of activity this subscription is for (only uploads, everything).
- "totalItemCount": 42, # The approximate number of items that the subscription points to.
- },
- "snippet": { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The subscription's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel.
- "publishedAt": "A String", # The date and time that the subscription was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the subscription belongs to.
- "description": "A String", # The subscription's details.
- },
- "etag": "A String", # Etag of this resource.
- "subscriberSnippet": { # Basic details about a subscription's subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the sbuscriber.
- "title": "A String", # The title of the subscriber.
- "channelId": "A String", # The channel ID of the subscriber.
- "description": "A String", # The description of the subscriber.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the subscription.
- }
Returns subscription resources that match the API request criteria.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more subscription resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, and contentDetails.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a subscription resource, the snippet property contains other properties, such as a display title for the subscription. If you set part=snippet, the API response will also contain all of those nested properties. (required)
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- id: string, The id parameter specifies a comma-separated list of the YouTube subscription ID(s) for the resource(s) that are being retrieved. In a subscription resource, the id property specifies the YouTube subscription ID.
- channelId: string, The channelId parameter specifies a YouTube channel ID. The API will only return that channel's subscriptions.
- mine: boolean, Set this parameter's value to true to retrieve a feed of the authenticated user's subscriptions.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- forChannelId: string, The forChannelId parameter specifies a comma-separated list of channel IDs. The API response will then only contain subscriptions matching those channels.
- mySubscribers: boolean, Set this parameter's value to true to retrieve a feed of the subscribers of the authenticated user.
- order: string, The order parameter specifies the method that will be used to sort resources in the API response.
- Allowed values
- alphabetical - Sort alphabetically.
- relevance - Sort by relevance.
- unread - Sort by order of activity.
-
-Returns:
- An object of the form:
-
- { # A paginated list of subscriptions returned as the response to a youtube.subscriptions.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#subscriptionListResponse", # The type of the API response. For this operation, the value will be youtube#subscriptionListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of subscriptions that match the request criteria.
- { # A subscription resource contains information about a YouTube user subscription. A subscription notifies a user when new videos are added to a channel or when another user takes one of several actions on YouTube, such as uploading a video, rating a video, or commenting on a video.
- "kind": "youtube#subscription", # The kind, fixed to "youtube#subscription".
- "contentDetails": { # Details about the content to witch a subscription refers. # The contentDetails object contains basic statistics about the subscription.
- "newItemCount": 42, # The number of new items in the subscription since its content was last read.
- "activityType": "A String", # The type of activity this subscription is for (only uploads, everything).
- "totalItemCount": 42, # The approximate number of items that the subscription points to.
- },
- "snippet": { # Basic details about a subscription, including title, description and thumbnails of the subscribed item. # The snippet object contains basic details about the subscription, including its title and the channel that the user subscribed to.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- "title": "A String", # The subscription's title.
- "resourceId": { # A resource id is a generic reference that points to another YouTube resource. # The id object contains information about the channel that the user subscribed to.
- "kind": "A String", # The type of the API resource.
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a channel. This property is only present if the resourceId.kind value is youtube#channel.
- "playlistId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a playlist. This property is only present if the resourceId.kind value is youtube#playlist.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the referred resource, if that resource is a video. This property is only present if the resourceId.kind value is youtube#video.
- },
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the subscriber's channel.
- "publishedAt": "A String", # The date and time that the subscription was created. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the subscription belongs to.
- "description": "A String", # The subscription's details.
- },
- "etag": "A String", # Etag of this resource.
- "subscriberSnippet": { # Basic details about a subscription's subscriber including title, description, channel ID and thumbnails. # The subscriberSnippet object contains basic details about the sbuscriber.
- "title": "A String", # The title of the subscriber.
- "channelId": "A String", # The channel ID of the subscriber.
- "description": "A String", # The description of the subscriber.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # Thumbnails for this subscriber.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the subscription.
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.thumbnails.html b/docs/dyn/youtube_v3.thumbnails.html
deleted file mode 100644
index 906f7ed..0000000
--- a/docs/dyn/youtube_v3.thumbnails.html
+++ /dev/null
@@ -1,128 +0,0 @@
-
-
-
-
Uploads a custom video thumbnail to YouTube and sets it for a video.
-
Method Details
-
- set(videoId, media_body=None)
-
Uploads a custom video thumbnail to YouTube and sets it for a video.
-
-Args:
- videoId: string, The videoId parameter specifies a YouTube video ID for which the custom video thumbnail is being provided. (required)
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
-
-Returns:
- An object of the form:
-
- { # A list of thumbnails returned as the response to a thumbnails.set call.
- "items": [ # A list of thumbnails.
- { # Internal representation of thumbnails for a YouTube resource.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- ],
- "kind": "youtube#thumbnailListResponse", # The type of the API response. For this operation, the value will be youtube#thumbnailListResponse.
- "etag": "A String", # The ETag of the response.
- "visitorId": "A String", # The visitorId identifies the visitor.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.videoCategories.html b/docs/dyn/youtube_v3.videoCategories.html
deleted file mode 100644
index bdaa210..0000000
--- a/docs/dyn/youtube_v3.videoCategories.html
+++ /dev/null
@@ -1,113 +0,0 @@
-
-
-
-
Returns a list of categories that can be associated with YouTube videos.
-
Method Details
-
- list(part, regionCode=None, hl=None, id=None)
-
Returns a list of categories that can be associated with YouTube videos.
-
-Args:
- part: string, The part parameter specifies the videoCategory resource parts that the API response will include. Supported values are id and snippet. (required)
- regionCode: string, The regionCode parameter instructs the API to return the list of video categories available in the specified country. The parameter value is an ISO 3166-1 alpha-2 country code.
- hl: string, The hl parameter specifies the language that should be used for text values in the API response.
- id: string, The id parameter specifies a comma-separated list of video category IDs for the resources that you are retrieving.
-
-Returns:
- An object of the form:
-
- { # A paginated list of video categories returned as the response to a youtube.videoCategory.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "items": [ # A list of video categories that can be associated with YouTube videos. In this map, the video category ID is the map key, and its value is the corresponding videoCategory resource.
- { # A videoCategory resource identifies a category that has been or could be associated with uploaded videos.
- "snippet": { # Basic details about a video category, such as its localized title. # The snippet object contains basic details about the video category, including its title.
- "channelId": "UCBR8-60-B28hp2BmDPdntcQ", # The YouTube channel that created the video category.
- "title": "A String", # The video category's title.
- },
- "kind": "youtube#videoCategory", # The kind, fixed to "youtube#videoCategory".
- "etag": "A String", # Etag of this resource.
- "id": "A String", # The ID that YouTube uses to uniquely identify the video category.
- },
- ],
- "kind": "youtube#videoCategoryListResponse", # The type of the API response. For this operation, the value will be youtube#videoCategoryListResponse.
- "etag": "A String", # The ETag of the response.
- "visitorId": "A String", # The visitorId identifies the visitor.
- }
-
-
-
\ No newline at end of file
diff --git a/docs/dyn/youtube_v3.videos.html b/docs/dyn/youtube_v3.videos.html
deleted file mode 100644
index 3b8149d..0000000
--- a/docs/dyn/youtube_v3.videos.html
+++ /dev/null
@@ -1,1362 +0,0 @@
-
-
-
-
Deletes a YouTube video.
-
-Args:
- id: string, The id parameter specifies the YouTube video ID for the resource that is being deleted. In a video resource, the id property specifies the video's ID. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-
-
-
- getRating(id, onBehalfOfContentOwner=None)
-
Get user ratings for videos.
-
-Args:
- id: string, The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID. (required)
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A list of video ratings returned as the response to a youtube.videos.getRating call.
- "items": [ # A list of ratings that match the request criteria.
- { # Basic details about rating of a video.
- "rating": "A String", # Rating of a video.
- "videoId": "A String", # The ID that YouTube uses to uniquely identify the video.
- },
- ],
- "kind": "youtube#videoGetRatingResponse", # The type of the API response. For this operation, the value will be youtube#videoGetRatingResponse.
- "etag": "A String", # The ETag of the response.
- }
Uploads a video to YouTube and optionally sets the video's metadata.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet, contentDetails, player, statistics, status, and topicDetails. However, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response. (required)
- body: object, The request body.
- The object takes the form of:
-
-{ # A video resource represents a YouTube video.
- "status": { # Basic details about a video category, such as its localized title. # The status object contains information about the video's uploading, processing, and privacy statuses.
- "license": "A String", # The video's license.
- "embeddable": True or False, # This value indicates if the video can be embedded on another website.
- "privacyStatus": "A String", # The video's privacy status.
- "publicStatsViewable": True or False, # This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled.
- "uploadStatus": "A String", # The status of the uploaded video.
- "rejectionReason": "A String", # This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
- "failureReason": "A String", # This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
- },
- "snippet": { # Basic details about a video, including title, description, uploader, thumbnails and category. # The snippet object contains basic details about the video, such as its title, description, and category.
- "description": "A String", # The video's description.
- "tags": [ # A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the video belongs to.
- "title": "A String", # The video's title.
- "categoryId": "A String", # The YouTube video category associated with the video.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "kind": "youtube#video", # The kind, fixed to "youtube#video".
- "statistics": { # Statistics about the video, such as the number of times the video was viewed or liked. # The statistics object contains statistics about the video.
- "commentCount": "A String", # The number of comments for the video.
- "viewCount": "A String", # The number of times the video has been viewed.
- "favoriteCount": "A String", # The number of users who currently have the video marked as a favorite video.
- "dislikeCount": "A String", # The number of users who have indicated that they disliked the video by giving it a negative rating.
- "likeCount": "A String", # The number of users who have indicated that they liked the video by giving it a positive rating.
- },
- "topicDetails": { # Freebase topic information related to the video. # The topicDetails object encapsulates information about Freebase topics associated with the video.
- "topicIds": [ # A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- "relevantTopicIds": [ # Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- "A String",
- ],
- },
- "monetizationDetails": { # Details about monetization of a YouTube Video. # The monetizationDetails object encapsulates information about the monetization status of the video.
- "access": { # Rights management policy for YouTube resources. # The value of access indicates whether the video can be monetized or not.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- },
- "contentDetails": { # Details about the content of a YouTube Video. # The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
- "definition": "A String", # The value of definition indicates whether the video is available in high definition or only in standard definition.
- "countryRestriction": { # Rights management policy for YouTube resources. # The countryRestriction object contains information about the countries where a video is (or is not) viewable.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- "contentRating": { # Ratings schemes. The country-specific ratings are mostly for movies and shows. # Specifies the ratings that the video received under various rating schemes.
- "ytRating": "A String", # Internal YouTube rating.
- "russiaRating": "A String", # Rating system in Russia
- "tvpgRating": "A String", # TV Parental Guidelines rating of the content.
- "cbfcRating": "A String", # Rating system in India - Central Board of Film Certification
- "acbRating": "A String", # Rating system in Australia - Australian Classification Board
- "fskRating": "A String", # Rating system in Germany - Voluntary Self Regulation of the Movie Industry
- "eirinRating": "A String", # Rating system in Japan - Eiga Rinri Kanri Iinkai
- "bbfcRating": "A String", # British Board of Film Classification
- "kmrbRating": "A String", # Rating system in South Korea - Korea Media Rating Board
- "mpaaRating": "A String", # Motion Picture Association of America rating for the content.
- "icaaRating": "A String", # Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales
- "fmocRating": "A String", # Rating system in France - French Minister of Culture
- "chvrsRating": "A String", # Canadian Home Video Rating System
- "rtcRating": "A String", # Rating system in Mexico - General Directorate of Radio, Television and Cinematography
- "djctqRating": "A String", # Rating system in Brazil - Department of Justice, Rating, Titles and Qualification
- "oflcRating": "A String", # Rating system in New Zealand - Office of Film and Literature Classification
- },
- "caption": "A String", # The value of captions indicates whether the video has captions or not.
- "regionRestriction": { # DEPRECATED Region restriction of the video. # The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
- "blocked": [ # A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- "A String",
- ],
- "allowed": [ # A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- "A String",
- ],
- },
- "duration": "A String", # The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- "licensedContent": True or False, # The value of is_license_content indicates whether the video is licensed content.
- "dimension": "A String", # The value of dimension indicates whether the video is available in 3D or in 2D.
- },
- "ageGating": { # Age restriction details related to a video.
- "restricted": True or False, # Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
- "alcoholContent": True or False, # Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
- "videoGameRating": "A String", # Video game rating, if any.
- },
- "fileDetails": { # Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. # The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
- "bitrateBps": "A String", # The uploaded video file's combined (video and audio) bitrate in bits per second.
- "container": "A String", # The uploaded video file's container format.
- "recordingLocation": { # Geographical coordinates of a point, in WGS84. # Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- "fileType": "A String", # The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
- "creationTime": "A String", # The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:
- # - Date only: YYYY-MM-DD
- # - Naive time: YYYY-MM-DDTHH:MM:SS
- # - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- "durationMs": "A String", # The length of the uploaded video in milliseconds.
- "fileName": "A String", # The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
- "fileSize": "A String", # The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
- "videoStreams": [ # A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.
- { # Information about a video stream.
- "bitrateBps": "A String", # The video stream's bitrate, in bits per second.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "codec": "A String", # The video codec that the stream uses.
- "widthPixels": 42, # The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.
- "heightPixels": 42, # The encoded video content's height in pixels.
- "aspectRatio": 3.14, # The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.
- "rotation": "A String", # The amount that YouTube needs to rotate the original source content to properly display the video.
- "frameRateFps": 3.14, # The video stream's frame rate, in frames per second.
- },
- ],
- "audioStreams": [ # A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.
- { # Information about an audio stream.
- "bitrateBps": "A String", # The audio stream's bitrate, in bits per second.
- "codec": "A String", # The audio codec that the stream uses.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "channelCount": 42, # The number of audio channels that the stream contains.
- },
- ],
- },
- "processingDetails": { # Describes processing status and progress and availability of some other Video resource parts. # The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.
- #
- # The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.
- "fileDetailsAvailability": "A String", # This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
- "editorSuggestionsAvailability": "A String", # This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingStatus": "A String", # The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
- "processingIssuesAvailability": "A String", # This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingFailureReason": "A String", # The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
- "thumbnailsAvailability": "A String", # This value indicates whether thumbnail images have been generated for the video.
- "processingProgress": { # Video processing progress and completion time estimate. # The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing.
- "timeLeftMs": "A String", # An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
- "partsProcessed": "A String", # The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating:
- # 100 * parts_processed / parts_total
- #
- # Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
- "partsTotal": "A String", # An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
- },
- "tagSuggestionsAvailability": "A String", # This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- },
- "player": { # Player to be used for a video playback. # The player object contains information that you would use to play the video in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the video.
- },
- "etag": "A String", # Etag of this resource.
- "projectDetails": { # Project specific details about the content of a YouTube Video. # The projectDetails object contains information about the project specific video metadata.
- "tags": [ # A list of project tags associated with the video during the upload.
- "A String",
- ],
- },
- "recordingDetails": { # Recording information associated with the video. # The recordingDetails object encapsulates information about the location, date and address where the video was recorded.
- "recordingDate": "A String", # The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "locationDescription": "A String", # The text description of the location where the video was recorded.
- "location": { # Geographical coordinates of a point, in WGS84. # The geolocation information associated with the video.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- },
- "suggestions": { # Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. # The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.
- "processingErrors": [ # A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- "A String",
- ],
- "tagSuggestions": [ # A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.
- { # A single tag suggestion with it's relevance information.
- "categoryRestricts": [ # A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.
- "A String",
- ],
- "tag": "A String", # The keyword tag suggested for the video.
- },
- ],
- "editorSuggestions": [ # A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- "A String",
- ],
- "processingWarnings": [ # A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- "A String",
- ],
- "processingHints": [ # A list of suggestions that may improve YouTube's ability to process the video.
- "A String",
- ],
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the video.
- "conversionPings": { # The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts.
- "pings": [ # Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- {
- "conversionUrl": "A String", # The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- }
-
- media_body: string, The filename of the media request body, or an instance of a MediaUpload object.
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
- stabilize: boolean, The stabilize parameter specifies whether the video should be stabilized by YouTube.
- onBehalfOfContentOwnerChannel: string, This parameter can only be used in a properly authorized request. Note: This parameter is intended exclusively for YouTube content partners.
-
-The onBehalfOfContentOwnerChannel parameter indicates that the request's authorization credentials identify a YouTube CMS user who is acting on behalf of the channel specified in the parameter value. This parameter must be used in conjunction with the onBehalfOfContentOwner parameter, and the user must be authenticated using a CMS account that is linked to the content owner that the onBehalfOfContentOwner parameter specifies. In addition, the channel that the onBehalfOfContentOwnerChannel parameter value specifies must be linked to the content owner that the onBehalfOfContentOwner parameter specifies.
-
-This parameter is intended for YouTube content partners that own and manage many different YouTube channels. It allows content owners to authenticate once and perform actions on behalf of the channel specified in the parameter value, without having to provide authentication credentials for each separate channel.
- autoLevels: boolean, The autoLevels parameter specifies whether the video should be auto-leveled by YouTube.
-
-Returns:
- An object of the form:
-
- { # A video resource represents a YouTube video.
- "status": { # Basic details about a video category, such as its localized title. # The status object contains information about the video's uploading, processing, and privacy statuses.
- "license": "A String", # The video's license.
- "embeddable": True or False, # This value indicates if the video can be embedded on another website.
- "privacyStatus": "A String", # The video's privacy status.
- "publicStatsViewable": True or False, # This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled.
- "uploadStatus": "A String", # The status of the uploaded video.
- "rejectionReason": "A String", # This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
- "failureReason": "A String", # This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
- },
- "snippet": { # Basic details about a video, including title, description, uploader, thumbnails and category. # The snippet object contains basic details about the video, such as its title, description, and category.
- "description": "A String", # The video's description.
- "tags": [ # A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the video belongs to.
- "title": "A String", # The video's title.
- "categoryId": "A String", # The YouTube video category associated with the video.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "kind": "youtube#video", # The kind, fixed to "youtube#video".
- "statistics": { # Statistics about the video, such as the number of times the video was viewed or liked. # The statistics object contains statistics about the video.
- "commentCount": "A String", # The number of comments for the video.
- "viewCount": "A String", # The number of times the video has been viewed.
- "favoriteCount": "A String", # The number of users who currently have the video marked as a favorite video.
- "dislikeCount": "A String", # The number of users who have indicated that they disliked the video by giving it a negative rating.
- "likeCount": "A String", # The number of users who have indicated that they liked the video by giving it a positive rating.
- },
- "topicDetails": { # Freebase topic information related to the video. # The topicDetails object encapsulates information about Freebase topics associated with the video.
- "topicIds": [ # A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- "relevantTopicIds": [ # Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- "A String",
- ],
- },
- "monetizationDetails": { # Details about monetization of a YouTube Video. # The monetizationDetails object encapsulates information about the monetization status of the video.
- "access": { # Rights management policy for YouTube resources. # The value of access indicates whether the video can be monetized or not.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- },
- "contentDetails": { # Details about the content of a YouTube Video. # The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
- "definition": "A String", # The value of definition indicates whether the video is available in high definition or only in standard definition.
- "countryRestriction": { # Rights management policy for YouTube resources. # The countryRestriction object contains information about the countries where a video is (or is not) viewable.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- "contentRating": { # Ratings schemes. The country-specific ratings are mostly for movies and shows. # Specifies the ratings that the video received under various rating schemes.
- "ytRating": "A String", # Internal YouTube rating.
- "russiaRating": "A String", # Rating system in Russia
- "tvpgRating": "A String", # TV Parental Guidelines rating of the content.
- "cbfcRating": "A String", # Rating system in India - Central Board of Film Certification
- "acbRating": "A String", # Rating system in Australia - Australian Classification Board
- "fskRating": "A String", # Rating system in Germany - Voluntary Self Regulation of the Movie Industry
- "eirinRating": "A String", # Rating system in Japan - Eiga Rinri Kanri Iinkai
- "bbfcRating": "A String", # British Board of Film Classification
- "kmrbRating": "A String", # Rating system in South Korea - Korea Media Rating Board
- "mpaaRating": "A String", # Motion Picture Association of America rating for the content.
- "icaaRating": "A String", # Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales
- "fmocRating": "A String", # Rating system in France - French Minister of Culture
- "chvrsRating": "A String", # Canadian Home Video Rating System
- "rtcRating": "A String", # Rating system in Mexico - General Directorate of Radio, Television and Cinematography
- "djctqRating": "A String", # Rating system in Brazil - Department of Justice, Rating, Titles and Qualification
- "oflcRating": "A String", # Rating system in New Zealand - Office of Film and Literature Classification
- },
- "caption": "A String", # The value of captions indicates whether the video has captions or not.
- "regionRestriction": { # DEPRECATED Region restriction of the video. # The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
- "blocked": [ # A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- "A String",
- ],
- "allowed": [ # A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- "A String",
- ],
- },
- "duration": "A String", # The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- "licensedContent": True or False, # The value of is_license_content indicates whether the video is licensed content.
- "dimension": "A String", # The value of dimension indicates whether the video is available in 3D or in 2D.
- },
- "ageGating": { # Age restriction details related to a video.
- "restricted": True or False, # Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
- "alcoholContent": True or False, # Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
- "videoGameRating": "A String", # Video game rating, if any.
- },
- "fileDetails": { # Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. # The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
- "bitrateBps": "A String", # The uploaded video file's combined (video and audio) bitrate in bits per second.
- "container": "A String", # The uploaded video file's container format.
- "recordingLocation": { # Geographical coordinates of a point, in WGS84. # Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- "fileType": "A String", # The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
- "creationTime": "A String", # The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:
- # - Date only: YYYY-MM-DD
- # - Naive time: YYYY-MM-DDTHH:MM:SS
- # - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- "durationMs": "A String", # The length of the uploaded video in milliseconds.
- "fileName": "A String", # The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
- "fileSize": "A String", # The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
- "videoStreams": [ # A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.
- { # Information about a video stream.
- "bitrateBps": "A String", # The video stream's bitrate, in bits per second.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "codec": "A String", # The video codec that the stream uses.
- "widthPixels": 42, # The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.
- "heightPixels": 42, # The encoded video content's height in pixels.
- "aspectRatio": 3.14, # The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.
- "rotation": "A String", # The amount that YouTube needs to rotate the original source content to properly display the video.
- "frameRateFps": 3.14, # The video stream's frame rate, in frames per second.
- },
- ],
- "audioStreams": [ # A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.
- { # Information about an audio stream.
- "bitrateBps": "A String", # The audio stream's bitrate, in bits per second.
- "codec": "A String", # The audio codec that the stream uses.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "channelCount": 42, # The number of audio channels that the stream contains.
- },
- ],
- },
- "processingDetails": { # Describes processing status and progress and availability of some other Video resource parts. # The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.
- #
- # The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.
- "fileDetailsAvailability": "A String", # This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
- "editorSuggestionsAvailability": "A String", # This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingStatus": "A String", # The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
- "processingIssuesAvailability": "A String", # This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingFailureReason": "A String", # The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
- "thumbnailsAvailability": "A String", # This value indicates whether thumbnail images have been generated for the video.
- "processingProgress": { # Video processing progress and completion time estimate. # The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing.
- "timeLeftMs": "A String", # An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
- "partsProcessed": "A String", # The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating:
- # 100 * parts_processed / parts_total
- #
- # Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
- "partsTotal": "A String", # An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
- },
- "tagSuggestionsAvailability": "A String", # This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- },
- "player": { # Player to be used for a video playback. # The player object contains information that you would use to play the video in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the video.
- },
- "etag": "A String", # Etag of this resource.
- "projectDetails": { # Project specific details about the content of a YouTube Video. # The projectDetails object contains information about the project specific video metadata.
- "tags": [ # A list of project tags associated with the video during the upload.
- "A String",
- ],
- },
- "recordingDetails": { # Recording information associated with the video. # The recordingDetails object encapsulates information about the location, date and address where the video was recorded.
- "recordingDate": "A String", # The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "locationDescription": "A String", # The text description of the location where the video was recorded.
- "location": { # Geographical coordinates of a point, in WGS84. # The geolocation information associated with the video.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- },
- "suggestions": { # Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. # The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.
- "processingErrors": [ # A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- "A String",
- ],
- "tagSuggestions": [ # A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.
- { # A single tag suggestion with it's relevance information.
- "categoryRestricts": [ # A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.
- "A String",
- ],
- "tag": "A String", # The keyword tag suggested for the video.
- },
- ],
- "editorSuggestions": [ # A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- "A String",
- ],
- "processingWarnings": [ # A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- "A String",
- ],
- "processingHints": [ # A list of suggestions that may improve YouTube's ability to process the video.
- "A String",
- ],
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the video.
- "conversionPings": { # The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts.
- "pings": [ # Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- {
- "conversionUrl": "A String", # The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- }
Returns a list of videos that match the API request parameters.
-
-Args:
- part: string, The part parameter specifies a comma-separated list of one or more video resource properties that the API response will include. The part names that you can include in the parameter value are id, snippet, contentDetails, player, statistics, status, and topicDetails.
-
-If the parameter identifies a property that contains child properties, the child properties will be included in the response. For example, in a video resource, the snippet property contains the channelId, title, description, tags, and categoryId properties. As such, if you set part=snippet, the API response will contain all of those properties. (required)
- pageToken: string, USE_DESCRIPTION --- channels:list:pageToken
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
- locale: string, The locale parameter selects a video chart available in the specified locale. If using this parameter, chart must also be set. The parameter value is an BCP 47 locale. Supported locales include ar_AE, ar_DZ, ar_EG, ar_JO, ar_MA, ar_SA, ar_TN, ar_YE, cs_CZ, de_DE, el_GR, en_AU, en_BE, en_CA, en_GB, en_GH, en_IE, en_IL, en_IN, en_KE, en_NG, en_NZ, en_SG, en_UG, en_US, en_ZA, es_AR, es_CL, es_CO, es_ES, es_MX, es_PE, fil_PH, fr_FR, hu_HU, id_ID, it_IT, ja_JP, ko_KR, ms_MY, nl_NL, pl_PL, pt_BR, ru_RU, sv_SE, tr_TR, zh_HK, zh_TW
- chart: string, Set this parameter's value to mostPopular to instruct the API to return videos belonging to the chart of most popular videos.
- Allowed values
- mostPopular - Returns videos belonging to most popular video chart.
- maxResults: integer, USE_DESCRIPTION --- channels:list:maxResults
- videoCategoryId: string, The videoCategoryId parameter selects a video chart based on the category. If using this parameter, chart must also be set.
- myRating: string, Set this parameter's value to like or dislike to instruct the API to only return videos liked or disliked by the authenticated user.
- Allowed values
- dislike - Returns only videos disliked by the authenticated user.
- like - Returns only video liked by the authenticated user.
- id: string, The id parameter specifies a comma-separated list of the YouTube video ID(s) for the resource(s) that are being retrieved. In a video resource, the id property specifies the video's ID.
-
-Returns:
- An object of the form:
-
- { # A paginated list of videos returned as the response to a youtube.videos.list call.
- "eventId": "A String", # Serialized EventId of the request which produced this response.
- "nextPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the next page in the result set.
- "kind": "youtube#videoListResponse", # The type of the API response. For this operation, the value will be youtube#videoListResponse.
- "visitorId": "A String", # The visitorId identifies the visitor.
- "items": [ # A list of videos that match the request criteria.
- { # A video resource represents a YouTube video.
- "status": { # Basic details about a video category, such as its localized title. # The status object contains information about the video's uploading, processing, and privacy statuses.
- "license": "A String", # The video's license.
- "embeddable": True or False, # This value indicates if the video can be embedded on another website.
- "privacyStatus": "A String", # The video's privacy status.
- "publicStatsViewable": True or False, # This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled.
- "uploadStatus": "A String", # The status of the uploaded video.
- "rejectionReason": "A String", # This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
- "failureReason": "A String", # This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
- },
- "snippet": { # Basic details about a video, including title, description, uploader, thumbnails and category. # The snippet object contains basic details about the video, such as its title, description, and category.
- "description": "A String", # The video's description.
- "tags": [ # A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the video belongs to.
- "title": "A String", # The video's title.
- "categoryId": "A String", # The YouTube video category associated with the video.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "kind": "youtube#video", # The kind, fixed to "youtube#video".
- "statistics": { # Statistics about the video, such as the number of times the video was viewed or liked. # The statistics object contains statistics about the video.
- "commentCount": "A String", # The number of comments for the video.
- "viewCount": "A String", # The number of times the video has been viewed.
- "favoriteCount": "A String", # The number of users who currently have the video marked as a favorite video.
- "dislikeCount": "A String", # The number of users who have indicated that they disliked the video by giving it a negative rating.
- "likeCount": "A String", # The number of users who have indicated that they liked the video by giving it a positive rating.
- },
- "topicDetails": { # Freebase topic information related to the video. # The topicDetails object encapsulates information about Freebase topics associated with the video.
- "topicIds": [ # A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- "relevantTopicIds": [ # Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- "A String",
- ],
- },
- "monetizationDetails": { # Details about monetization of a YouTube Video. # The monetizationDetails object encapsulates information about the monetization status of the video.
- "access": { # Rights management policy for YouTube resources. # The value of access indicates whether the video can be monetized or not.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- },
- "contentDetails": { # Details about the content of a YouTube Video. # The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
- "definition": "A String", # The value of definition indicates whether the video is available in high definition or only in standard definition.
- "countryRestriction": { # Rights management policy for YouTube resources. # The countryRestriction object contains information about the countries where a video is (or is not) viewable.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- "contentRating": { # Ratings schemes. The country-specific ratings are mostly for movies and shows. # Specifies the ratings that the video received under various rating schemes.
- "ytRating": "A String", # Internal YouTube rating.
- "russiaRating": "A String", # Rating system in Russia
- "tvpgRating": "A String", # TV Parental Guidelines rating of the content.
- "cbfcRating": "A String", # Rating system in India - Central Board of Film Certification
- "acbRating": "A String", # Rating system in Australia - Australian Classification Board
- "fskRating": "A String", # Rating system in Germany - Voluntary Self Regulation of the Movie Industry
- "eirinRating": "A String", # Rating system in Japan - Eiga Rinri Kanri Iinkai
- "bbfcRating": "A String", # British Board of Film Classification
- "kmrbRating": "A String", # Rating system in South Korea - Korea Media Rating Board
- "mpaaRating": "A String", # Motion Picture Association of America rating for the content.
- "icaaRating": "A String", # Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales
- "fmocRating": "A String", # Rating system in France - French Minister of Culture
- "chvrsRating": "A String", # Canadian Home Video Rating System
- "rtcRating": "A String", # Rating system in Mexico - General Directorate of Radio, Television and Cinematography
- "djctqRating": "A String", # Rating system in Brazil - Department of Justice, Rating, Titles and Qualification
- "oflcRating": "A String", # Rating system in New Zealand - Office of Film and Literature Classification
- },
- "caption": "A String", # The value of captions indicates whether the video has captions or not.
- "regionRestriction": { # DEPRECATED Region restriction of the video. # The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
- "blocked": [ # A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- "A String",
- ],
- "allowed": [ # A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- "A String",
- ],
- },
- "duration": "A String", # The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- "licensedContent": True or False, # The value of is_license_content indicates whether the video is licensed content.
- "dimension": "A String", # The value of dimension indicates whether the video is available in 3D or in 2D.
- },
- "ageGating": { # Age restriction details related to a video.
- "restricted": True or False, # Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
- "alcoholContent": True or False, # Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
- "videoGameRating": "A String", # Video game rating, if any.
- },
- "fileDetails": { # Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. # The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
- "bitrateBps": "A String", # The uploaded video file's combined (video and audio) bitrate in bits per second.
- "container": "A String", # The uploaded video file's container format.
- "recordingLocation": { # Geographical coordinates of a point, in WGS84. # Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- "fileType": "A String", # The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
- "creationTime": "A String", # The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:
- # - Date only: YYYY-MM-DD
- # - Naive time: YYYY-MM-DDTHH:MM:SS
- # - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- "durationMs": "A String", # The length of the uploaded video in milliseconds.
- "fileName": "A String", # The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
- "fileSize": "A String", # The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
- "videoStreams": [ # A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.
- { # Information about a video stream.
- "bitrateBps": "A String", # The video stream's bitrate, in bits per second.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "codec": "A String", # The video codec that the stream uses.
- "widthPixels": 42, # The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.
- "heightPixels": 42, # The encoded video content's height in pixels.
- "aspectRatio": 3.14, # The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.
- "rotation": "A String", # The amount that YouTube needs to rotate the original source content to properly display the video.
- "frameRateFps": 3.14, # The video stream's frame rate, in frames per second.
- },
- ],
- "audioStreams": [ # A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.
- { # Information about an audio stream.
- "bitrateBps": "A String", # The audio stream's bitrate, in bits per second.
- "codec": "A String", # The audio codec that the stream uses.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "channelCount": 42, # The number of audio channels that the stream contains.
- },
- ],
- },
- "processingDetails": { # Describes processing status and progress and availability of some other Video resource parts. # The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.
- #
- # The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.
- "fileDetailsAvailability": "A String", # This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
- "editorSuggestionsAvailability": "A String", # This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingStatus": "A String", # The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
- "processingIssuesAvailability": "A String", # This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingFailureReason": "A String", # The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
- "thumbnailsAvailability": "A String", # This value indicates whether thumbnail images have been generated for the video.
- "processingProgress": { # Video processing progress and completion time estimate. # The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing.
- "timeLeftMs": "A String", # An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
- "partsProcessed": "A String", # The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating:
- # 100 * parts_processed / parts_total
- #
- # Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
- "partsTotal": "A String", # An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
- },
- "tagSuggestionsAvailability": "A String", # This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- },
- "player": { # Player to be used for a video playback. # The player object contains information that you would use to play the video in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the video.
- },
- "etag": "A String", # Etag of this resource.
- "projectDetails": { # Project specific details about the content of a YouTube Video. # The projectDetails object contains information about the project specific video metadata.
- "tags": [ # A list of project tags associated with the video during the upload.
- "A String",
- ],
- },
- "recordingDetails": { # Recording information associated with the video. # The recordingDetails object encapsulates information about the location, date and address where the video was recorded.
- "recordingDate": "A String", # The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "locationDescription": "A String", # The text description of the location where the video was recorded.
- "location": { # Geographical coordinates of a point, in WGS84. # The geolocation information associated with the video.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- },
- "suggestions": { # Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. # The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.
- "processingErrors": [ # A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- "A String",
- ],
- "tagSuggestions": [ # A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.
- { # A single tag suggestion with it's relevance information.
- "categoryRestricts": [ # A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.
- "A String",
- ],
- "tag": "A String", # The keyword tag suggested for the video.
- },
- ],
- "editorSuggestions": [ # A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- "A String",
- ],
- "processingWarnings": [ # A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- "A String",
- ],
- "processingHints": [ # A list of suggestions that may improve YouTube's ability to process the video.
- "A String",
- ],
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the video.
- "conversionPings": { # The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts.
- "pings": [ # Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- {
- "conversionUrl": "A String", # The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- },
- ],
- "etag": "A String", # The ETag of the response.
- "prevPageToken": "A String", # The token that can be used as the value of the pageToken parameter to retrieve the previous page in the result set.
- "pageInfo": { # Paging details for lists of resources, including total number of items available and number of resources returned in a single page. # The pageInfo object encapsulates paging information for the result set.
- "totalResults": 42, # The total number of results in the result set.
- "resultsPerPage": 42, # The number of results included in the API response.
- },
- }
Retrieves the next page of results.
-
-Args:
- previous_request: The request for the previous page. (required)
- previous_response: The response from the request for the previous page. (required)
-
-Returns:
- A request object that you can call 'execute()' on to request the next
- page. Returns None if there are no more items in the collection.
-
-
-
-
- rate(id, rating, onBehalfOfContentOwner=None)
-
Like, dislike, or remove rating from a video.
-
-Args:
- id: string, The id parameter specifies the YouTube video ID. (required)
- rating: string, Specifies the rating to record. (required)
- Allowed values
- dislike - Records that the authenticated user disliked the video.
- like - Records that the authenticated user liked the video.
- none - Removes any vote (like or dislike) the authenticated user had for the video.
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
Updates a video's metadata.
-
-Args:
- part: string, The part parameter serves two purposes in this operation. It identifies the properties that the write operation will set as well as the properties that the API response will include.
-
-The part names that you can include in the parameter value are snippet, contentDetails, player, statistics, status, and topicDetails.
-
-Note that this method will override the existing values for all of the mutable properties that are contained in any parts that the parameter value specifies. For example, a video's privacy setting is contained in the status part. As such, if your request is updating a private video, and the request's part parameter value includes the status part, the video's privacy setting will be updated to whatever value the request body specifies. If the request body does not specify a value, the existing privacy setting will be removed and the video will revert to the default privacy setting.
-
-In addition, not all of those parts contain properties that can be set when setting or updating a video's metadata. For example, the statistics object encapsulates statistics that YouTube calculates for a video and does not contain values that you can set or modify. If the parameter value specifies a part that does not contain mutable values, that part will still be included in the API response. (required)
- body: object, The request body. (required)
- The object takes the form of:
-
-{ # A video resource represents a YouTube video.
- "status": { # Basic details about a video category, such as its localized title. # The status object contains information about the video's uploading, processing, and privacy statuses.
- "license": "A String", # The video's license.
- "embeddable": True or False, # This value indicates if the video can be embedded on another website.
- "privacyStatus": "A String", # The video's privacy status.
- "publicStatsViewable": True or False, # This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled.
- "uploadStatus": "A String", # The status of the uploaded video.
- "rejectionReason": "A String", # This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
- "failureReason": "A String", # This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
- },
- "snippet": { # Basic details about a video, including title, description, uploader, thumbnails and category. # The snippet object contains basic details about the video, such as its title, description, and category.
- "description": "A String", # The video's description.
- "tags": [ # A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the video belongs to.
- "title": "A String", # The video's title.
- "categoryId": "A String", # The YouTube video category associated with the video.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "kind": "youtube#video", # The kind, fixed to "youtube#video".
- "statistics": { # Statistics about the video, such as the number of times the video was viewed or liked. # The statistics object contains statistics about the video.
- "commentCount": "A String", # The number of comments for the video.
- "viewCount": "A String", # The number of times the video has been viewed.
- "favoriteCount": "A String", # The number of users who currently have the video marked as a favorite video.
- "dislikeCount": "A String", # The number of users who have indicated that they disliked the video by giving it a negative rating.
- "likeCount": "A String", # The number of users who have indicated that they liked the video by giving it a positive rating.
- },
- "topicDetails": { # Freebase topic information related to the video. # The topicDetails object encapsulates information about Freebase topics associated with the video.
- "topicIds": [ # A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- "relevantTopicIds": [ # Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- "A String",
- ],
- },
- "monetizationDetails": { # Details about monetization of a YouTube Video. # The monetizationDetails object encapsulates information about the monetization status of the video.
- "access": { # Rights management policy for YouTube resources. # The value of access indicates whether the video can be monetized or not.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- },
- "contentDetails": { # Details about the content of a YouTube Video. # The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
- "definition": "A String", # The value of definition indicates whether the video is available in high definition or only in standard definition.
- "countryRestriction": { # Rights management policy for YouTube resources. # The countryRestriction object contains information about the countries where a video is (or is not) viewable.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- "contentRating": { # Ratings schemes. The country-specific ratings are mostly for movies and shows. # Specifies the ratings that the video received under various rating schemes.
- "ytRating": "A String", # Internal YouTube rating.
- "russiaRating": "A String", # Rating system in Russia
- "tvpgRating": "A String", # TV Parental Guidelines rating of the content.
- "cbfcRating": "A String", # Rating system in India - Central Board of Film Certification
- "acbRating": "A String", # Rating system in Australia - Australian Classification Board
- "fskRating": "A String", # Rating system in Germany - Voluntary Self Regulation of the Movie Industry
- "eirinRating": "A String", # Rating system in Japan - Eiga Rinri Kanri Iinkai
- "bbfcRating": "A String", # British Board of Film Classification
- "kmrbRating": "A String", # Rating system in South Korea - Korea Media Rating Board
- "mpaaRating": "A String", # Motion Picture Association of America rating for the content.
- "icaaRating": "A String", # Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales
- "fmocRating": "A String", # Rating system in France - French Minister of Culture
- "chvrsRating": "A String", # Canadian Home Video Rating System
- "rtcRating": "A String", # Rating system in Mexico - General Directorate of Radio, Television and Cinematography
- "djctqRating": "A String", # Rating system in Brazil - Department of Justice, Rating, Titles and Qualification
- "oflcRating": "A String", # Rating system in New Zealand - Office of Film and Literature Classification
- },
- "caption": "A String", # The value of captions indicates whether the video has captions or not.
- "regionRestriction": { # DEPRECATED Region restriction of the video. # The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
- "blocked": [ # A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- "A String",
- ],
- "allowed": [ # A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- "A String",
- ],
- },
- "duration": "A String", # The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- "licensedContent": True or False, # The value of is_license_content indicates whether the video is licensed content.
- "dimension": "A String", # The value of dimension indicates whether the video is available in 3D or in 2D.
- },
- "ageGating": { # Age restriction details related to a video.
- "restricted": True or False, # Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
- "alcoholContent": True or False, # Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
- "videoGameRating": "A String", # Video game rating, if any.
- },
- "fileDetails": { # Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. # The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
- "bitrateBps": "A String", # The uploaded video file's combined (video and audio) bitrate in bits per second.
- "container": "A String", # The uploaded video file's container format.
- "recordingLocation": { # Geographical coordinates of a point, in WGS84. # Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- "fileType": "A String", # The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
- "creationTime": "A String", # The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:
- # - Date only: YYYY-MM-DD
- # - Naive time: YYYY-MM-DDTHH:MM:SS
- # - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- "durationMs": "A String", # The length of the uploaded video in milliseconds.
- "fileName": "A String", # The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
- "fileSize": "A String", # The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
- "videoStreams": [ # A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.
- { # Information about a video stream.
- "bitrateBps": "A String", # The video stream's bitrate, in bits per second.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "codec": "A String", # The video codec that the stream uses.
- "widthPixels": 42, # The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.
- "heightPixels": 42, # The encoded video content's height in pixels.
- "aspectRatio": 3.14, # The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.
- "rotation": "A String", # The amount that YouTube needs to rotate the original source content to properly display the video.
- "frameRateFps": 3.14, # The video stream's frame rate, in frames per second.
- },
- ],
- "audioStreams": [ # A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.
- { # Information about an audio stream.
- "bitrateBps": "A String", # The audio stream's bitrate, in bits per second.
- "codec": "A String", # The audio codec that the stream uses.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "channelCount": 42, # The number of audio channels that the stream contains.
- },
- ],
- },
- "processingDetails": { # Describes processing status and progress and availability of some other Video resource parts. # The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.
- #
- # The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.
- "fileDetailsAvailability": "A String", # This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
- "editorSuggestionsAvailability": "A String", # This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingStatus": "A String", # The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
- "processingIssuesAvailability": "A String", # This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingFailureReason": "A String", # The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
- "thumbnailsAvailability": "A String", # This value indicates whether thumbnail images have been generated for the video.
- "processingProgress": { # Video processing progress and completion time estimate. # The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing.
- "timeLeftMs": "A String", # An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
- "partsProcessed": "A String", # The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating:
- # 100 * parts_processed / parts_total
- #
- # Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
- "partsTotal": "A String", # An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
- },
- "tagSuggestionsAvailability": "A String", # This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- },
- "player": { # Player to be used for a video playback. # The player object contains information that you would use to play the video in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the video.
- },
- "etag": "A String", # Etag of this resource.
- "projectDetails": { # Project specific details about the content of a YouTube Video. # The projectDetails object contains information about the project specific video metadata.
- "tags": [ # A list of project tags associated with the video during the upload.
- "A String",
- ],
- },
- "recordingDetails": { # Recording information associated with the video. # The recordingDetails object encapsulates information about the location, date and address where the video was recorded.
- "recordingDate": "A String", # The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "locationDescription": "A String", # The text description of the location where the video was recorded.
- "location": { # Geographical coordinates of a point, in WGS84. # The geolocation information associated with the video.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- },
- "suggestions": { # Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. # The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.
- "processingErrors": [ # A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- "A String",
- ],
- "tagSuggestions": [ # A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.
- { # A single tag suggestion with it's relevance information.
- "categoryRestricts": [ # A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.
- "A String",
- ],
- "tag": "A String", # The keyword tag suggested for the video.
- },
- ],
- "editorSuggestions": [ # A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- "A String",
- ],
- "processingWarnings": [ # A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- "A String",
- ],
- "processingHints": [ # A list of suggestions that may improve YouTube's ability to process the video.
- "A String",
- ],
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the video.
- "conversionPings": { # The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts.
- "pings": [ # Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- {
- "conversionUrl": "A String", # The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- }
-
- onBehalfOfContentOwner: string, USE_DESCRIPTION --- channels:list:onBehalfOfContentOwner
-
-Returns:
- An object of the form:
-
- { # A video resource represents a YouTube video.
- "status": { # Basic details about a video category, such as its localized title. # The status object contains information about the video's uploading, processing, and privacy statuses.
- "license": "A String", # The video's license.
- "embeddable": True or False, # This value indicates if the video can be embedded on another website.
- "privacyStatus": "A String", # The video's privacy status.
- "publicStatsViewable": True or False, # This value indicates if the extended video statistics on the watch page can be viewed by everyone. Note that the view count, likes, etc will still be visible if this is disabled.
- "uploadStatus": "A String", # The status of the uploaded video.
- "rejectionReason": "A String", # This value explains why YouTube rejected an uploaded video. This property is only present if the uploadStatus property indicates that the upload was rejected.
- "failureReason": "A String", # This value explains why a video failed to upload. This property is only present if the uploadStatus property indicates that the upload failed.
- },
- "snippet": { # Basic details about a video, including title, description, uploader, thumbnails and category. # The snippet object contains basic details about the video, such as its title, description, and category.
- "description": "A String", # The video's description.
- "tags": [ # A list of keyword tags associated with the video. Tags may contain spaces. This field is only visible to the video's uploader.
- "A String",
- ],
- "channelId": "A String", # The ID that YouTube uses to uniquely identify the channel that the video was uploaded to.
- "publishedAt": "A String", # The date and time that the video was uploaded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "channelTitle": "A String", # Channel title for the channel that the video belongs to.
- "title": "A String", # The video's title.
- "categoryId": "A String", # The YouTube video category associated with the video.
- "thumbnails": { # Internal representation of thumbnails for a YouTube resource. # A map of thumbnail images associated with the video. For each object in the map, the key is the name of the thumbnail image, and the value is an object that contains other information about the thumbnail.
- "default": { # A thumbnail is an image representing a YouTube resource. # The default image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "high": { # A thumbnail is an image representing a YouTube resource. # The high quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "medium": { # A thumbnail is an image representing a YouTube resource. # The medium quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "maxres": { # A thumbnail is an image representing a YouTube resource. # The maximum resolution quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- "standard": { # A thumbnail is an image representing a YouTube resource. # The standard quality image for this resource.
- "url": "A String", # The thumbnail image's URL.
- "width": 42, # (Optional) Width of the thumbnail image.
- "height": 42, # (Optional) Height of the thumbnail image.
- },
- },
- },
- "kind": "youtube#video", # The kind, fixed to "youtube#video".
- "statistics": { # Statistics about the video, such as the number of times the video was viewed or liked. # The statistics object contains statistics about the video.
- "commentCount": "A String", # The number of comments for the video.
- "viewCount": "A String", # The number of times the video has been viewed.
- "favoriteCount": "A String", # The number of users who currently have the video marked as a favorite video.
- "dislikeCount": "A String", # The number of users who have indicated that they disliked the video by giving it a negative rating.
- "likeCount": "A String", # The number of users who have indicated that they liked the video by giving it a positive rating.
- },
- "topicDetails": { # Freebase topic information related to the video. # The topicDetails object encapsulates information about Freebase topics associated with the video.
- "topicIds": [ # A list of Freebase topic IDs that are centrally associated with the video. These are topics that are centrally featured in the video, and it can be said that the video is mainly about each of these. You can retrieve information about each topic using the Freebase Topic API.
- "A String",
- ],
- "relevantTopicIds": [ # Similar to topic_id, except that these topics are merely relevant to the video. These are topics that may be mentioned in, or appear in the video. You can retrieve information about each topic using Freebase Topic API.
- "A String",
- ],
- },
- "monetizationDetails": { # Details about monetization of a YouTube Video. # The monetizationDetails object encapsulates information about the monetization status of the video.
- "access": { # Rights management policy for YouTube resources. # The value of access indicates whether the video can be monetized or not.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- },
- "contentDetails": { # Details about the content of a YouTube Video. # The contentDetails object contains information about the video content, including the length of the video and its aspect ratio.
- "definition": "A String", # The value of definition indicates whether the video is available in high definition or only in standard definition.
- "countryRestriction": { # Rights management policy for YouTube resources. # The countryRestriction object contains information about the countries where a video is (or is not) viewable.
- "exception": [ # A list of region codes that identify countries where the default policy do not apply.
- "A String",
- ],
- "allowed": True or False, # The value of allowed indicates whether the access to the policy is allowed or denied by default.
- },
- "contentRating": { # Ratings schemes. The country-specific ratings are mostly for movies and shows. # Specifies the ratings that the video received under various rating schemes.
- "ytRating": "A String", # Internal YouTube rating.
- "russiaRating": "A String", # Rating system in Russia
- "tvpgRating": "A String", # TV Parental Guidelines rating of the content.
- "cbfcRating": "A String", # Rating system in India - Central Board of Film Certification
- "acbRating": "A String", # Rating system in Australia - Australian Classification Board
- "fskRating": "A String", # Rating system in Germany - Voluntary Self Regulation of the Movie Industry
- "eirinRating": "A String", # Rating system in Japan - Eiga Rinri Kanri Iinkai
- "bbfcRating": "A String", # British Board of Film Classification
- "kmrbRating": "A String", # Rating system in South Korea - Korea Media Rating Board
- "mpaaRating": "A String", # Motion Picture Association of America rating for the content.
- "icaaRating": "A String", # Rating system in Spain - Instituto de Cinematografia y de las Artes Audiovisuales
- "fmocRating": "A String", # Rating system in France - French Minister of Culture
- "chvrsRating": "A String", # Canadian Home Video Rating System
- "rtcRating": "A String", # Rating system in Mexico - General Directorate of Radio, Television and Cinematography
- "djctqRating": "A String", # Rating system in Brazil - Department of Justice, Rating, Titles and Qualification
- "oflcRating": "A String", # Rating system in New Zealand - Office of Film and Literature Classification
- },
- "caption": "A String", # The value of captions indicates whether the video has captions or not.
- "regionRestriction": { # DEPRECATED Region restriction of the video. # The regionRestriction object contains information about the countries where a video is (or is not) viewable. The object will contain either the contentDetails.regionRestriction.allowed property or the contentDetails.regionRestriction.blocked property.
- "blocked": [ # A list of region codes that identify countries where the video is blocked. If this property is present and a country is not listed in its value, then the video is viewable in that country. If this property is present and contains an empty list, the video is viewable in all countries.
- "A String",
- ],
- "allowed": [ # A list of region codes that identify countries where the video is viewable. If this property is present and a country is not listed in its value, then the video is blocked from appearing in that country. If this property is present and contains an empty list, the video is blocked in all countries.
- "A String",
- ],
- },
- "duration": "A String", # The length of the video. The tag value is an ISO 8601 duration in the format PT#M#S, in which the letters PT indicate that the value specifies a period of time, and the letters M and S refer to length in minutes and seconds, respectively. The # characters preceding the M and S letters are both integers that specify the number of minutes (or seconds) of the video. For example, a value of PT15M51S indicates that the video is 15 minutes and 51 seconds long.
- "licensedContent": True or False, # The value of is_license_content indicates whether the video is licensed content.
- "dimension": "A String", # The value of dimension indicates whether the video is available in 3D or in 2D.
- },
- "ageGating": { # Age restriction details related to a video.
- "restricted": True or False, # Age-restricted trailers. For redband trailers and adult-rated video-games. Only users aged 18+ can view the content. The the field is true the content is restricted to viewers aged 18+. Otherwise The field won't be present.
- "alcoholContent": True or False, # Indicates whether or not the video has alcoholic beverage content. Only users of legal purchasing age in a particular country, as identified by ICAP, can view the content.
- "videoGameRating": "A String", # Video game rating, if any.
- },
- "fileDetails": { # Describes original video file properties, including technical details about audio and video streams, but also metadata information like content length, digitization time, or geotagging information. # The fileDetails object encapsulates information about the video file that was uploaded to YouTube, including the file's resolution, duration, audio and video codecs, stream bitrates, and more. This data can only be retrieved by the video owner.
- "bitrateBps": "A String", # The uploaded video file's combined (video and audio) bitrate in bits per second.
- "container": "A String", # The uploaded video file's container format.
- "recordingLocation": { # Geographical coordinates of a point, in WGS84. # Geographic coordinates that identify the place where the uploaded video was recorded. Coordinates are defined using WGS 84.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- "fileType": "A String", # The uploaded file's type as detected by YouTube's video processing engine. Currently, YouTube only processes video files, but this field is present whether a video file or another type of file was uploaded.
- "creationTime": "A String", # The date and time when the uploaded video file was created. The value is specified in ISO 8601 format. Currently, the following ISO 8601 formats are supported:
- # - Date only: YYYY-MM-DD
- # - Naive time: YYYY-MM-DDTHH:MM:SS
- # - Time with timezone: YYYY-MM-DDTHH:MM:SS+HH:MM
- "durationMs": "A String", # The length of the uploaded video in milliseconds.
- "fileName": "A String", # The uploaded file's name. This field is present whether a video file or another type of file was uploaded.
- "fileSize": "A String", # The uploaded file's size in bytes. This field is present whether a video file or another type of file was uploaded.
- "videoStreams": [ # A list of video streams contained in the uploaded video file. Each item in the list contains detailed metadata about a video stream.
- { # Information about a video stream.
- "bitrateBps": "A String", # The video stream's bitrate, in bits per second.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "codec": "A String", # The video codec that the stream uses.
- "widthPixels": 42, # The encoded video content's width in pixels. You can calculate the video's encoding aspect ratio as width_pixels / height_pixels.
- "heightPixels": 42, # The encoded video content's height in pixels.
- "aspectRatio": 3.14, # The video content's display aspect ratio, which specifies the aspect ratio in which the video should be displayed.
- "rotation": "A String", # The amount that YouTube needs to rotate the original source content to properly display the video.
- "frameRateFps": 3.14, # The video stream's frame rate, in frames per second.
- },
- ],
- "audioStreams": [ # A list of audio streams contained in the uploaded video file. Each item in the list contains detailed metadata about an audio stream.
- { # Information about an audio stream.
- "bitrateBps": "A String", # The audio stream's bitrate, in bits per second.
- "codec": "A String", # The audio codec that the stream uses.
- "vendor": "A String", # A value that uniquely identifies a video vendor. Typically, the value is a four-letter vendor code.
- "channelCount": 42, # The number of audio channels that the stream contains.
- },
- ],
- },
- "processingDetails": { # Describes processing status and progress and availability of some other Video resource parts. # The processingProgress object encapsulates information about YouTube's progress in processing the uploaded video file. The properties in the object identify the current processing status and an estimate of the time remaining until YouTube finishes processing the video. This part also indicates whether different types of data or content, such as file details or thumbnail images, are available for the video.
- #
- # The processingProgress object is designed to be polled so that the video uploaded can track the progress that YouTube has made in processing the uploaded video file. This data can only be retrieved by the video owner.
- "fileDetailsAvailability": "A String", # This value indicates whether file details are available for the uploaded video. You can retrieve a video's file details by requesting the fileDetails part in your videos.list() request.
- "editorSuggestionsAvailability": "A String", # This value indicates whether video editing suggestions, which might improve video quality or the playback experience, are available for the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingStatus": "A String", # The video's processing status. This value indicates whether YouTube was able to process the video or if the video is still being processed.
- "processingIssuesAvailability": "A String", # This value indicates whether the video processing engine has generated suggestions that might improve YouTube's ability to process the the video, warnings that explain video processing problems, or errors that cause video processing problems. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- "processingFailureReason": "A String", # The reason that YouTube failed to process the video. This property will only have a value if the processingStatus property's value is failed.
- "thumbnailsAvailability": "A String", # This value indicates whether thumbnail images have been generated for the video.
- "processingProgress": { # Video processing progress and completion time estimate. # The processingProgress object contains information about the progress YouTube has made in processing the video. The values are really only relevant if the video's processing status is processing.
- "timeLeftMs": "A String", # An estimate of the amount of time, in millseconds, that YouTube needs to finish processing the video.
- "partsProcessed": "A String", # The number of parts of the video that YouTube has already processed. You can estimate the percentage of the video that YouTube has already processed by calculating:
- # 100 * parts_processed / parts_total
- #
- # Note that since the estimated number of parts could increase without a corresponding increase in the number of parts that have already been processed, it is possible that the calculated progress could periodically decrease while YouTube processes a video.
- "partsTotal": "A String", # An estimate of the total number of parts that need to be processed for the video. The number may be updated with more precise estimates while YouTube processes the video.
- },
- "tagSuggestionsAvailability": "A String", # This value indicates whether keyword (tag) suggestions are available for the video. Tags can be added to a video's metadata to make it easier for other users to find the video. You can retrieve these suggestions by requesting the suggestions part in your videos.list() request.
- },
- "player": { # Player to be used for a video playback. # The player object contains information that you would use to play the video in an embedded player.
- "embedHtml": "A String", # An tag that embeds a player that will play the video.
- },
- "etag": "A String", # Etag of this resource.
- "projectDetails": { # Project specific details about the content of a YouTube Video. # The projectDetails object contains information about the project specific video metadata.
- "tags": [ # A list of project tags associated with the video during the upload.
- "A String",
- ],
- },
- "recordingDetails": { # Recording information associated with the video. # The recordingDetails object encapsulates information about the location, date and address where the video was recorded.
- "recordingDate": "A String", # The date and time when the video was recorded. The value is specified in ISO 8601 (YYYY-MM-DDThh:mm:ss.sZ) format.
- "locationDescription": "A String", # The text description of the location where the video was recorded.
- "location": { # Geographical coordinates of a point, in WGS84. # The geolocation information associated with the video.
- "latitude": 3.14, # Latitude in degrees.
- "altitude": 3.14, # Altitude above the reference ellipsoid, in meters.
- "longitude": 3.14, # Longitude in degrees.
- },
- },
- "suggestions": { # Specifies suggestions on how to improve video content, including encoding hints, tag suggestions, and editor suggestions. # The suggestions object encapsulates suggestions that identify opportunities to improve the video quality or the metadata for the uploaded video. This data can only be retrieved by the video owner.
- "processingErrors": [ # A list of errors that will prevent YouTube from successfully processing the uploaded video video. These errors indicate that, regardless of the video's current processing status, eventually, that status will almost certainly be failed.
- "A String",
- ],
- "tagSuggestions": [ # A list of keyword tags that could be added to the video's metadata to increase the likelihood that users will locate your video when searching or browsing on YouTube.
- { # A single tag suggestion with it's relevance information.
- "categoryRestricts": [ # A set of video categories for which the tag is relevant. You can use this information to display appropriate tag suggestions based on the video category that the video uploader associates with the video. By default, tag suggestions are relevant for all categories if there are no restricts defined for the keyword.
- "A String",
- ],
- "tag": "A String", # The keyword tag suggested for the video.
- },
- ],
- "editorSuggestions": [ # A list of video editing operations that might improve the video quality or playback experience of the uploaded video.
- "A String",
- ],
- "processingWarnings": [ # A list of reasons why YouTube may have difficulty transcoding the uploaded video or that might result in an erroneous transcoding. These warnings are generated before YouTube actually processes the uploaded video file. In addition, they identify issues that are unlikely to cause the video processing to fail but that might cause problems such as sync issues, video artifacts, or a missing audio track.
- "A String",
- ],
- "processingHints": [ # A list of suggestions that may improve YouTube's ability to process the video.
- "A String",
- ],
- },
- "id": "A String", # The ID that YouTube uses to uniquely identify the video.
- "conversionPings": { # The conversionPings object encapsulates information about url pings that need to be respected by the App in different video contexts.
- "pings": [ # Pings that the app shall fire for a video (authenticated by biscotti cookie). Each ping has a context, in which the app must fire the ping, and a url identifying the ping.
- {
- "conversionUrl": "A String", # The url (without the schema) that the app shall send the ping to. It's at caller's descretion to decide which schema to use (http vs https) Example of a returned url: //googleads.g.doubleclick.net/pagead/ viewthroughconversion/962985656/?data=path%3DtHe_path%3Btype%3D like%3Butuid%3DGISQtTNGYqaYl4sKxoVvKA%3Bytvid%3DUrIaJUvIQDg&labe=default The caller must append biscotti authentication (ms param in case of mobile, for example) to this ping.
- "context": "A String", # Defines the context of the ping.
- },
- ],
- },
- }
- 1# Copyright (C) 2012 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
-10# distributed under the License is distributed on an "AS IS" BASIS,
-11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-12# See the License for the specific language governing permissions and
-13# limitations under the License.
-14
-15__version__="1.2"
-16
-
-Channel notifications support.
-
-Classes and functions to support channel subscriptions and notifications
-on those channels.
-
-Notes:
- - This code is based on experimental APIs and is subject to change.
- - Notification does not do deduplication of notification ids, that's up to
- the receiver.
- - Storing the Channel between calls is up to the caller.
-
-
-Example setting up a channel:
-
- # Create a new channel that gets notifications via webhook.
- channel = new_webhook_channel("https://example.com/my_web_hook")
-
- # Store the channel, keyed by 'channel.id'. Store it before calling the
- # watch method because notifications may start arriving before the watch
- # method returns.
- ...
-
- resp = service.objects().watchAll(
- bucket="some_bucket_id", body=channel.body()).execute()
- channel.update(resp)
-
- # Store the channel, keyed by 'channel.id'. Store it after being updated
- # since the resource_id value will now be correct, and that's needed to
- # stop a subscription.
- ...
-
-
-An example Webhook implementation using webapp2. Note that webapp2 puts
-headers in a case insensitive dictionary, as headers aren't guaranteed to
-always be upper case.
-
- id = self.request.headers[X_GOOG_CHANNEL_ID]
-
- # Retrieve the channel by id.
- channel = ...
-
- # Parse notification from the headers, including validating the id.
- n = notification_from_headers(channel, self.request.headers)
-
- # Do app specific stuff with the notification here.
- if n.resource_state == 'sync':
- # Code to handle sync state.
- elif n.resource_state == 'exists':
- # Code to handle the exists state.
- elif n.resource_state == 'not_exists':
- # Code to handle the not exists state.
-
-
-Example of unsubscribing.
-
- service.channels().stop(channel.body())
-
-
notification_from_headers(channel,
- headers)
- Parse a notification from the webhook request headers, validate
- the notification, and return a Notification object.
-Parse a notification from the webhook request headers, validate
- the notification, and return a Notification object.
-
-Args:
- channel: Channel, The channel that the notification is associated with.
- headers: dict, A dictionary like object that contains the request headers
- from the webhook HTTP request.
-
-Returns:
- A Notification object.
-
-Raises:
- errors.InvalidNotificationError if the notification is invalid.
- ValueError if the X-GOOG-MESSAGE-NUMBER can't be converted to an int.
-
-
-Create a new webhook Channel.
-
-Args:
- url: str, URL to post notifications to.
- token: str, An arbitrary string associated with the channel that
- is delivered to the target address with each notification delivered
- over this channel.
- expiration: datetime.datetime, A time in the future when the channel
- should expire. Can also be None if the subscription should use the
- default expiration. Note that different services may have different
- limits on how long a subscription lasts. Check the response from the
- watch() method to see the value the service has set for an expiration
- time.
- params: dict, Extra parameters to pass on channel creation. Currently
- not used for webhook channels.
-
-
- 1"""Channel notifications support.
- 2
- 3Classes and functions to support channel subscriptions and notifications
- 4on those channels.
- 5
- 6Notes:
- 7 - This code is based on experimental APIs and is subject to change.
- 8 - Notification does not do deduplication of notification ids, that's up to
- 9 the receiver.
- 10 - Storing the Channel between calls is up to the caller.
- 11
- 12
- 13Example setting up a channel:
- 14
- 15 # Create a new channel that gets notifications via webhook.
- 16 channel = new_webhook_channel("https://example.com/my_web_hook")
- 17
- 18 # Store the channel, keyed by 'channel.id'. Store it before calling the
- 19 # watch method because notifications may start arriving before the watch
- 20 # method returns.
- 21 ...
- 22
- 23 resp = service.objects().watchAll(
- 24 bucket="some_bucket_id", body=channel.body()).execute()
- 25 channel.update(resp)
- 26
- 27 # Store the channel, keyed by 'channel.id'. Store it after being updated
- 28 # since the resource_id value will now be correct, and that's needed to
- 29 # stop a subscription.
- 30 ...
- 31
- 32
- 33An example Webhook implementation using webapp2. Note that webapp2 puts
- 34headers in a case insensitive dictionary, as headers aren't guaranteed to
- 35always be upper case.
- 36
- 37 id = self.request.headers[X_GOOG_CHANNEL_ID]
- 38
- 39 # Retrieve the channel by id.
- 40 channel = ...
- 41
- 42 # Parse notification from the headers, including validating the id.
- 43 n = notification_from_headers(channel, self.request.headers)
- 44
- 45 # Do app specific stuff with the notification here.
- 46 if n.resource_state == 'sync':
- 47 # Code to handle sync state.
- 48 elif n.resource_state == 'exists':
- 49 # Code to handle the exists state.
- 50 elif n.resource_state == 'not_exists':
- 51 # Code to handle the not exists state.
- 52
- 53
- 54Example of unsubscribing.
- 55
- 56 service.channels().stop(channel.body())
- 57"""
- 58
- 59importdatetime
- 60importuuid
- 61
- 62fromapiclientimporterrors
- 63fromoauth2clientimportutil
- 64
- 65
- 66# The unix time epoch starts at midnight 1970.
- 67EPOCH=datetime.datetime.utcfromtimestamp(0)
- 68
- 69# Map the names of the parameters in the JSON channel description to
- 70# the parameter names we use in the Channel class.
- 71CHANNEL_PARAMS={
- 72'address':'address',
- 73'id':'id',
- 74'expiration':'expiration',
- 75'params':'params',
- 76'resourceId':'resource_id',
- 77'resourceUri':'resource_uri',
- 78'type':'type',
- 79'token':'token',
- 80}
- 81
- 82X_GOOG_CHANNEL_ID='X-GOOG-CHANNEL-ID'
- 83X_GOOG_MESSAGE_NUMBER='X-GOOG-MESSAGE-NUMBER'
- 84X_GOOG_RESOURCE_STATE='X-GOOG-RESOURCE-STATE'
- 85X_GOOG_RESOURCE_URI='X-GOOG-RESOURCE-URI'
- 86X_GOOG_RESOURCE_ID='X-GOOG-RESOURCE-ID'
-
97"""A Notification from a Channel.
- 98
- 99 Notifications are not usually constructed directly, but are returned
-100 from functions like notification_from_headers().
-101
-102 Attributes:
-103 message_number: int, The unique id number of this notification.
-104 state: str, The state of the resource being monitored.
-105 uri: str, The address of the resource being monitored.
-106 resource_id: str, The unique identifier of the version of the resource at
-107 this event.
-108 """
-109@util.positional(5)
-
111"""Notification constructor.
-112
-113 Args:
-114 message_number: int, The unique id number of this notification.
-115 state: str, The state of the resource being monitored. Can be one
-116 of "exists", "not_exists", or "sync".
-117 resource_uri: str, The address of the resource being monitored.
-118 resource_id: str, The identifier of the watched resource.
-119 """
-120self.message_number=message_number
-121self.state=state
-122self.resource_uri=resource_uri
-123self.resource_id=resource_id
-
127"""A Channel for notifications.
-128
-129 Usually not constructed directly, instead it is returned from helper
-130 functions like new_webhook_channel().
-131
-132 Attributes:
-133 type: str, The type of delivery mechanism used by this channel. For
-134 example, 'web_hook'.
-135 id: str, A UUID for the channel.
-136 token: str, An arbitrary string associated with the channel that
-137 is delivered to the target address with each event delivered
-138 over this channel.
-139 address: str, The address of the receiving entity where events are
-140 delivered. Specific to the channel type.
-141 expiration: int, The time, in milliseconds from the epoch, when this
-142 channel will expire.
-143 params: dict, A dictionary of string to string, with additional parameters
-144 controlling delivery channel behavior.
-145 resource_id: str, An opaque id that identifies the resource that is
-146 being watched. Stable across different API versions.
-147 resource_uri: str, The canonicalized ID of the watched resource.
-148 """
-149
-150@util.positional(5)
-
153"""Create a new Channel.
-154
-155 In user code, this Channel constructor will not typically be called
-156 manually since there are functions for creating channels for each specific
-157 type with a more customized set of arguments to pass.
-158
-159 Args:
-160 type: str, The type of delivery mechanism used by this channel. For
-161 example, 'web_hook'.
-162 id: str, A UUID for the channel.
-163 token: str, An arbitrary string associated with the channel that
-164 is delivered to the target address with each event delivered
-165 over this channel.
-166 address: str, The address of the receiving entity where events are
-167 delivered. Specific to the channel type.
-168 expiration: int, The time, in milliseconds from the epoch, when this
-169 channel will expire.
-170 params: dict, A dictionary of string to string, with additional parameters
-171 controlling delivery channel behavior.
-172 resource_id: str, An opaque id that identifies the resource that is
-173 being watched. Stable across different API versions.
-174 resource_uri: str, The canonicalized ID of the watched resource.
-175 """
-176self.type=type
-177self.id=id
-178self.token=token
-179self.address=address
-180self.expiration=expiration
-181self.params=params
-182self.resource_id=resource_id
-183self.resource_uri=resource_uri
-
186"""Build a body from the Channel.
-187
-188 Constructs a dictionary that's appropriate for passing into watch()
-189 methods as the value of body argument.
-190
-191 Returns:
-192 A dictionary representation of the channel.
-193 """
-194result={
-195'id':self.id,
-196'token':self.token,
-197'type':self.type,
-198'address':self.address
-199}
-200ifself.params:
-201result['params']=self.params
-202ifself.resource_id:
-203result['resourceId']=self.resource_id
-204ifself.resource_uri:
-205result['resourceUri']=self.resource_uri
-206ifself.expiration:
-207result['expiration']=self.expiration
-208
-209returnresult
-
212"""Update a channel with information from the response of watch().
-213
-214 When a request is sent to watch() a resource, the response returned
-215 from the watch() request is a dictionary with updated channel information,
-216 such as the resource_id, which is needed when stopping a subscription.
-217
-218 Args:
-219 resp: dict, The response from a watch() method.
-220 """
-221forjson_name,param_nameinCHANNEL_PARAMS.iteritems():
-222value=resp.get(json_name)
-223ifvalueisnotNone:
-224setattr(self,param_name,value)
-
228"""Parse a notification from the webhook request headers, validate
-229 the notification, and return a Notification object.
-230
-231 Args:
-232 channel: Channel, The channel that the notification is associated with.
-233 headers: dict, A dictionary like object that contains the request headers
-234 from the webhook HTTP request.
-235
-236 Returns:
-237 A Notification object.
-238
-239 Raises:
-240 errors.InvalidNotificationError if the notification is invalid.
-241 ValueError if the X-GOOG-MESSAGE-NUMBER can't be converted to an int.
-242 """
-243headers=_upper_header_keys(headers)
-244channel_id=headers[X_GOOG_CHANNEL_ID]
-245ifchannel.id!=channel_id:
-246raiseerrors.InvalidNotificationError(
-247'Channel id mismatch: %s != %s'%(channel.id,channel_id))
-248else:
-249message_number=int(headers[X_GOOG_MESSAGE_NUMBER])
-250state=headers[X_GOOG_RESOURCE_STATE]
-251resource_uri=headers[X_GOOG_RESOURCE_URI]
-252resource_id=headers[X_GOOG_RESOURCE_ID]
-253returnNotification(message_number,state,resource_uri,resource_id)
-
258"""Create a new webhook Channel.
-259
-260 Args:
-261 url: str, URL to post notifications to.
-262 token: str, An arbitrary string associated with the channel that
-263 is delivered to the target address with each notification delivered
-264 over this channel.
-265 expiration: datetime.datetime, A time in the future when the channel
-266 should expire. Can also be None if the subscription should use the
-267 default expiration. Note that different services may have different
-268 limits on how long a subscription lasts. Check the response from the
-269 watch() method to see the value the service has set for an expiration
-270 time.
-271 params: dict, Extra parameters to pass on channel creation. Currently
-272 not used for webhook channels.
-273 """
-274expiration_ms=0
-275ifexpiration:
-276delta=expiration-EPOCH
-277expiration_ms=delta.microseconds/1000+(
-278delta.seconds+delta.days*24*3600)*1000
-279ifexpiration_ms<0:
-280expiration_ms=0
-281
-282returnChannel('web_hook',str(uuid.uuid4()),
-283token,url,expiration=expiration_ms,
-284params=params)
-
-A Channel for notifications.
-
-Usually not constructed directly, instead it is returned from helper
-functions like new_webhook_channel().
-
-Attributes:
- type: str, The type of delivery mechanism used by this channel. For
- example, 'web_hook'.
- id: str, A UUID for the channel.
- token: str, An arbitrary string associated with the channel that
- is delivered to the target address with each event delivered
- over this channel.
- address: str, The address of the receiving entity where events are
- delivered. Specific to the channel type.
- expiration: int, The time, in milliseconds from the epoch, when this
- channel will expire.
- params: dict, A dictionary of string to string, with additional parameters
- controlling delivery channel behavior.
- resource_id: str, An opaque id that identifies the resource that is
- being watched. Stable across different API versions.
- resource_uri: str, The canonicalized ID of the watched resource.
-
-
-Create a new Channel.
-
-In user code, this Channel constructor will not typically be called
-manually since there are functions for creating channels for each specific
-type with a more customized set of arguments to pass.
-
-Args:
- type: str, The type of delivery mechanism used by this channel. For
- example, 'web_hook'.
- id: str, A UUID for the channel.
- token: str, An arbitrary string associated with the channel that
- is delivered to the target address with each event delivered
- over this channel.
- address: str, The address of the receiving entity where events are
- delivered. Specific to the channel type.
- expiration: int, The time, in milliseconds from the epoch, when this
- channel will expire.
- params: dict, A dictionary of string to string, with additional parameters
- controlling delivery channel behavior.
- resource_id: str, An opaque id that identifies the resource that is
- being watched. Stable across different API versions.
- resource_uri: str, The canonicalized ID of the watched resource.
-
-
-Build a body from the Channel.
-
-Constructs a dictionary that's appropriate for passing into watch()
-methods as the value of body argument.
-
-Returns:
- A dictionary representation of the channel.
-
-
-Update a channel with information from the response of watch().
-
-When a request is sent to watch() a resource, the response returned
-from the watch() request is a dictionary with updated channel information,
-such as the resource_id, which is needed when stopping a subscription.
-
-Args:
- resp: dict, The response from a watch() method.
-
-
-A Notification from a Channel.
-
-Notifications are not usually constructed directly, but are returned
-from functions like notification_from_headers().
-
-Attributes:
- message_number: int, The unique id number of this notification.
- state: str, The state of the resource being monitored.
- uri: str, The address of the resource being monitored.
- resource_id: str, The unique identifier of the version of the resource at
- this event.
-
-
-Notification constructor.
-
-Args:
- message_number: int, The unique id number of this notification.
- state: str, The state of the resource being monitored. Can be one
- of "exists", "not_exists", or "sync".
- resource_uri: str, The address of the resource being monitored.
- resource_id: str, The identifier of the watched resource.
-
-
-Fix method names to avoid reserved word conflicts.
-
-Args:
- name: string, method name.
-
-Returns:
- The name with a '_' prefixed if the name is a reserved word.
-
-
-Converts key names into parameter names.
-
-For example, converting "max-results" -> "max_results"
-
-Args:
- key: string, the method key name.
-
-Returns:
- A safe method name based on the key name.
-
-
-Construct a Resource for interacting with an API.
-
-Construct a Resource object for interacting with an API. The serviceName and
-version are the names from the Discovery service.
-
-Args:
- serviceName: string, name of the service.
- version: string, the version of the service.
- http: httplib2.Http, An instance of httplib2.Http or something that acts
- like it that HTTP requests will be made through.
- discoveryServiceUrl: string, a URI Template that points to the location of
- the discovery service. It should have two parameters {api} and
- {apiVersion} that when filled in produce an absolute URI to the discovery
- document for that service.
- developerKey: string, key obtained from
- https://code.google.com/apis/console.
- model: apiclient.Model, converts to and from the wire format.
- requestBuilder: apiclient.http.HttpRequest, encapsulator for an HTTP
- request.
-
-Returns:
- A Resource object with methods for interacting with the service.
-
-
-Create a Resource for interacting with an API.
-
-Same as `build()`, but constructs the Resource object from a discovery
-document that is it given, as opposed to retrieving one over HTTP.
-
-Args:
- service: string or object, the JSON discovery document describing the API.
- The value passed in may either be the JSON string or the deserialized
- JSON.
- base: string, base URI for all HTTP requests, usually the discovery URI.
- This parameter is no longer used as rootUrl and servicePath are included
- within the discovery document. (deprecated)
- future: string, discovery document with future capabilities (deprecated).
- http: httplib2.Http, An instance of httplib2.Http or something that acts
- like it that HTTP requests will be made through.
- developerKey: string, Key for controlling API usage, generated
- from the API Console.
- model: Model class instance that serializes and de-serializes requests and
- responses.
- requestBuilder: Takes an http request and packages it up to be executed.
-
-Returns:
- A Resource object with methods for interacting with the service.
-
-
-Convert value to a string based on JSON Schema type.
-
-See http://tools.ietf.org/html/draft-zyp-json-schema-03 for more details on
-JSON Schema.
-
-Args:
- value: any, the value to convert
- schema_type: string, the type that value should be interpreted as
-
-Returns:
- A string representation of 'value' based on the schema_type.
-
-
-Convert a string media size, such as 10GB or 3TB into an integer.
-
-Args:
- maxSize: string, size as a string, such as 2MB or 7GB.
-
-Returns:
- The size as an integer value.
-
-
-Creates an absolute media path URL.
-
-Constructed using the API root URI and service path from the discovery
-document and the relative path for the API method.
-
-Args:
- root_desc: Dictionary; the entire original deserialized discovery document.
- path_url: String; the relative URL for the API method. Relative to the API
- root, which is specified in the discovery document.
-
-Returns:
- String; the absolute URI for media upload for the API method.
-
-
-Updates parameters of an API method with values specific to this library.
-
-Specifically, adds whatever global parameters are specified by the API to the
-parameters for the individual method. Also adds parameters which don't
-appear in the discovery document, but are available to all discovery based
-APIs (these are listed in STACK_QUERY_PARAMETERS).
-
-SIDE EFFECTS: This updates the parameters dictionary object in the method
-description.
-
-Args:
- method_desc: Dictionary with metadata describing an API method. Value comes
- from the dictionary of methods stored in the 'methods' key in the
- deserialized discovery document.
- root_desc: Dictionary; the entire original deserialized discovery document.
- http_method: String; the HTTP method used to call the API method described
- in method_desc.
-
-Returns:
- The updated Dictionary stored in the 'parameters' key of the method
- description dictionary.
-
-
-Updates parameters of API by adding 'media_body' if supported by method.
-
-SIDE EFFECTS: If the method supports media upload and has a required body,
-sets body to be optional (required=False) instead. Also, if there is a
-'mediaUpload' in the method description, adds 'media_upload' key to
-parameters.
-
-Args:
- method_desc: Dictionary with metadata describing an API method. Value comes
- from the dictionary of methods stored in the 'methods' key in the
- deserialized discovery document.
- root_desc: Dictionary; the entire original deserialized discovery document.
- path_url: String; the relative URL for the API method. Relative to the API
- root, which is specified in the discovery document.
- parameters: A dictionary describing method parameters for method described
- in method_desc.
-
-Returns:
- Triple (accept, max_size, media_path_url) where:
- - accept is a list of strings representing what content types are
- accepted for media upload. Defaults to empty list if not in the
- discovery document.
- - max_size is a long representing the max size in bytes allowed for a
- media upload. Defaults to 0L if not in the discovery document.
- - media_path_url is a String; the absolute URI for media upload for the
- API method. Constructed using the API root URI and service path from
- the discovery document and the relative path for the API method. If
- media upload is not supported, this is None.
-
-
-Updates a method description in a discovery document.
-
-SIDE EFFECTS: Changes the parameters dictionary in the method description with
-extra parameters which are used locally.
-
-Args:
- method_desc: Dictionary with metadata describing an API method. Value comes
- from the dictionary of methods stored in the 'methods' key in the
- deserialized discovery document.
- root_desc: Dictionary; the entire original deserialized discovery document.
-
-Returns:
- Tuple (path_url, http_method, method_id, accept, max_size, media_path_url)
- where:
- - path_url is a String; the relative URL for the API method. Relative to
- the API root, which is specified in the discovery document.
- - http_method is a String; the HTTP method used to call the API method
- described in the method description.
- - method_id is a String; the name of the RPC method associated with the
- API method, and is in the method description in the 'id' key.
- - accept is a list of strings representing what content types are
- accepted for media upload. Defaults to empty list if not in the
- discovery document.
- - max_size is a long representing the max size in bytes allowed for a
- media upload. Defaults to 0L if not in the discovery document.
- - media_path_url is a String; the absolute URI for media upload for the
- API method. Constructed using the API root URI and service path from
- the discovery document and the relative path for the API method. If
- media upload is not supported, this is None.
-
-
-Creates a method for attaching to a Resource.
-
-Args:
- methodName: string, name of the method to use.
- methodDesc: object, fragment of deserialized discovery document that
- describes the method.
- rootDesc: object, the entire deserialized discovery document.
- schema: object, mapping of schema names to schema descriptions.
-
-
-Creates any _next methods for attaching to a Resource.
-
-The _next methods allow for easy iteration through list() responses.
-
-Args:
- methodName: string, name of the method to use.
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Client for discovery based APIs.
- 16
- 17A client library for Google's discovery based APIs.
- 18"""
- 19
- 20__author__='jcgregorio@google.com (Joe Gregorio)'
- 21__all__=[
- 22'build',
- 23'build_from_document',
- 24'fix_method_name',
- 25'key2param',
- 26]
- 27
- 28
- 29# Standard library imports
- 30importcopy
- 31fromemail.mime.multipartimportMIMEMultipart
- 32fromemail.mime.nonmultipartimportMIMENonMultipart
- 33importkeyword
- 34importlogging
- 35importmimetypes
- 36importos
- 37importre
- 38importurllib
- 39importurlparse
- 40
- 41try:
- 42fromurlparseimportparse_qsl
- 43exceptImportError:
- 44fromcgiimportparse_qsl
- 45
- 46# Third-party imports
- 47importhttplib2
- 48importmimeparse
- 49importuritemplate
- 50
- 51# Local imports
- 52fromapiclient.errorsimportHttpError
- 53fromapiclient.errorsimportInvalidJsonError
- 54fromapiclient.errorsimportMediaUploadSizeError
- 55fromapiclient.errorsimportUnacceptableMimeTypeError
- 56fromapiclient.errorsimportUnknownApiNameOrVersion
- 57fromapiclient.errorsimportUnknownFileType
- 58fromapiclient.httpimportHttpRequest
- 59fromapiclient.httpimportMediaFileUpload
- 60fromapiclient.httpimportMediaUpload
- 61fromapiclient.modelimportJsonModel
- 62fromapiclient.modelimportMediaModel
- 63fromapiclient.modelimportRawModel
- 64fromapiclient.schemaimportSchemas
- 65fromoauth2client.anyjsonimportsimplejson
- 66fromoauth2client.utilimport_add_query_parameter
- 67fromoauth2client.utilimportpositional
- 68
- 69
- 70# The client library requires a version of httplib2 that supports RETRIES.
- 71httplib2.RETRIES=1
- 72
- 73logger=logging.getLogger(__name__)
- 74
- 75URITEMPLATE=re.compile('{[^}]*}')
- 76VARNAME=re.compile('[a-zA-Z0-9_-]+')
- 77DISCOVERY_URI=('https://www.googleapis.com/discovery/v1/apis/'
- 78'{api}/{apiVersion}/rest')
- 79DEFAULT_METHOD_DOC='A description of how to use this function'
- 80HTTP_PAYLOAD_METHODS=frozenset(['PUT','POST','PATCH'])
- 81_MEDIA_SIZE_BIT_SHIFTS={'KB':10,'MB':20,'GB':30,'TB':40}
- 82BODY_PARAMETER_DEFAULT_VALUE={
- 83'description':'The request body.',
- 84'type':'object',
- 85'required':True,
- 86}
- 87MEDIA_BODY_PARAMETER_DEFAULT_VALUE={
- 88'description':('The filename of the media request body, or an instance '
- 89'of a MediaUpload object.'),
- 90'type':'string',
- 91'required':False,
- 92}
- 93
- 94# Parameters accepted by the stack, but not visible via discovery.
- 95# TODO(dhermes): Remove 'userip' in 'v2'.
- 96STACK_QUERY_PARAMETERS=frozenset(['trace','pp','userip','strict'])
- 97STACK_QUERY_PARAMETER_DEFAULT_VALUE={'type':'string','location':'query'}
- 98
- 99# Library-specific reserved words beyond Python keywords.
-100RESERVED_WORDS=frozenset(['body'])
-
104"""Fix method names to avoid reserved word conflicts.
-105
-106 Args:
-107 name: string, method name.
-108
-109 Returns:
-110 The name with a '_' prefixed if the name is a reserved word.
-111 """
-112ifkeyword.iskeyword(name)ornameinRESERVED_WORDS:
-113returnname+'_'
-114else:
-115returnname
-
150"""Construct a Resource for interacting with an API.
-151
-152 Construct a Resource object for interacting with an API. The serviceName and
-153 version are the names from the Discovery service.
-154
-155 Args:
-156 serviceName: string, name of the service.
-157 version: string, the version of the service.
-158 http: httplib2.Http, An instance of httplib2.Http or something that acts
-159 like it that HTTP requests will be made through.
-160 discoveryServiceUrl: string, a URI Template that points to the location of
-161 the discovery service. It should have two parameters {api} and
-162 {apiVersion} that when filled in produce an absolute URI to the discovery
-163 document for that service.
-164 developerKey: string, key obtained from
-165 https://code.google.com/apis/console.
-166 model: apiclient.Model, converts to and from the wire format.
-167 requestBuilder: apiclient.http.HttpRequest, encapsulator for an HTTP
-168 request.
-169
-170 Returns:
-171 A Resource object with methods for interacting with the service.
-172 """
-173params={
-174'api':serviceName,
-175'apiVersion':version
-176}
-177
-178ifhttpisNone:
-179http=httplib2.Http()
-180
-181requested_url=uritemplate.expand(discoveryServiceUrl,params)
-182
-183# REMOTE_ADDR is defined by the CGI spec [RFC3875] as the environment
-184# variable that contains the network address of the client sending the
-185# request. If it exists then add that to the request for the discovery
-186# document to avoid exceeding the quota on discovery requests.
-187if'REMOTE_ADDR'inos.environ:
-188requested_url=_add_query_parameter(requested_url,'userIp',
-189os.environ['REMOTE_ADDR'])
-190logger.info('URL being requested: %s'%requested_url)
-191
-192resp,content=http.request(requested_url)
-193
-194ifresp.status==404:
-195raiseUnknownApiNameOrVersion("name: %s version: %s"%(serviceName,
-196version))
-197ifresp.status>=400:
-198raiseHttpError(resp,content,uri=requested_url)
-199
-200try:
-201service=simplejson.loads(content)
-202exceptValueError,e:
-203logger.error('Failed to parse as JSON: '+content)
-204raiseInvalidJsonError()
-205
-206returnbuild_from_document(content,base=discoveryServiceUrl,http=http,
-207developerKey=developerKey,model=model,requestBuilder=requestBuilder)
-
219"""Create a Resource for interacting with an API.
-220
-221 Same as `build()`, but constructs the Resource object from a discovery
-222 document that is it given, as opposed to retrieving one over HTTP.
-223
-224 Args:
-225 service: string or object, the JSON discovery document describing the API.
-226 The value passed in may either be the JSON string or the deserialized
-227 JSON.
-228 base: string, base URI for all HTTP requests, usually the discovery URI.
-229 This parameter is no longer used as rootUrl and servicePath are included
-230 within the discovery document. (deprecated)
-231 future: string, discovery document with future capabilities (deprecated).
-232 http: httplib2.Http, An instance of httplib2.Http or something that acts
-233 like it that HTTP requests will be made through.
-234 developerKey: string, Key for controlling API usage, generated
-235 from the API Console.
-236 model: Model class instance that serializes and de-serializes requests and
-237 responses.
-238 requestBuilder: Takes an http request and packages it up to be executed.
-239
-240 Returns:
-241 A Resource object with methods for interacting with the service.
-242 """
-243
-244# future is no longer used.
-245future={}
-246
-247ifisinstance(service,basestring):
-248service=simplejson.loads(service)
-249base=urlparse.urljoin(service['rootUrl'],service['servicePath'])
-250schema=Schemas(service)
-251
-252ifmodelisNone:
-253features=service.get('features',[])
-254model=JsonModel('dataWrapper'infeatures)
-255returnResource(http=http,baseUrl=base,model=model,
-256developerKey=developerKey,requestBuilder=requestBuilder,
-257resourceDesc=service,rootDesc=service,schema=schema)
-
261"""Convert value to a string based on JSON Schema type.
-262
-263 See http://tools.ietf.org/html/draft-zyp-json-schema-03 for more details on
-264 JSON Schema.
-265
-266 Args:
-267 value: any, the value to convert
-268 schema_type: string, the type that value should be interpreted as
-269
-270 Returns:
-271 A string representation of 'value' based on the schema_type.
-272 """
-273ifschema_type=='string':
-274iftype(value)==type('')ortype(value)==type(u''):
-275returnvalue
-276else:
-277returnstr(value)
-278elifschema_type=='integer':
-279returnstr(int(value))
-280elifschema_type=='number':
-281returnstr(float(value))
-282elifschema_type=='boolean':
-283returnstr(bool(value)).lower()
-284else:
-285iftype(value)==type('')ortype(value)==type(u''):
-286returnvalue
-287else:
-288returnstr(value)
-
292"""Convert a string media size, such as 10GB or 3TB into an integer.
-293
-294 Args:
-295 maxSize: string, size as a string, such as 2MB or 7GB.
-296
-297 Returns:
-298 The size as an integer value.
-299 """
-300iflen(maxSize)<2:
-301return0L
-302units=maxSize[-2:].upper()
-303bit_shift=_MEDIA_SIZE_BIT_SHIFTS.get(units)
-304ifbit_shiftisnotNone:
-305returnlong(maxSize[:-2])<<bit_shift
-306else:
-307returnlong(maxSize)
-
311"""Creates an absolute media path URL.
-312
-313 Constructed using the API root URI and service path from the discovery
-314 document and the relative path for the API method.
-315
-316 Args:
-317 root_desc: Dictionary; the entire original deserialized discovery document.
-318 path_url: String; the relative URL for the API method. Relative to the API
-319 root, which is specified in the discovery document.
-320
-321 Returns:
-322 String; the absolute URI for media upload for the API method.
-323 """
-324return'%(root)supload/%(service_path)s%(path)s'%{
-325'root':root_desc['rootUrl'],
-326'service_path':root_desc['servicePath'],
-327'path':path_url,
-328}
-
332"""Updates parameters of an API method with values specific to this library.
-333
-334 Specifically, adds whatever global parameters are specified by the API to the
-335 parameters for the individual method. Also adds parameters which don't
-336 appear in the discovery document, but are available to all discovery based
-337 APIs (these are listed in STACK_QUERY_PARAMETERS).
-338
-339 SIDE EFFECTS: This updates the parameters dictionary object in the method
-340 description.
-341
-342 Args:
-343 method_desc: Dictionary with metadata describing an API method. Value comes
-344 from the dictionary of methods stored in the 'methods' key in the
-345 deserialized discovery document.
-346 root_desc: Dictionary; the entire original deserialized discovery document.
-347 http_method: String; the HTTP method used to call the API method described
-348 in method_desc.
-349
-350 Returns:
-351 The updated Dictionary stored in the 'parameters' key of the method
-352 description dictionary.
-353 """
-354parameters=method_desc.setdefault('parameters',{})
-355
-356# Add in the parameters common to all methods.
-357forname,descriptioninroot_desc.get('parameters',{}).iteritems():
-358parameters[name]=description
-359
-360# Add in undocumented query parameters.
-361fornameinSTACK_QUERY_PARAMETERS:
-362parameters[name]=STACK_QUERY_PARAMETER_DEFAULT_VALUE.copy()
-363
-364# Add 'body' (our own reserved word) to parameters if the method supports
-365# a request payload.
-366ifhttp_methodinHTTP_PAYLOAD_METHODSand'request'inmethod_desc:
-367body=BODY_PARAMETER_DEFAULT_VALUE.copy()
-368body.update(method_desc['request'])
-369parameters['body']=body
-370
-371returnparameters
-
375"""Updates parameters of API by adding 'media_body' if supported by method.
-376
-377 SIDE EFFECTS: If the method supports media upload and has a required body,
-378 sets body to be optional (required=False) instead. Also, if there is a
-379 'mediaUpload' in the method description, adds 'media_upload' key to
-380 parameters.
-381
-382 Args:
-383 method_desc: Dictionary with metadata describing an API method. Value comes
-384 from the dictionary of methods stored in the 'methods' key in the
-385 deserialized discovery document.
-386 root_desc: Dictionary; the entire original deserialized discovery document.
-387 path_url: String; the relative URL for the API method. Relative to the API
-388 root, which is specified in the discovery document.
-389 parameters: A dictionary describing method parameters for method described
-390 in method_desc.
-391
-392 Returns:
-393 Triple (accept, max_size, media_path_url) where:
-394 - accept is a list of strings representing what content types are
-395 accepted for media upload. Defaults to empty list if not in the
-396 discovery document.
-397 - max_size is a long representing the max size in bytes allowed for a
-398 media upload. Defaults to 0L if not in the discovery document.
-399 - media_path_url is a String; the absolute URI for media upload for the
-400 API method. Constructed using the API root URI and service path from
-401 the discovery document and the relative path for the API method. If
-402 media upload is not supported, this is None.
-403 """
-404media_upload=method_desc.get('mediaUpload',{})
-405accept=media_upload.get('accept',[])
-406max_size=_media_size_to_long(media_upload.get('maxSize',''))
-407media_path_url=None
-408
-409ifmedia_upload:
-410media_path_url=_media_path_url_from_info(root_desc,path_url)
-411parameters['media_body']=MEDIA_BODY_PARAMETER_DEFAULT_VALUE.copy()
-412if'body'inparameters:
-413parameters['body']['required']=False
-414
-415returnaccept,max_size,media_path_url
-
419"""Updates a method description in a discovery document.
-420
-421 SIDE EFFECTS: Changes the parameters dictionary in the method description with
-422 extra parameters which are used locally.
-423
-424 Args:
-425 method_desc: Dictionary with metadata describing an API method. Value comes
-426 from the dictionary of methods stored in the 'methods' key in the
-427 deserialized discovery document.
-428 root_desc: Dictionary; the entire original deserialized discovery document.
-429
-430 Returns:
-431 Tuple (path_url, http_method, method_id, accept, max_size, media_path_url)
-432 where:
-433 - path_url is a String; the relative URL for the API method. Relative to
-434 the API root, which is specified in the discovery document.
-435 - http_method is a String; the HTTP method used to call the API method
-436 described in the method description.
-437 - method_id is a String; the name of the RPC method associated with the
-438 API method, and is in the method description in the 'id' key.
-439 - accept is a list of strings representing what content types are
-440 accepted for media upload. Defaults to empty list if not in the
-441 discovery document.
-442 - max_size is a long representing the max size in bytes allowed for a
-443 media upload. Defaults to 0L if not in the discovery document.
-444 - media_path_url is a String; the absolute URI for media upload for the
-445 API method. Constructed using the API root URI and service path from
-446 the discovery document and the relative path for the API method. If
-447 media upload is not supported, this is None.
-448 """
-449path_url=method_desc['path']
-450http_method=method_desc['httpMethod']
-451method_id=method_desc['id']
-452
-453parameters=_fix_up_parameters(method_desc,root_desc,http_method)
-454# Order is important. `_fix_up_media_upload` needs `method_desc` to have a
-455# 'parameters' key and needs to know if there is a 'body' parameter because it
-456# also sets a 'media_body' parameter.
-457accept,max_size,media_path_url=_fix_up_media_upload(
-458method_desc,root_desc,path_url,parameters)
-459
-460returnpath_url,http_method,method_id,accept,max_size,media_path_url
-
461
-
462
-463# TODO(dhermes): Convert this class to ResourceMethod and make it callable
-464-classResourceMethodParameters(object):
-
465"""Represents the parameters associated with a method.
-466
-467 Attributes:
-468 argmap: Map from method parameter name (string) to query parameter name
-469 (string).
-470 required_params: List of required parameters (represented by parameter
-471 name as string).
-472 repeated_params: List of repeated parameters (represented by parameter
-473 name as string).
-474 pattern_params: Map from method parameter name (string) to regular
-475 expression (as a string). If the pattern is set for a parameter, the
-476 value for that parameter must match the regular expression.
-477 query_params: List of parameters (represented by parameter name as string)
-478 that will be used in the query string.
-479 path_params: Set of parameters (represented by parameter name as string)
-480 that will be used in the base URL path.
-481 param_types: Map from method parameter name (string) to parameter type. Type
-482 can be any valid JSON schema type; valid values are 'any', 'array',
-483 'boolean', 'integer', 'number', 'object', or 'string'. Reference:
-484 http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
-485 enum_params: Map from method parameter name (string) to list of strings,
-486 where each list of strings is the list of acceptable enum values.
-487 """
-488
-
490"""Constructor for ResourceMethodParameters.
-491
-492 Sets default values and defers to set_parameters to populate.
-493
-494 Args:
-495 method_desc: Dictionary with metadata describing an API method. Value
-496 comes from the dictionary of methods stored in the 'methods' key in
-497 the deserialized discovery document.
-498 """
-499self.argmap={}
-500self.required_params=[]
-501self.repeated_params=[]
-502self.pattern_params={}
-503self.query_params=[]
-504# TODO(dhermes): Change path_params to a list if the extra URITEMPLATE
-505# parsing is gotten rid of.
-506self.path_params=set()
-507self.param_types={}
-508self.enum_params={}
-509
-510self.set_parameters(method_desc)
-
513"""Populates maps and lists based on method description.
-514
-515 Iterates through each parameter for the method and parses the values from
-516 the parameter dictionary.
-517
-518 Args:
-519 method_desc: Dictionary with metadata describing an API method. Value
-520 comes from the dictionary of methods stored in the 'methods' key in
-521 the deserialized discovery document.
-522 """
-523forarg,descinmethod_desc.get('parameters',{}).iteritems():
-524param=key2param(arg)
-525self.argmap[param]=arg
-526
-527ifdesc.get('pattern'):
-528self.pattern_params[param]=desc['pattern']
-529ifdesc.get('enum'):
-530self.enum_params[param]=desc['enum']
-531ifdesc.get('required'):
-532self.required_params.append(param)
-533ifdesc.get('repeated'):
-534self.repeated_params.append(param)
-535ifdesc.get('location')=='query':
-536self.query_params.append(param)
-537ifdesc.get('location')=='path':
-538self.path_params.add(param)
-539self.param_types[param]=desc.get('type','string')
-540
-541# TODO(dhermes): Determine if this is still necessary. Discovery based APIs
-542# should have all path parameters already marked with
-543# 'location: path'.
-544formatchinURITEMPLATE.finditer(method_desc['path']):
-545fornamematchinVARNAME.finditer(match.group(0)):
-546name=key2param(namematch.group(0))
-547self.path_params.add(name)
-548ifnameinself.query_params:
-549self.query_params.remove(name)
-
553"""Creates a method for attaching to a Resource.
-554
-555 Args:
-556 methodName: string, name of the method to use.
-557 methodDesc: object, fragment of deserialized discovery document that
-558 describes the method.
-559 rootDesc: object, the entire deserialized discovery document.
-560 schema: object, mapping of schema names to schema descriptions.
-561 """
-562methodName=fix_method_name(methodName)
-563(pathUrl,httpMethod,methodId,accept,
-564maxSize,mediaPathUrl)=_fix_up_method_description(methodDesc,rootDesc)
-565
-566parameters=ResourceMethodParameters(methodDesc)
-567
-568defmethod(self,**kwargs):
-569# Don't bother with doc string, it will be over-written by createMethod.
-570
-571fornameinkwargs.iterkeys():
-572ifnamenotinparameters.argmap:
-573raiseTypeError('Got an unexpected keyword argument "%s"'%name)
-574
-575# Remove args that have a value of None.
-576keys=kwargs.keys()
-577fornameinkeys:
-578ifkwargs[name]isNone:
-579delkwargs[name]
-580
-581fornameinparameters.required_params:
-582ifnamenotinkwargs:
-583raiseTypeError('Missing required parameter "%s"'%name)
-584
-585forname,regexinparameters.pattern_params.iteritems():
-586ifnameinkwargs:
-587ifisinstance(kwargs[name],basestring):
-588pvalues=[kwargs[name]]
-589else:
-590pvalues=kwargs[name]
-591forpvalueinpvalues:
-592ifre.match(regex,pvalue)isNone:
-593raiseTypeError(
-594'Parameter "%s" value "%s" does not match the pattern "%s"'%
-595(name,pvalue,regex))
-596
-597forname,enumsinparameters.enum_params.iteritems():
-598ifnameinkwargs:
-599# We need to handle the case of a repeated enum
-600# name differently, since we want to handle both
-601# arg='value' and arg=['value1', 'value2']
-602if(nameinparameters.repeated_paramsand
-603notisinstance(kwargs[name],basestring)):
-604values=kwargs[name]
-605else:
-606values=[kwargs[name]]
-607forvalueinvalues:
-608ifvaluenotinenums:
-609raiseTypeError(
-610'Parameter "%s" value "%s" is not an allowed value in "%s"'%
-611(name,value,str(enums)))
-612
-613actual_query_params={}
-614actual_path_params={}
-615forkey,valueinkwargs.iteritems():
-616to_type=parameters.param_types.get(key,'string')
-617# For repeated parameters we cast each member of the list.
-618ifkeyinparameters.repeated_paramsandtype(value)==type([]):
-619cast_value=[_cast(x,to_type)forxinvalue]
-620else:
-621cast_value=_cast(value,to_type)
-622ifkeyinparameters.query_params:
-623actual_query_params[parameters.argmap[key]]=cast_value
-624ifkeyinparameters.path_params:
-625actual_path_params[parameters.argmap[key]]=cast_value
-626body_value=kwargs.get('body',None)
-627media_filename=kwargs.get('media_body',None)
-628
-629ifself._developerKey:
-630actual_query_params['key']=self._developerKey
-631
-632model=self._model
-633ifmethodName.endswith('_media'):
-634model=MediaModel()
-635elif'response'notinmethodDesc:
-636model=RawModel()
-637
-638headers={}
-639headers,params,query,body=model.request(headers,
-640actual_path_params,actual_query_params,body_value)
-641
-642expanded_url=uritemplate.expand(pathUrl,params)
-643url=urlparse.urljoin(self._baseUrl,expanded_url+query)
-644
-645resumable=None
-646multipart_boundary=''
-647
-648ifmedia_filename:
-649# Ensure we end up with a valid MediaUpload object.
-650ifisinstance(media_filename,basestring):
-651(media_mime_type,encoding)=mimetypes.guess_type(media_filename)
-652ifmedia_mime_typeisNone:
-653raiseUnknownFileType(media_filename)
-654ifnotmimeparse.best_match([media_mime_type],','.join(accept)):
-655raiseUnacceptableMimeTypeError(media_mime_type)
-656media_upload=MediaFileUpload(media_filename,
-657mimetype=media_mime_type)
-658elifisinstance(media_filename,MediaUpload):
-659media_upload=media_filename
-660else:
-661raiseTypeError('media_filename must be str or MediaUpload.')
-662
-663# Check the maxSize
-664ifmaxSize>0andmedia_upload.size()>maxSize:
-665raiseMediaUploadSizeError("Media larger than: %s"%maxSize)
-666
-667# Use the media path uri for media uploads
-668expanded_url=uritemplate.expand(mediaPathUrl,params)
-669url=urlparse.urljoin(self._baseUrl,expanded_url+query)
-670ifmedia_upload.resumable():
-671url=_add_query_parameter(url,'uploadType','resumable')
-672
-673ifmedia_upload.resumable():
-674# This is all we need to do for resumable, if the body exists it gets
-675# sent in the first request, otherwise an empty body is sent.
-676resumable=media_upload
-677else:
-678# A non-resumable upload
-679ifbodyisNone:
-680# This is a simple media upload
-681headers['content-type']=media_upload.mimetype()
-682body=media_upload.getbytes(0,media_upload.size())
-683url=_add_query_parameter(url,'uploadType','media')
-684else:
-685# This is a multipart/related upload.
-686msgRoot=MIMEMultipart('related')
-687# msgRoot should not write out it's own headers
-688setattr(msgRoot,'_write_headers',lambdaself:None)
-689
-690# attach the body as one part
-691msg=MIMENonMultipart(*headers['content-type'].split('/'))
-692msg.set_payload(body)
-693msgRoot.attach(msg)
-694
-695# attach the media as the second part
-696msg=MIMENonMultipart(*media_upload.mimetype().split('/'))
-697msg['Content-Transfer-Encoding']='binary'
-698
-699payload=media_upload.getbytes(0,media_upload.size())
-700msg.set_payload(payload)
-701msgRoot.attach(msg)
-702body=msgRoot.as_string()
-703
-704multipart_boundary=msgRoot.get_boundary()
-705headers['content-type']=('multipart/related; '
-706'boundary="%s"')%multipart_boundary
-707url=_add_query_parameter(url,'uploadType','multipart')
-708
-709logger.info('URL being requested: %s'%url)
-710returnself._requestBuilder(self._http,
-711model.response,
-712url,
-713method=httpMethod,
-714body=body,
-715headers=headers,
-716methodId=methodId,
-717resumable=resumable)
-
718
-719docs=[methodDesc.get('description',DEFAULT_METHOD_DOC),'\n\n']
-720iflen(parameters.argmap)>0:
-721docs.append('Args:\n')
-722
-723# Skip undocumented params and params common to all methods.
-724skip_parameters=rootDesc.get('parameters',{}).keys()
-725skip_parameters.extend(STACK_QUERY_PARAMETERS)
-726
-727all_args=parameters.argmap.keys()
-728args_ordered=[key2param(s)forsinmethodDesc.get('parameterOrder',[])]
-729
-730# Move body to the front of the line.
-731if'body'inall_args:
-732args_ordered.append('body')
-733
-734fornameinall_args:
-735ifnamenotinargs_ordered:
-736args_ordered.append(name)
-737
-738forarginargs_ordered:
-739ifarginskip_parameters:
-740continue
-741
-742repeated=''
-743ifarginparameters.repeated_params:
-744repeated=' (repeated)'
-745required=''
-746ifarginparameters.required_params:
-747required=' (required)'
-748paramdesc=methodDesc['parameters'][parameters.argmap[arg]]
-749paramdoc=paramdesc.get('description','A parameter')
-750if'$ref'inparamdesc:
-751docs.append(
-752(' %s: object, %s%s%s\n The object takes the'
-753' form of:\n\n%s\n\n')%(arg,paramdoc,required,repeated,
-754schema.prettyPrintByName(paramdesc['$ref'])))
-755else:
-756paramtype=paramdesc.get('type','string')
-757docs.append(' %s: %s, %s%s%s\n'%(arg,paramtype,paramdoc,required,
-758repeated))
-759enum=paramdesc.get('enum',[])
-760enumDesc=paramdesc.get('enumDescriptions',[])
-761ifenumandenumDesc:
-762docs.append(' Allowed values\n')
-763for(name,desc)inzip(enum,enumDesc):
-764docs.append(' %s - %s\n'%(name,desc))
-765if'response'inmethodDesc:
-766ifmethodName.endswith('_media'):
-767docs.append('\nReturns:\n The media object as a string.\n\n ')
-768else:
-769docs.append('\nReturns:\n An object of the form:\n\n ')
-770docs.append(schema.prettyPrintSchema(methodDesc['response']))
-771
-772setattr(method,'__doc__',''.join(docs))
-773return(methodName,method)
-774
-
777"""Creates any _next methods for attaching to a Resource.
-778
-779 The _next methods allow for easy iteration through list() responses.
-780
-781 Args:
-782 methodName: string, name of the method to use.
-783 """
-784methodName=fix_method_name(methodName)
-785
-786defmethodNext(self,previous_request,previous_response):
-787"""Retrieves the next page of results.
-788
-789Args:
-790 previous_request: The request for the previous page. (required)
-791 previous_response: The response from the request for the previous page. (required)
-792
-793Returns:
-794 A request object that you can call 'execute()' on to request the next
-795 page. Returns None if there are no more items in the collection.
-796 """
-797# Retrieve nextPageToken from previous_response
-798# Use as pageToken in previous_request to create new request.
-799
-800if'nextPageToken'notinprevious_response:
-801returnNone
-802
-803request=copy.copy(previous_request)
-804
-805pageToken=previous_response['nextPageToken']
-806parsed=list(urlparse.urlparse(request.uri))
-807q=parse_qsl(parsed[4])
-808
-809# Find and remove old 'pageToken' value from URI
-810newq=[(key,value)for(key,value)inqifkey!='pageToken']
-811newq.append(('pageToken',pageToken))
-812parsed[4]=urllib.urlencode(newq)
-813uri=urlparse.urlunparse(parsed)
-814
-815request.uri=uri
-816
-817logger.info('URL being requested: %s'%uri)
-818
-819returnrequest
-
829"""Build a Resource from the API description.
-830
-831 Args:
-832 http: httplib2.Http, Object to make http requests with.
-833 baseUrl: string, base URL for the API. All requests are relative to this
-834 URI.
-835 model: apiclient.Model, converts to and from the wire format.
-836 requestBuilder: class or callable that instantiates an
-837 apiclient.HttpRequest object.
-838 developerKey: string, key obtained from
-839 https://code.google.com/apis/console
-840 resourceDesc: object, section of deserialized discovery document that
-841 describes a resource. Note that the top level discovery document
-842 is considered a resource.
-843 rootDesc: object, the entire deserialized discovery document.
-844 schema: object, mapping of schema names to schema descriptions.
-845 """
-846self._dynamic_attrs=[]
-847
-848self._http=http
-849self._baseUrl=baseUrl
-850self._model=model
-851self._developerKey=developerKey
-852self._requestBuilder=requestBuilder
-853self._resourceDesc=resourceDesc
-854self._rootDesc=rootDesc
-855self._schema=schema
-856
-857self._set_service_methods()
-
860"""Sets an instance attribute and tracks it in a list of dynamic attributes.
-861
-862 Args:
-863 attr_name: string; The name of the attribute to be set
-864 value: The value being set on the object and tracked in the dynamic cache.
-865 """
-866self._dynamic_attrs.append(attr_name)
-867self.__dict__[attr_name]=value
-
870"""Trim the state down to something that can be pickled.
-871
-872 Uses the fact that the instance variable _dynamic_attrs holds attrs that
-873 will be wiped and restored on pickle serialization.
-874 """
-875state_dict=copy.copy(self.__dict__)
-876fordynamic_attrinself._dynamic_attrs:
-877delstate_dict[dynamic_attr]
-878delstate_dict['_dynamic_attrs']
-879returnstate_dict
-
882"""Reconstitute the state of the object from being pickled.
-883
-884 Uses the fact that the instance variable _dynamic_attrs holds attrs that
-885 will be wiped and restored on pickle serialization.
-886 """
-887self.__dict__.update(state)
-888self._dynamic_attrs=[]
-889self._set_service_methods()
-
897# Add basic methods to Resource
-898if'methods'inresourceDesc:
-899formethodName,methodDescinresourceDesc['methods'].iteritems():
-900fixedMethodName,method=createMethod(
-901methodName,methodDesc,rootDesc,schema)
-902self._set_dynamic_attr(fixedMethodName,
-903method.__get__(self,self.__class__))
-904# Add in _media methods. The functionality of the attached method will
-905# change when it sees that the method name ends in _media.
-906ifmethodDesc.get('supportsMediaDownload',False):
-907fixedMethodName,method=createMethod(
-908methodName+'_media',methodDesc,rootDesc,schema)
-909self._set_dynamic_attr(fixedMethodName,
-910method.__get__(self,self.__class__))
-
913# Add in nested resources
-914if'resources'inresourceDesc:
-915
-916defcreateResourceMethod(methodName,methodDesc):
-917"""Create a method on the Resource to access a nested Resource.
-918
-919 Args:
-920 methodName: string, name of the method to use.
-921 methodDesc: object, fragment of deserialized discovery document that
-922 describes the method.
-923 """
-924methodName=fix_method_name(methodName)
-925
-926defmethodResource(self):
-927returnResource(http=self._http,baseUrl=self._baseUrl,
-928model=self._model,developerKey=self._developerKey,
-929requestBuilder=self._requestBuilder,
-930resourceDesc=methodDesc,rootDesc=rootDesc,
-931schema=schema)
-
-Build a Resource from the API description.
-
-Args:
- http: httplib2.Http, Object to make http requests with.
- baseUrl: string, base URL for the API. All requests are relative to this
- URI.
- model: apiclient.Model, converts to and from the wire format.
- requestBuilder: class or callable that instantiates an
- apiclient.HttpRequest object.
- developerKey: string, key obtained from
- https://code.google.com/apis/console
- resourceDesc: object, section of deserialized discovery document that
- describes a resource. Note that the top level discovery document
- is considered a resource.
- rootDesc: object, the entire deserialized discovery document.
- schema: object, mapping of schema names to schema descriptions.
-
-
-Sets an instance attribute and tracks it in a list of dynamic attributes.
-
-Args:
- attr_name: string; The name of the attribute to be set
- value: The value being set on the object and tracked in the dynamic cache.
-
-
-Trim the state down to something that can be pickled.
-
-Uses the fact that the instance variable _dynamic_attrs holds attrs that
-will be wiped and restored on pickle serialization.
-
-
-Reconstitute the state of the object from being pickled.
-
-Uses the fact that the instance variable _dynamic_attrs holds attrs that
-will be wiped and restored on pickle serialization.
-
-
-Represents the parameters associated with a method.
-
-Attributes:
- argmap: Map from method parameter name (string) to query parameter name
- (string).
- required_params: List of required parameters (represented by parameter
- name as string).
- repeated_params: List of repeated parameters (represented by parameter
- name as string).
- pattern_params: Map from method parameter name (string) to regular
- expression (as a string). If the pattern is set for a parameter, the
- value for that parameter must match the regular expression.
- query_params: List of parameters (represented by parameter name as string)
- that will be used in the query string.
- path_params: Set of parameters (represented by parameter name as string)
- that will be used in the base URL path.
- param_types: Map from method parameter name (string) to parameter type. Type
- can be any valid JSON schema type; valid values are 'any', 'array',
- 'boolean', 'integer', 'number', 'object', or 'string'. Reference:
- http://tools.ietf.org/html/draft-zyp-json-schema-03#section-5.1
- enum_params: Map from method parameter name (string) to list of strings,
- where each list of strings is the list of acceptable enum values.
-
-
-Constructor for ResourceMethodParameters.
-
-Sets default values and defers to set_parameters to populate.
-
-Args:
- method_desc: Dictionary with metadata describing an API method. Value
- comes from the dictionary of methods stored in the 'methods' key in
- the deserialized discovery document.
-
-
-Populates maps and lists based on method description.
-
-Iterates through each parameter for the method and parses the values from
-the parameter dictionary.
-
-Args:
- method_desc: Dictionary with metadata describing an API method. Value
- comes from the dictionary of methods stored in the 'methods' key in
- the deserialized discovery document.
-
-
- 1#!/usr/bin/python2.4
- 2#
- 3# Copyright (C) 2010 Google Inc.
- 4#
- 5# Licensed under the Apache License, Version 2.0 (the "License");
- 6# you may not use this file except in compliance with the License.
- 7# You may obtain a copy of the License at
- 8#
- 9# http://www.apache.org/licenses/LICENSE-2.0
- 10#
- 11# Unless required by applicable law or agreed to in writing, software
- 12# distributed under the License is distributed on an "AS IS" BASIS,
- 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 14# See the License for the specific language governing permissions and
- 15# limitations under the License.
- 16
- 17"""Errors for the library.
- 18
- 19All exceptions defined by the library
- 20should be defined in this file.
- 21"""
- 22
- 23__author__='jcgregorio@google.com (Joe Gregorio)'
- 24
- 25
- 26fromoauth2clientimportutil
- 27fromoauth2client.anyjsonimportsimplejson
-
-Classes to encapsulate a single HTTP request.
-
-The classes implement a command pattern, with every
-object supporting an execute() method that does the
-actuall HTTP request.
-
-
-Set the user-agent on every request.
-
-Args:
- http - An instance of httplib2.Http
- or something that acts like it.
- user_agent: string, the value for the user-agent header.
-
-Returns:
- A modified instance of http that was passed in.
-
-Example:
-
- h = httplib2.Http()
- h = set_user_agent(h, "my-app-name/6.0")
-
-Most of the time the user-agent will be set doing auth, this is for the rare
-cases where you are accessing an unauthenticated endpoint.
-
-
-Tunnel PATCH requests over POST.
-Args:
- http - An instance of httplib2.Http
- or something that acts like it.
-
-Returns:
- A modified instance of http that was passed in.
-
-Example:
-
- h = httplib2.Http()
- h = tunnel_patch(h, "my-app-name/6.0")
-
-Useful if you are running on a platform that doesn't support PATCH.
-Apply this last if you are using OAuth 1.0, as changing the method
-will result in a different signature.
-
-
- 1# Copyright (C) 2012 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Classes to encapsulate a single HTTP request.
- 16
- 17The classes implement a command pattern, with every
- 18object supporting an execute() method that does the
- 19actuall HTTP request.
- 20"""
- 21
- 22__author__='jcgregorio@google.com (Joe Gregorio)'
- 23
- 24importStringIO
- 25importbase64
- 26importcopy
- 27importgzip
- 28importhttplib2
- 29importlogging
- 30importmimeparse
- 31importmimetypes
- 32importos
- 33importrandom
- 34importsys
- 35importtime
- 36importurllib
- 37importurlparse
- 38importuuid
- 39
- 40fromemail.generatorimportGenerator
- 41fromemail.mime.multipartimportMIMEMultipart
- 42fromemail.mime.nonmultipartimportMIMENonMultipart
- 43fromemail.parserimportFeedParser
- 44fromerrorsimportBatchError
- 45fromerrorsimportHttpError
- 46fromerrorsimportInvalidChunkSizeError
- 47fromerrorsimportResumableUploadError
- 48fromerrorsimportUnexpectedBodyError
- 49fromerrorsimportUnexpectedMethodError
- 50frommodelimportJsonModel
- 51fromoauth2clientimportutil
- 52fromoauth2client.anyjsonimportsimplejson
- 53
- 54
- 55DEFAULT_CHUNK_SIZE=512*1024
- 56
- 57MAX_URI_LENGTH=2048
-
64"""Constructor.
- 65
- 66 Args:
- 67 resumable_progress: int, bytes sent so far.
- 68 total_size: int, total bytes in complete upload, or None if the total
- 69 upload size isn't known ahead of time.
- 70 """
- 71self.resumable_progress=resumable_progress
- 72self.total_size=total_size
-
75"""Percent of upload completed, as a float.
- 76
- 77 Returns:
- 78 the percentage complete as a float, returning 0.0 if the total size of
- 79 the upload is unknown.
- 80 """
- 81ifself.total_sizeisnotNone:
- 82returnfloat(self.resumable_progress)/float(self.total_size)
- 83else:
- 84return0.0
-
101"""Percent of download completed, as a float.
- 102
- 103 Returns:
- 104 the percentage complete as a float, returning 0.0 if the total size of
- 105 the download is unknown.
- 106 """
- 107ifself.total_sizeisnotNone:
- 108returnfloat(self.resumable_progress)/float(self.total_size)
- 109else:
- 110return0.0
-
114"""Describes a media object to upload.
- 115
- 116 Base class that defines the interface of MediaUpload subclasses.
- 117
- 118 Note that subclasses of MediaUpload may allow you to control the chunksize
- 119 when uploading a media object. It is important to keep the size of the chunk
- 120 as large as possible to keep the upload efficient. Other factors may influence
- 121 the size of the chunk you use, particularly if you are working in an
- 122 environment where individual HTTP requests may have a hardcoded time limit,
- 123 such as under certain classes of requests under Google App Engine.
- 124
- 125 Streams are io.Base compatible objects that support seek(). Some MediaUpload
- 126 subclasses support using streams directly to upload data. Support for
- 127 streaming may be indicated by a MediaUpload sub-class and if appropriate for a
- 128 platform that stream will be used for uploading the media object. The support
- 129 for streaming is indicated by has_stream() returning True. The stream() method
- 130 should return an io.Base object that supports seek(). On platforms where the
- 131 underlying httplib module supports streaming, for example Python 2.6 and
- 132 later, the stream will be passed into the http library which will result in
- 133 less memory being used and possibly faster uploads.
- 134
- 135 If you need to upload media that can't be uploaded using any of the existing
- 136 MediaUpload sub-class then you can sub-class MediaUpload for your particular
- 137 needs.
- 138 """
- 139
-
173"""Get bytes from the media.
- 174
- 175 Args:
- 176 begin: int, offset from beginning of file.
- 177 length: int, number of bytes to read, starting at begin.
- 178
- 179 Returns:
- 180 A string of bytes read. May be shorter than length if EOF was reached
- 181 first.
- 182 """
- 183raiseNotImplementedError()
-
186"""Does the underlying upload support a streaming interface.
- 187
- 188 Streaming means it is an io.IOBase subclass that supports seek, i.e.
- 189 seekable() returns True.
- 190
- 191 Returns:
- 192 True if the call to stream() will return an instance of a seekable io.Base
- 193 subclass.
- 194 """
- 195returnFalse
-
198"""A stream interface to the data being uploaded.
- 199
- 200 Returns:
- 201 The returned value is an io.IOBase subclass that supports seek, i.e.
- 202 seekable() returns True.
- 203 """
- 204raiseNotImplementedError()
-
208"""Utility function for creating a JSON representation of a MediaUpload.
- 209
- 210 Args:
- 211 strip: array, An array of names of members to not include in the JSON.
- 212
- 213 Returns:
- 214 string, a JSON representation of this instance, suitable to pass to
- 215 from_json().
- 216 """
- 217t=type(self)
- 218d=copy.copy(self.__dict__)
- 219ifstripisnotNone:
- 220formemberinstrip:
- 221deld[member]
- 222d['_class']=t.__name__
- 223d['_module']=t.__module__
- 224returnsimplejson.dumps(d)
-
227"""Create a JSON representation of an instance of MediaUpload.
- 228
- 229 Returns:
- 230 string, a JSON representation of this instance, suitable to pass to
- 231 from_json().
- 232 """
- 233returnself._to_json()
-
237"""Utility class method to instantiate a MediaUpload subclass from a JSON
- 238 representation produced by to_json().
- 239
- 240 Args:
- 241 s: string, JSON from to_json().
- 242
- 243 Returns:
- 244 An instance of the subclass of MediaUpload that was serialized with
- 245 to_json().
- 246 """
- 247data=simplejson.loads(s)
- 248# Find and call the right classmethod from_json() to restore the object.
- 249module=data['_module']
- 250m=__import__(module,fromlist=module.split('.')[:-1])
- 251kls=getattr(m,data['_class'])
- 252from_json=getattr(kls,'from_json')
- 253returnfrom_json(s)
-
257"""A MediaUpload for a io.Base objects.
- 258
- 259 Note that the Python file object is compatible with io.Base and can be used
- 260 with this class also.
- 261
- 262 fh = io.BytesIO('...Some data to upload...')
- 263 media = MediaIoBaseUpload(fh, mimetype='image/png',
- 264 chunksize=1024*1024, resumable=True)
- 265 farm.animals().insert(
- 266 id='cow',
- 267 name='cow.png',
- 268 media_body=media).execute()
- 269
- 270 Depending on the platform you are working on, you may pass -1 as the
- 271 chunksize, which indicates that the entire file should be uploaded in a single
- 272 request. If the underlying platform supports streams, such as Python 2.6 or
- 273 later, then this can be very efficient as it avoids multiple connections, and
- 274 also avoids loading the entire file into memory before sending it. Note that
- 275 Google App Engine has a 5MB limit on request size, so you should never set
- 276 your chunksize larger than 5MB, or to -1.
- 277 """
- 278
- 279@util.positional(3)
-
282"""Constructor.
- 283
- 284 Args:
- 285 fd: io.Base or file object, The source of the bytes to upload. MUST be
- 286 opened in blocking mode, do not use streams opened in non-blocking mode.
- 287 The given stream must be seekable, that is, it must be able to call
- 288 seek() on fd.
- 289 mimetype: string, Mime-type of the file.
- 290 chunksize: int, File will be uploaded in chunks of this many bytes. Only
- 291 used if resumable=True. Pass in a value of -1 if the file is to be
- 292 uploaded as a single chunk. Note that Google App Engine has a 5MB limit
- 293 on request size, so you should never set your chunksize larger than 5MB,
- 294 or to -1.
- 295 resumable: bool, True if this is a resumable upload. False means upload
- 296 in a single request.
- 297 """
- 298super(MediaIoBaseUpload,self).__init__()
- 299self._fd=fd
- 300self._mimetype=mimetype
- 301ifnot(chunksize==-1orchunksize>0):
- 302raiseInvalidChunkSizeError()
- 303self._chunksize=chunksize
- 304self._resumable=resumable
- 305
- 306self._fd.seek(0,os.SEEK_END)
- 307self._size=self._fd.tell()
-
342"""Get bytes from the media.
- 343
- 344 Args:
- 345 begin: int, offset from beginning of file.
- 346 length: int, number of bytes to read, starting at begin.
- 347
- 348 Returns:
- 349 A string of bytes read. May be shorted than length if EOF was reached
- 350 first.
- 351 """
- 352self._fd.seek(begin)
- 353returnself._fd.read(length)
-
356"""Does the underlying upload support a streaming interface.
- 357
- 358 Streaming means it is an io.IOBase subclass that supports seek, i.e.
- 359 seekable() returns True.
- 360
- 361 Returns:
- 362 True if the call to stream() will return an instance of a seekable io.Base
- 363 subclass.
- 364 """
- 365returnTrue
-
368"""A stream interface to the data being uploaded.
- 369
- 370 Returns:
- 371 The returned value is an io.IOBase subclass that supports seek, i.e.
- 372 seekable() returns True.
- 373 """
- 374returnself._fd
-
382"""A MediaUpload for a file.
- 383
- 384 Construct a MediaFileUpload and pass as the media_body parameter of the
- 385 method. For example, if we had a service that allowed uploading images:
- 386
- 387
- 388 media = MediaFileUpload('cow.png', mimetype='image/png',
- 389 chunksize=1024*1024, resumable=True)
- 390 farm.animals().insert(
- 391 id='cow',
- 392 name='cow.png',
- 393 media_body=media).execute()
- 394
- 395 Depending on the platform you are working on, you may pass -1 as the
- 396 chunksize, which indicates that the entire file should be uploaded in a single
- 397 request. If the underlying platform supports streams, such as Python 2.6 or
- 398 later, then this can be very efficient as it avoids multiple connections, and
- 399 also avoids loading the entire file into memory before sending it. Note that
- 400 Google App Engine has a 5MB limit on request size, so you should never set
- 401 your chunksize larger than 5MB, or to -1.
- 402 """
- 403
- 404@util.positional(2)
-
407"""Constructor.
- 408
- 409 Args:
- 410 filename: string, Name of the file.
- 411 mimetype: string, Mime-type of the file. If None then a mime-type will be
- 412 guessed from the file extension.
- 413 chunksize: int, File will be uploaded in chunks of this many bytes. Only
- 414 used if resumable=True. Pass in a value of -1 if the file is to be
- 415 uploaded in a single chunk. Note that Google App Engine has a 5MB limit
- 416 on request size, so you should never set your chunksize larger than 5MB,
- 417 or to -1.
- 418 resumable: bool, True if this is a resumable upload. False means upload
- 419 in a single request.
- 420 """
- 421self._filename=filename
- 422fd=open(self._filename,'rb')
- 423ifmimetypeisNone:
- 424(mimetype,encoding)=mimetypes.guess_type(filename)
- 425super(MediaFileUpload,self).__init__(fd,mimetype,chunksize=chunksize,
- 426resumable=resumable)
-
429"""Creating a JSON representation of an instance of MediaFileUpload.
- 430
- 431 Returns:
- 432 string, a JSON representation of this instance, suitable to pass to
- 433 from_json().
- 434 """
- 435returnself._to_json(strip=['_fd'])
-
445"""MediaUpload for a chunk of bytes.
- 446
- 447 DEPRECATED: Use MediaIoBaseUpload with either io.TextIOBase or StringIO for
- 448 the stream.
- 449 """
- 450
- 451@util.positional(2)
-
454"""Create a new MediaInMemoryUpload.
- 455
- 456 DEPRECATED: Use MediaIoBaseUpload with either io.TextIOBase or StringIO for
- 457 the stream.
- 458
- 459 Args:
- 460 body: string, Bytes of body content.
- 461 mimetype: string, Mime-type of the file or default of
- 462 'application/octet-stream'.
- 463 chunksize: int, File will be uploaded in chunks of this many bytes. Only
- 464 used if resumable=True.
- 465 resumable: bool, True if this is a resumable upload. False means upload
- 466 in a single request.
- 467 """
- 468fd=StringIO.StringIO(body)
- 469super(MediaInMemoryUpload,self).__init__(fd,mimetype,chunksize=chunksize,
- 470resumable=resumable)
-
495"""Constructor.
- 496
- 497 Args:
- 498 fd: io.Base or file object, The stream in which to write the downloaded
- 499 bytes.
- 500 request: apiclient.http.HttpRequest, the media request to perform in
- 501 chunks.
- 502 chunksize: int, File will be downloaded in chunks of this many bytes.
- 503 """
- 504self._fd=fd
- 505self._request=request
- 506self._uri=request.uri
- 507self._chunksize=chunksize
- 508self._progress=0
- 509self._total_size=None
- 510self._done=False
- 511
- 512# Stubs for testing.
- 513self._sleep=time.sleep
- 514self._rand=random.random
-
518"""Get the next chunk of the download.
- 519
- 520 Args:
- 521 num_retries: Integer, number of times to retry 500's with randomized
- 522 exponential backoff. If all retries fail, the raised HttpError
- 523 represents the last request. If zero (default), we attempt the
- 524 request only once.
- 525
- 526 Returns:
- 527 (status, done): (MediaDownloadStatus, boolean)
- 528 The value of 'done' will be True when the media has been fully
- 529 downloaded.
- 530
- 531 Raises:
- 532 apiclient.errors.HttpError if the response was not a 2xx.
- 533 httplib2.HttpLib2Error if a transport error has occured.
- 534 """
- 535headers={
- 536'range':'bytes=%d-%d'%(
- 537self._progress,self._progress+self._chunksize)
- 538}
- 539http=self._request.http
- 540
- 541forretry_numinxrange(num_retries+1):
- 542ifretry_num>0:
- 543self._sleep(self._rand()*2**retry_num)
- 544logging.warning(
- 545'Retry #%d for media download: GET %s, following status: %d'
- 546%(retry_num,self._uri,resp.status))
- 547
- 548resp,content=http.request(self._uri,headers=headers)
- 549ifresp.status<500:
- 550break
- 551
- 552ifresp.statusin[200,206]:
- 553if'content-location'inrespandresp['content-location']!=self._uri:
- 554self._uri=resp['content-location']
- 555self._progress+=len(content)
- 556self._fd.write(content)
- 557
- 558if'content-range'inresp:
- 559content_range=resp['content-range']
- 560length=content_range.rsplit('/',1)[1]
- 561self._total_size=int(length)
- 562
- 563ifself._progress==self._total_size:
- 564self._done=True
- 565returnMediaDownloadProgress(self._progress,self._total_size),self._done
- 566else:
- 567raiseHttpError(resp,content,uri=self._uri)
-
571"""Truncated stream.
- 572
- 573 Takes a stream and presents a stream that is a slice of the original stream.
- 574 This is used when uploading media in chunks. In later versions of Python a
- 575 stream can be passed to httplib in place of the string of data to send. The
- 576 problem is that httplib just blindly reads to the end of the stream. This
- 577 wrapper presents a virtual stream that only reads to the end of the chunk.
- 578 """
- 579
-
594"""Read n bytes.
- 595
- 596 Args:
- 597 n, int, the number of bytes to read.
- 598
- 599 Returns:
- 600 A string of length 'n', or less if EOF is reached.
- 601 """
- 602# The data left available to read sits in [cur, end)
- 603cur=self._stream.tell()
- 604end=self._begin+self._chunksize
- 605ifn==-1orcur+n>end:
- 606n=end-cur
- 607returnself._stream.read(n)
-
620"""Constructor for an HttpRequest.
- 621
- 622 Args:
- 623 http: httplib2.Http, the transport object to use to make a request
- 624 postproc: callable, called on the HTTP response and content to transform
- 625 it into a data object before returning, or raising an exception
- 626 on an error.
- 627 uri: string, the absolute URI to send the request to
- 628 method: string, the HTTP method to use
- 629 body: string, the request body of the HTTP request,
- 630 headers: dict, the HTTP request headers
- 631 methodId: string, a unique identifier for the API method being called.
- 632 resumable: MediaUpload, None if this is not a resumbale request.
- 633 """
- 634self.uri=uri
- 635self.method=method
- 636self.body=body
- 637self.headers=headersor{}
- 638self.methodId=methodId
- 639self.http=http
- 640self.postproc=postproc
- 641self.resumable=resumable
- 642self.response_callbacks=[]
- 643self._in_error_state=False
- 644
- 645# Pull the multipart boundary out of the content-type header.
- 646major,minor,params=mimeparse.parse_mime_type(
- 647headers.get('content-type','application/json'))
- 648
- 649# The size of the non-media part of the request.
- 650self.body_size=len(self.bodyor'')
- 651
- 652# The resumable URI to send chunks to.
- 653self.resumable_uri=None
- 654
- 655# The bytes that have been uploaded.
- 656self.resumable_progress=0
- 657
- 658# Stubs for testing.
- 659self._rand=random.random
- 660self._sleep=time.sleep
-
664"""Execute the request.
- 665
- 666 Args:
- 667 http: httplib2.Http, an http object to be used in place of the
- 668 one the HttpRequest request object was constructed with.
- 669 num_retries: Integer, number of times to retry 500's with randomized
- 670 exponential backoff. If all retries fail, the raised HttpError
- 671 represents the last request. If zero (default), we attempt the
- 672 request only once.
- 673
- 674 Returns:
- 675 A deserialized object model of the response body as determined
- 676 by the postproc.
- 677
- 678 Raises:
- 679 apiclient.errors.HttpError if the response was not a 2xx.
- 680 httplib2.HttpLib2Error if a transport error has occured.
- 681 """
- 682ifhttpisNone:
- 683http=self.http
- 684
- 685ifself.resumable:
- 686body=None
- 687whilebodyisNone:
- 688_,body=self.next_chunk(http=http,num_retries=num_retries)
- 689returnbody
- 690
- 691# Non-resumable case.
- 692
- 693if'content-length'notinself.headers:
- 694self.headers['content-length']=str(self.body_size)
- 695# If the request URI is too long then turn it into a POST request.
- 696iflen(self.uri)>MAX_URI_LENGTHandself.method=='GET':
- 697self.method='POST'
- 698self.headers['x-http-method-override']='GET'
- 699self.headers['content-type']='application/x-www-form-urlencoded'
- 700parsed=urlparse.urlparse(self.uri)
- 701self.uri=urlparse.urlunparse(
- 702(parsed.scheme,parsed.netloc,parsed.path,parsed.params,None,
- 703None)
- 704)
- 705self.body=parsed.query
- 706self.headers['content-length']=str(len(self.body))
- 707
- 708# Handle retries for server-side errors.
- 709forretry_numinxrange(num_retries+1):
- 710ifretry_num>0:
- 711self._sleep(self._rand()*2**retry_num)
- 712logging.warning('Retry #%d for request: %s %s, following status: %d'
- 713%(retry_num,self.method,self.uri,resp.status))
- 714
- 715resp,content=http.request(str(self.uri),method=str(self.method),
- 716body=self.body,headers=self.headers)
- 717ifresp.status<500:
- 718break
- 719
- 720forcallbackinself.response_callbacks:
- 721callback(resp)
- 722ifresp.status>=300:
- 723raiseHttpError(resp,content,uri=self.uri)
- 724returnself.postproc(resp,content)
-
728"""add_response_headers_callback
- 729
- 730 Args:
- 731 cb: Callback to be called on receiving the response headers, of signature:
- 732
- 733 def cb(resp):
- 734 # Where resp is an instance of httplib2.Response
- 735 """
- 736self.response_callbacks.append(cb)
-
740"""Execute the next step of a resumable upload.
- 741
- 742 Can only be used if the method being executed supports media uploads and
- 743 the MediaUpload object passed in was flagged as using resumable upload.
- 744
- 745 Example:
- 746
- 747 media = MediaFileUpload('cow.png', mimetype='image/png',
- 748 chunksize=1000, resumable=True)
- 749 request = farm.animals().insert(
- 750 id='cow',
- 751 name='cow.png',
- 752 media_body=media)
- 753
- 754 response = None
- 755 while response is None:
- 756 status, response = request.next_chunk()
- 757 if status:
- 758 print "Upload %d%% complete." % int(status.progress() * 100)
- 759
- 760
- 761 Args:
- 762 http: httplib2.Http, an http object to be used in place of the
- 763 one the HttpRequest request object was constructed with.
- 764 num_retries: Integer, number of times to retry 500's with randomized
- 765 exponential backoff. If all retries fail, the raised HttpError
- 766 represents the last request. If zero (default), we attempt the
- 767 request only once.
- 768
- 769 Returns:
- 770 (status, body): (ResumableMediaStatus, object)
- 771 The body will be None until the resumable media is fully uploaded.
- 772
- 773 Raises:
- 774 apiclient.errors.HttpError if the response was not a 2xx.
- 775 httplib2.HttpLib2Error if a transport error has occured.
- 776 """
- 777ifhttpisNone:
- 778http=self.http
- 779
- 780ifself.resumable.size()isNone:
- 781size='*'
- 782else:
- 783size=str(self.resumable.size())
- 784
- 785ifself.resumable_uriisNone:
- 786start_headers=copy.copy(self.headers)
- 787start_headers['X-Upload-Content-Type']=self.resumable.mimetype()
- 788ifsize!='*':
- 789start_headers['X-Upload-Content-Length']=size
- 790start_headers['content-length']=str(self.body_size)
- 791
- 792forretry_numinxrange(num_retries+1):
- 793ifretry_num>0:
- 794self._sleep(self._rand()*2**retry_num)
- 795logging.warning(
- 796'Retry #%d for resumable URI request: %s %s, following status: %d'
- 797%(retry_num,self.method,self.uri,resp.status))
- 798
- 799resp,content=http.request(self.uri,method=self.method,
- 800body=self.body,
- 801headers=start_headers)
- 802ifresp.status<500:
- 803break
- 804
- 805ifresp.status==200and'location'inresp:
- 806self.resumable_uri=resp['location']
- 807else:
- 808raiseResumableUploadError(resp,content)
- 809elifself._in_error_state:
- 810# If we are in an error state then query the server for current state of
- 811# the upload by sending an empty PUT and reading the 'range' header in
- 812# the response.
- 813headers={
- 814'Content-Range':'bytes */%s'%size,
- 815'content-length':'0'
- 816}
- 817resp,content=http.request(self.resumable_uri,'PUT',
- 818headers=headers)
- 819status,body=self._process_response(resp,content)
- 820ifbody:
- 821# The upload was complete.
- 822return(status,body)
- 823
- 824# The httplib.request method can take streams for the body parameter, but
- 825# only in Python 2.6 or later. If a stream is available under those
- 826# conditions then use it as the body argument.
- 827ifself.resumable.has_stream()andsys.version_info[1]>=6:
- 828data=self.resumable.stream()
- 829ifself.resumable.chunksize()==-1:
- 830data.seek(self.resumable_progress)
- 831chunk_end=self.resumable.size()-self.resumable_progress-1
- 832else:
- 833# Doing chunking with a stream, so wrap a slice of the stream.
- 834data=_StreamSlice(data,self.resumable_progress,
- 835self.resumable.chunksize())
- 836chunk_end=min(
- 837self.resumable_progress+self.resumable.chunksize()-1,
- 838self.resumable.size()-1)
- 839else:
- 840data=self.resumable.getbytes(
- 841self.resumable_progress,self.resumable.chunksize())
- 842
- 843# A short read implies that we are at EOF, so finish the upload.
- 844iflen(data)<self.resumable.chunksize():
- 845size=str(self.resumable_progress+len(data))
- 846
- 847chunk_end=self.resumable_progress+len(data)-1
- 848
- 849headers={
- 850'Content-Range':'bytes %d-%d/%s'%(
- 851self.resumable_progress,chunk_end,size),
- 852# Must set the content-length header here because httplib can't
- 853# calculate the size when working with _StreamSlice.
- 854'Content-Length':str(chunk_end-self.resumable_progress+1)
- 855}
- 856
- 857forretry_numinxrange(num_retries+1):
- 858ifretry_num>0:
- 859self._sleep(self._rand()*2**retry_num)
- 860logging.warning(
- 861'Retry #%d for media upload: %s %s, following status: %d'
- 862%(retry_num,self.method,self.uri,resp.status))
- 863
- 864try:
- 865resp,content=http.request(self.resumable_uri,method='PUT',
- 866body=data,
- 867headers=headers)
- 868except:
- 869self._in_error_state=True
- 870raise
- 871ifresp.status<500:
- 872break
- 873
- 874returnself._process_response(resp,content)
-
877"""Process the response from a single chunk upload.
- 878
- 879 Args:
- 880 resp: httplib2.Response, the response object.
- 881 content: string, the content of the response.
- 882
- 883 Returns:
- 884 (status, body): (ResumableMediaStatus, object)
- 885 The body will be None until the resumable media is fully uploaded.
- 886
- 887 Raises:
- 888 apiclient.errors.HttpError if the response was not a 2xx or a 308.
- 889 """
- 890ifresp.statusin[200,201]:
- 891self._in_error_state=False
- 892returnNone,self.postproc(resp,content)
- 893elifresp.status==308:
- 894self._in_error_state=False
- 895# A "308 Resume Incomplete" indicates we are not done.
- 896self.resumable_progress=int(resp['range'].split('-')[1])+1
- 897if'location'inresp:
- 898self.resumable_uri=resp['location']
- 899else:
- 900self._in_error_state=True
- 901raiseHttpError(resp,content,uri=self.uri)
- 902
- 903return(MediaUploadProgress(self.resumable_progress,self.resumable.size()),
- 904None)
-
970"""Constructor for a BatchHttpRequest.
- 971
- 972 Args:
- 973 callback: callable, A callback to be called for each response, of the
- 974 form callback(id, response, exception). The first parameter is the
- 975 request id, and the second is the deserialized response object. The
- 976 third is an apiclient.errors.HttpError exception object if an HTTP error
- 977 occurred while processing the request, or None if no error occurred.
- 978 batch_uri: string, URI to send batch requests to.
- 979 """
- 980ifbatch_uriisNone:
- 981batch_uri='https://www.googleapis.com/batch'
- 982self._batch_uri=batch_uri
- 983
- 984# Global callback to be called for each individual response in the batch.
- 985self._callback=callback
- 986
- 987# A map from id to request.
- 988self._requests={}
- 989
- 990# A map from id to callback.
- 991self._callbacks={}
- 992
- 993# List of request ids, in the order in which they were added.
- 994self._order=[]
- 995
- 996# The last auto generated id.
- 997self._last_auto_id=0
- 998
- 999# Unique ID on which to base the Content-ID headers.
-1000self._base_id=None
-1001
-1002# A map from request id to (httplib2.Response, content) response pairs
-1003self._responses={}
-1004
-1005# A map of id(Credentials) that have been refreshed.
-1006self._refreshed_credentials={}
-
1009"""Refresh the credentials and apply to the request.
-1010
-1011 Args:
-1012 request: HttpRequest, the request.
-1013 http: httplib2.Http, the global http object for the batch.
-1014 """
-1015# For the credentials to refresh, but only once per refresh_token
-1016# If there is no http per the request then refresh the http passed in
-1017# via execute()
-1018creds=None
-1019ifrequest.httpisnotNoneandhasattr(request.http.request,
-1020'credentials'):
-1021creds=request.http.request.credentials
-1022elifhttpisnotNoneandhasattr(http.request,'credentials'):
-1023creds=http.request.credentials
-1024ifcredsisnotNone:
-1025ifid(creds)notinself._refreshed_credentials:
-1026creds.refresh(http)
-1027self._refreshed_credentials[id(creds)]=1
-1028
-1029# Only apply the credentials if we are using the http object passed in,
-1030# otherwise apply() will get called during _serialize_request().
-1031ifrequest.httpisNoneornothasattr(request.http.request,
-1032'credentials'):
-1033creds.apply(request.headers)
-
1036"""Convert an id to a Content-ID header value.
-1037
-1038 Args:
-1039 id_: string, identifier of individual request.
-1040
-1041 Returns:
-1042 A Content-ID header with the id_ encoded into it. A UUID is prepended to
-1043 the value because Content-ID headers are supposed to be universally
-1044 unique.
-1045 """
-1046ifself._base_idisNone:
-1047self._base_id=uuid.uuid4()
-1048
-1049return'<%s+%s>'%(self._base_id,urllib.quote(id_))
-
1052"""Convert a Content-ID header value to an id.
-1053
-1054 Presumes the Content-ID header conforms to the format that _id_to_header()
-1055 returns.
-1056
-1057 Args:
-1058 header: string, Content-ID header value.
-1059
-1060 Returns:
-1061 The extracted id value.
-1062
-1063 Raises:
-1064 BatchError if the header is not in the expected format.
-1065 """
-1066ifheader[0]!='<'orheader[-1]!='>':
-1067raiseBatchError("Invalid value for Content-ID: %s"%header)
-1068if'+'notinheader:
-1069raiseBatchError("Invalid value for Content-ID: %s"%header)
-1070base,id_=header[1:-1].rsplit('+',1)
-1071
-1072returnurllib.unquote(id_)
-
1075"""Convert an HttpRequest object into a string.
-1076
-1077 Args:
-1078 request: HttpRequest, the request to serialize.
-1079
-1080 Returns:
-1081 The request as a string in application/http format.
-1082 """
-1083# Construct status line
-1084parsed=urlparse.urlparse(request.uri)
-1085request_line=urlparse.urlunparse(
-1086(None,None,parsed.path,parsed.params,parsed.query,None)
-1087)
-1088status_line=request.method+' '+request_line+' HTTP/1.1\n'
-1089major,minor=request.headers.get('content-type','application/json').split('/')
-1090msg=MIMENonMultipart(major,minor)
-1091headers=request.headers.copy()
-1092
-1093ifrequest.httpisnotNoneandhasattr(request.http.request,
-1094'credentials'):
-1095request.http.request.credentials.apply(headers)
-1096
-1097# MIMENonMultipart adds its own Content-Type header.
-1098if'content-type'inheaders:
-1099delheaders['content-type']
-1100
-1101forkey,valueinheaders.iteritems():
-1102msg[key]=value
-1103msg['Host']=parsed.netloc
-1104msg.set_unixfrom(None)
-1105
-1106ifrequest.bodyisnotNone:
-1107msg.set_payload(request.body)
-1108msg['content-length']=str(len(request.body))
-1109
-1110# Serialize the mime message.
-1111fp=StringIO.StringIO()
-1112# maxheaderlen=0 means don't line wrap headers.
-1113g=Generator(fp,maxheaderlen=0)
-1114g.flatten(msg,unixfrom=False)
-1115body=fp.getvalue()
-1116
-1117# Strip off the \n\n that the MIME lib tacks onto the end of the payload.
-1118ifrequest.bodyisNone:
-1119body=body[:-2]
-1120
-1121returnstatus_line.encode('utf-8')+body
-
1124"""Convert string into httplib2 response and content.
-1125
-1126 Args:
-1127 payload: string, headers and body as a string.
-1128
-1129 Returns:
-1130 A pair (resp, content), such as would be returned from httplib2.request.
-1131 """
-1132# Strip off the status line
-1133status_line,payload=payload.split('\n',1)
-1134protocol,status,reason=status_line.split(' ',2)
-1135
-1136# Parse the rest of the response
-1137parser=FeedParser()
-1138parser.feed(payload)
-1139msg=parser.close()
-1140msg['status']=status
-1141
-1142# Create httplib2.Response from the parsed headers.
-1143resp=httplib2.Response(msg)
-1144resp.reason=reason
-1145resp.version=int(protocol.split('/',1)[1].replace('.',''))
-1146
-1147content=payload.split('\r\n\r\n',1)[1]
-1148
-1149returnresp,content
-
1152"""Create a new id.
-1153
-1154 Auto incrementing number that avoids conflicts with ids already used.
-1155
-1156 Returns:
-1157 string, a new unique id.
-1158 """
-1159self._last_auto_id+=1
-1160whilestr(self._last_auto_id)inself._requests:
-1161self._last_auto_id+=1
-1162returnstr(self._last_auto_id)
-
1166"""Add a new request.
-1167
-1168 Every callback added will be paired with a unique id, the request_id. That
-1169 unique id will be passed back to the callback when the response comes back
-1170 from the server. The default behavior is to have the library generate it's
-1171 own unique id. If the caller passes in a request_id then they must ensure
-1172 uniqueness for each request_id, and if they are not an exception is
-1173 raised. Callers should either supply all request_ids or nevery supply a
-1174 request id, to avoid such an error.
-1175
-1176 Args:
-1177 request: HttpRequest, Request to add to the batch.
-1178 callback: callable, A callback to be called for this response, of the
-1179 form callback(id, response, exception). The first parameter is the
-1180 request id, and the second is the deserialized response object. The
-1181 third is an apiclient.errors.HttpError exception object if an HTTP error
-1182 occurred while processing the request, or None if no errors occurred.
-1183 request_id: string, A unique id for the request. The id will be passed to
-1184 the callback with the response.
-1185
-1186 Returns:
-1187 None
-1188
-1189 Raises:
-1190 BatchError if a media request is added to a batch.
-1191 KeyError is the request_id is not unique.
-1192 """
-1193ifrequest_idisNone:
-1194request_id=self._new_id()
-1195ifrequest.resumableisnotNone:
-1196raiseBatchError("Media requests cannot be used in a batch request.")
-1197ifrequest_idinself._requests:
-1198raiseKeyError("A request with this ID already exists: %s"%request_id)
-1199self._requests[request_id]=request
-1200self._callbacks[request_id]=callback
-1201self._order.append(request_id)
-
1204"""Serialize batch request, send to server, process response.
-1205
-1206 Args:
-1207 http: httplib2.Http, an http object to be used to make the request with.
-1208 order: list, list of request ids in the order they were added to the
-1209 batch.
-1210 request: list, list of request objects to send.
-1211
-1212 Raises:
-1213 httplib2.HttpLib2Error if a transport error has occured.
-1214 apiclient.errors.BatchError if the response is the wrong format.
-1215 """
-1216message=MIMEMultipart('mixed')
-1217# Message should not write out it's own headers.
-1218setattr(message,'_write_headers',lambdaself:None)
-1219
-1220# Add all the individual requests.
-1221forrequest_idinorder:
-1222request=requests[request_id]
-1223
-1224msg=MIMENonMultipart('application','http')
-1225msg['Content-Transfer-Encoding']='binary'
-1226msg['Content-ID']=self._id_to_header(request_id)
-1227
-1228body=self._serialize_request(request)
-1229msg.set_payload(body)
-1230message.attach(msg)
-1231
-1232body=message.as_string()
-1233
-1234headers={}
-1235headers['content-type']=('multipart/mixed; '
-1236'boundary="%s"')%message.get_boundary()
-1237
-1238resp,content=http.request(self._batch_uri,method='POST',body=body,
-1239headers=headers)
-1240
-1241ifresp.status>=300:
-1242raiseHttpError(resp,content,uri=self._batch_uri)
-1243
-1244# Now break out the individual responses and store each one.
-1245boundary,_=content.split(None,1)
-1246
-1247# Prepend with a content-type header so FeedParser can handle it.
-1248header='content-type: %s\r\n\r\n'%resp['content-type']
-1249for_parser=header+content
-1250
-1251parser=FeedParser()
-1252parser.feed(for_parser)
-1253mime_response=parser.close()
-1254
-1255ifnotmime_response.is_multipart():
-1256raiseBatchError("Response not in multipart/mixed format.",resp=resp,
-1257content=content)
-1258
-1259forpartinmime_response.get_payload():
-1260request_id=self._header_to_id(part['Content-ID'])
-1261response,content=self._deserialize_response(part.get_payload())
-1262self._responses[request_id]=(response,content)
-
1266"""Execute all the requests as a single batched HTTP request.
-1267
-1268 Args:
-1269 http: httplib2.Http, an http object to be used in place of the one the
-1270 HttpRequest request object was constructed with. If one isn't supplied
-1271 then use a http object from the requests in this batch.
-1272
-1273 Returns:
-1274 None
-1275
-1276 Raises:
-1277 httplib2.HttpLib2Error if a transport error has occured.
-1278 apiclient.errors.BatchError if the response is the wrong format.
-1279 """
-1280
-1281# If http is not supplied use the first valid one given in the requests.
-1282ifhttpisNone:
-1283forrequest_idinself._order:
-1284request=self._requests[request_id]
-1285ifrequestisnotNone:
-1286http=request.http
-1287break
-1288
-1289ifhttpisNone:
-1290raiseValueError("Missing a valid http object.")
-1291
-1292self._execute(http,self._order,self._requests)
-1293
-1294# Loop over all the requests and check for 401s. For each 401 request the
-1295# credentials should be refreshed and then sent again in a separate batch.
-1296redo_requests={}
-1297redo_order=[]
-1298
-1299forrequest_idinself._order:
-1300resp,content=self._responses[request_id]
-1301ifresp['status']=='401':
-1302redo_order.append(request_id)
-1303request=self._requests[request_id]
-1304self._refresh_and_apply_credentials(request,http)
-1305redo_requests[request_id]=request
-1306
-1307ifredo_requests:
-1308self._execute(http,redo_order,redo_requests)
-1309
-1310# Now process all callbacks that are erroring, and raise an exception for
-1311# ones that return a non-2xx response? Or add extra parameter to callback
-1312# that contains an HttpError?
-1313
-1314forrequest_idinself._order:
-1315resp,content=self._responses[request_id]
-1316
-1317request=self._requests[request_id]
-1318callback=self._callbacks[request_id]
-1319
-1320response=None
-1321exception=None
-1322try:
-1323ifresp.status>=300:
-1324raiseHttpError(resp,content,uri=request.uri)
-1325response=request.postproc(resp,content)
-1326exceptHttpError,e:
-1327exception=e
-1328
-1329ifcallbackisnotNone:
-1330callback(request_id,response,exception)
-1331ifself._callbackisnotNone:
-1332self._callback(request_id,response,exception)
-
1342"""Constructor for HttpRequestMock
-1343
-1344 Args:
-1345 resp: httplib2.Response, the response to emulate coming from the request
-1346 content: string, the response body
-1347 postproc: callable, the post processing function usually supplied by
-1348 the model class. See model.JsonModel.response() as an example.
-1349 """
-1350self.resp=resp
-1351self.content=content
-1352self.postproc=postproc
-1353ifrespisNone:
-1354self.resp=httplib2.Response({'status':200,'reason':'OK'})
-1355if'reason'inself.resp:
-1356self.resp.reason=self.resp['reason']
-
1359"""Execute the request.
-1360
-1361 Same behavior as HttpRequest.execute(), but the response is
-1362 mocked and not really from an HTTP request/response.
-1363 """
-1364returnself.postproc(self.resp,self.content)
-
1368"""A simple mock of HttpRequest
-1369
-1370 Pass in a dictionary to the constructor that maps request methodIds to
-1371 tuples of (httplib2.Response, content, opt_expected_body) that should be
-1372 returned when that method is called. None may also be passed in for the
-1373 httplib2.Response, in which case a 200 OK response will be generated.
-1374 If an opt_expected_body (str or dict) is provided, it will be compared to
-1375 the body and UnexpectedBodyError will be raised on inequality.
-1376
-1377 Example:
-1378 response = '{"data": {"id": "tag:google.c...'
-1379 requestBuilder = RequestMockBuilder(
-1380 {
-1381 'plus.activities.get': (None, response),
-1382 }
-1383 )
-1384 apiclient.discovery.build("plus", "v1", requestBuilder=requestBuilder)
-1385
-1386 Methods that you do not supply a response for will return a
-1387 200 OK with an empty string as the response content or raise an excpetion
-1388 if check_unexpected is set to True. The methodId is taken from the rpcName
-1389 in the discovery document.
-1390
-1391 For more details see the project wiki.
-1392 """
-1393
-
1395"""Constructor for RequestMockBuilder
-1396
-1397 The constructed object should be a callable object
-1398 that can replace the class HttpResponse.
-1399
-1400 responses - A dictionary that maps methodIds into tuples
-1401 of (httplib2.Response, content). The methodId
-1402 comes from the 'rpcName' field in the discovery
-1403 document.
-1404 check_unexpected - A boolean setting whether or not UnexpectedMethodError
-1405 should be raised on unsupplied method.
-1406 """
-1407self.responses=responses
-1408self.check_unexpected=check_unexpected
-
1412"""Implements the callable interface that discovery.build() expects
-1413 of requestBuilder, which is to build an object compatible with
-1414 HttpRequest.execute(). See that method for the description of the
-1415 parameters and the expected response.
-1416 """
-1417ifmethodIdinself.responses:
-1418response=self.responses[methodId]
-1419resp,content=response[:2]
-1420iflen(response)>2:
-1421# Test the body against the supplied expected_body.
-1422expected_body=response[2]
-1423ifbool(expected_body)!=bool(body):
-1424# Not expecting a body and provided one
-1425# or expecting a body and not provided one.
-1426raiseUnexpectedBodyError(expected_body,body)
-1427ifisinstance(expected_body,str):
-1428expected_body=simplejson.loads(expected_body)
-1429body=simplejson.loads(body)
-1430ifbody!=expected_body:
-1431raiseUnexpectedBodyError(expected_body,body)
-1432returnHttpRequestMock(resp,content,postproc)
-1433elifself.check_unexpected:
-1434raiseUnexpectedMethodError(methodId=methodId)
-1435else:
-1436model=JsonModel(False)
-1437returnHttpRequestMock(None,'{}',model.response)
-
1479"""Mock of httplib2.Http
-1480
-1481 Mocks a sequence of calls to request returning different responses for each
-1482 call. Create an instance initialized with the desired response headers
-1483 and content and then use as if an httplib2.Http instance.
-1484
-1485 http = HttpMockSequence([
-1486 ({'status': '401'}, ''),
-1487 ({'status': '200'}, '{"access_token":"1/3w","expires_in":3600}'),
-1488 ({'status': '200'}, 'echo_request_headers'),
-1489 ])
-1490 resp, content = http.request("http://examples.com")
-1491
-1492 There are special values you can pass in for content to trigger
-1493 behavours that are helpful in testing.
-1494
-1495 'echo_request_headers' means return the request headers in the response body
-1496 'echo_request_headers_as_json' means return the request headers in
-1497 the response body
-1498 'echo_request_body' means return the request body in the response body
-1499 'echo_request_uri' means return the request uri in the response body
-1500 """
-1501
-
1532"""Set the user-agent on every request.
-1533
-1534 Args:
-1535 http - An instance of httplib2.Http
-1536 or something that acts like it.
-1537 user_agent: string, the value for the user-agent header.
-1538
-1539 Returns:
-1540 A modified instance of http that was passed in.
-1541
-1542 Example:
-1543
-1544 h = httplib2.Http()
-1545 h = set_user_agent(h, "my-app-name/6.0")
-1546
-1547 Most of the time the user-agent will be set doing auth, this is for the rare
-1548 cases where you are accessing an unauthenticated endpoint.
-1549 """
-1550request_orig=http.request
-1551
-1552# The closure that will replace 'httplib2.Http.request'.
-1553defnew_request(uri,method='GET',body=None,headers=None,
-1554redirections=httplib2.DEFAULT_MAX_REDIRECTS,
-1555connection_type=None):
-1556"""Modify the request headers to add the user-agent."""
-1557ifheadersisNone:
-1558headers={}
-1559if'user-agent'inheaders:
-1560headers['user-agent']=user_agent+' '+headers['user-agent']
-1561else:
-1562headers['user-agent']=user_agent
-1563resp,content=request_orig(uri,method,body,headers,
-1564redirections,connection_type)
-1565returnresp,content
-
1572"""Tunnel PATCH requests over POST.
-1573 Args:
-1574 http - An instance of httplib2.Http
-1575 or something that acts like it.
-1576
-1577 Returns:
-1578 A modified instance of http that was passed in.
-1579
-1580 Example:
-1581
-1582 h = httplib2.Http()
-1583 h = tunnel_patch(h, "my-app-name/6.0")
-1584
-1585 Useful if you are running on a platform that doesn't support PATCH.
-1586 Apply this last if you are using OAuth 1.0, as changing the method
-1587 will result in a different signature.
-1588 """
-1589request_orig=http.request
-1590
-1591# The closure that will replace 'httplib2.Http.request'.
-1592defnew_request(uri,method='GET',body=None,headers=None,
-1593redirections=httplib2.DEFAULT_MAX_REDIRECTS,
-1594connection_type=None):
-1595"""Modify the request headers to add the user-agent."""
-1596ifheadersisNone:
-1597headers={}
-1598ifmethod=='PATCH':
-1599if'oauth_token'inheaders.get('authorization',''):
-1600logging.warning(
-1601'OAuth 1.0 request made with Credentials after tunnel_patch.')
-1602headers['x-http-method-override']="PATCH"
-1603method='POST'
-1604resp,content=request_orig(uri,method,body,headers,
-1605redirections,connection_type)
-1606returnresp,content
-
-Batches multiple HttpRequest objects into a single HTTP request.
-
-Example:
- from apiclient.http import BatchHttpRequest
-
- def list_animals(request_id, response, exception):
- """Do something with the animals list response."""
- if exception is not None:
- # Do something with the exception.
- pass
- else:
- # Do something with the response.
- pass
-
- def list_farmers(request_id, response, exception):
- """Do something with the farmers list response."""
- if exception is not None:
- # Do something with the exception.
- pass
- else:
- # Do something with the response.
- pass
-
- service = build('farm', 'v2')
-
- batch = BatchHttpRequest()
-
- batch.add(service.animals().list(), list_animals)
- batch.add(service.farmers().list(), list_farmers)
- batch.execute(http=http)
-
-
-Constructor for a BatchHttpRequest.
-
-Args:
- callback: callable, A callback to be called for each response, of the
- form callback(id, response, exception). The first parameter is the
- request id, and the second is the deserialized response object. The
- third is an apiclient.errors.HttpError exception object if an HTTP error
- occurred while processing the request, or None if no error occurred.
- batch_uri: string, URI to send batch requests to.
-
-
-Refresh the credentials and apply to the request.
-
-Args:
- request: HttpRequest, the request.
- http: httplib2.Http, the global http object for the batch.
-
-
-Convert an id to a Content-ID header value.
-
-Args:
- id_: string, identifier of individual request.
-
-Returns:
- A Content-ID header with the id_ encoded into it. A UUID is prepended to
- the value because Content-ID headers are supposed to be universally
- unique.
-
-
-Convert a Content-ID header value to an id.
-
-Presumes the Content-ID header conforms to the format that _id_to_header()
-returns.
-
-Args:
- header: string, Content-ID header value.
-
-Returns:
- The extracted id value.
-
-Raises:
- BatchError if the header is not in the expected format.
-
-
-Convert an HttpRequest object into a string.
-
-Args:
- request: HttpRequest, the request to serialize.
-
-Returns:
- The request as a string in application/http format.
-
-
-Convert string into httplib2 response and content.
-
-Args:
- payload: string, headers and body as a string.
-
-Returns:
- A pair (resp, content), such as would be returned from httplib2.request.
-
-
-Add a new request.
-
-Every callback added will be paired with a unique id, the request_id. That
-unique id will be passed back to the callback when the response comes back
-from the server. The default behavior is to have the library generate it's
-own unique id. If the caller passes in a request_id then they must ensure
-uniqueness for each request_id, and if they are not an exception is
-raised. Callers should either supply all request_ids or nevery supply a
-request id, to avoid such an error.
-
-Args:
- request: HttpRequest, Request to add to the batch.
- callback: callable, A callback to be called for this response, of the
- form callback(id, response, exception). The first parameter is the
- request id, and the second is the deserialized response object. The
- third is an apiclient.errors.HttpError exception object if an HTTP error
- occurred while processing the request, or None if no errors occurred.
- request_id: string, A unique id for the request. The id will be passed to
- the callback with the response.
-
-Returns:
- None
-
-Raises:
- BatchError if a media request is added to a batch.
- KeyError is the request_id is not unique.
-
-
-Serialize batch request, send to server, process response.
-
-Args:
- http: httplib2.Http, an http object to be used to make the request with.
- order: list, list of request ids in the order they were added to the
- batch.
- request: list, list of request objects to send.
-
-Raises:
- httplib2.HttpLib2Error if a transport error has occured.
- apiclient.errors.BatchError if the response is the wrong format.
-
-
-Execute all the requests as a single batched HTTP request.
-
-Args:
- http: httplib2.Http, an http object to be used in place of the one the
- HttpRequest request object was constructed with. If one isn't supplied
- then use a http object from the requests in this batch.
-
-Returns:
- None
-
-Raises:
- httplib2.HttpLib2Error if a transport error has occured.
- apiclient.errors.BatchError if the response is the wrong format.
-
-
-Mock of httplib2.Http
-
-Mocks a sequence of calls to request returning different responses for each
-call. Create an instance initialized with the desired response headers
-and content and then use as if an httplib2.Http instance.
-
- http = HttpMockSequence([
- ({'status': '401'}, ''),
- ({'status': '200'}, '{"access_token":"1/3w","expires_in":3600}'),
- ({'status': '200'}, 'echo_request_headers'),
- ])
- resp, content = http.request("http://examples.com")
-
-There are special values you can pass in for content to trigger
-behavours that are helpful in testing.
-
-'echo_request_headers' means return the request headers in the response body
-'echo_request_headers_as_json' means return the request headers in
- the response body
-'echo_request_body' means return the request body in the response body
-'echo_request_uri' means return the request uri in the response body
-
-
-Constructor for an HttpRequest.
-
-Args:
- http: httplib2.Http, the transport object to use to make a request
- postproc: callable, called on the HTTP response and content to transform
- it into a data object before returning, or raising an exception
- on an error.
- uri: string, the absolute URI to send the request to
- method: string, the HTTP method to use
- body: string, the request body of the HTTP request,
- headers: dict, the HTTP request headers
- methodId: string, a unique identifier for the API method being called.
- resumable: MediaUpload, None if this is not a resumbale request.
-
-
-Execute the request.
-
-Args:
- http: httplib2.Http, an http object to be used in place of the
- one the HttpRequest request object was constructed with.
- num_retries: Integer, number of times to retry 500's with randomized
- exponential backoff. If all retries fail, the raised HttpError
- represents the last request. If zero (default), we attempt the
- request only once.
-
-Returns:
- A deserialized object model of the response body as determined
- by the postproc.
-
-Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
- httplib2.HttpLib2Error if a transport error has occured.
-
-
-add_response_headers_callback
-
-Args:
- cb: Callback to be called on receiving the response headers, of signature:
-
- def cb(resp):
- # Where resp is an instance of httplib2.Response
-
-
-Execute the next step of a resumable upload.
-
-Can only be used if the method being executed supports media uploads and
-the MediaUpload object passed in was flagged as using resumable upload.
-
-Example:
-
- media = MediaFileUpload('cow.png', mimetype='image/png',
- chunksize=1000, resumable=True)
- request = farm.animals().insert(
- id='cow',
- name='cow.png',
- media_body=media)
-
- response = None
- while response is None:
- status, response = request.next_chunk()
- if status:
- print "Upload %d%% complete." % int(status.progress() * 100)
-
-
-Args:
- http: httplib2.Http, an http object to be used in place of the
- one the HttpRequest request object was constructed with.
- num_retries: Integer, number of times to retry 500's with randomized
- exponential backoff. If all retries fail, the raised HttpError
- represents the last request. If zero (default), we attempt the
- request only once.
-
-Returns:
- (status, body): (ResumableMediaStatus, object)
- The body will be None until the resumable media is fully uploaded.
-
-Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
- httplib2.HttpLib2Error if a transport error has occured.
-
-
-Process the response from a single chunk upload.
-
-Args:
- resp: httplib2.Response, the response object.
- content: string, the content of the response.
-
-Returns:
- (status, body): (ResumableMediaStatus, object)
- The body will be None until the resumable media is fully uploaded.
-
-Raises:
- apiclient.errors.HttpError if the response was not a 2xx or a 308.
-
-
-Constructor for HttpRequestMock
-
-Args:
- resp: httplib2.Response, the response to emulate coming from the request
- content: string, the response body
- postproc: callable, the post processing function usually supplied by
- the model class. See model.JsonModel.response() as an example.
-
-
-Percent of download completed, as a float.
-
-Returns:
- the percentage complete as a float, returning 0.0 if the total size of
- the download is unknown.
-
-
-A MediaUpload for a file.
-
-Construct a MediaFileUpload and pass as the media_body parameter of the
-method. For example, if we had a service that allowed uploading images:
-
-
- media = MediaFileUpload('cow.png', mimetype='image/png',
- chunksize=1024*1024, resumable=True)
- farm.animals().insert(
- id='cow',
- name='cow.png',
- media_body=media).execute()
-
-Depending on the platform you are working on, you may pass -1 as the
-chunksize, which indicates that the entire file should be uploaded in a single
-request. If the underlying platform supports streams, such as Python 2.6 or
-later, then this can be very efficient as it avoids multiple connections, and
-also avoids loading the entire file into memory before sending it. Note that
-Google App Engine has a 5MB limit on request size, so you should never set
-your chunksize larger than 5MB, or to -1.
-
-
-Constructor.
-
-Args:
- filename: string, Name of the file.
- mimetype: string, Mime-type of the file. If None then a mime-type will be
- guessed from the file extension.
- chunksize: int, File will be uploaded in chunks of this many bytes. Only
- used if resumable=True. Pass in a value of -1 if the file is to be
- uploaded in a single chunk. Note that Google App Engine has a 5MB limit
- on request size, so you should never set your chunksize larger than 5MB,
- or to -1.
- resumable: bool, True if this is a resumable upload. False means upload
- in a single request.
-
-
-Creating a JSON representation of an instance of MediaFileUpload.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Create a new MediaInMemoryUpload.
-
-DEPRECATED: Use MediaIoBaseUpload with either io.TextIOBase or StringIO for
-the stream.
-
-Args:
- body: string, Bytes of body content.
- mimetype: string, Mime-type of the file or default of
- 'application/octet-stream'.
- chunksize: int, File will be uploaded in chunks of this many bytes. Only
- used if resumable=True.
- resumable: bool, True if this is a resumable upload. False means upload
- in a single request.
-
-
-
-Constructor.
-
-Args:
- fd: io.Base or file object, The stream in which to write the downloaded
- bytes.
- request: apiclient.http.HttpRequest, the media request to perform in
- chunks.
- chunksize: int, File will be downloaded in chunks of this many bytes.
-
-
-Get the next chunk of the download.
-
-Args:
- num_retries: Integer, number of times to retry 500's with randomized
- exponential backoff. If all retries fail, the raised HttpError
- represents the last request. If zero (default), we attempt the
- request only once.
-
-Returns:
- (status, done): (MediaDownloadStatus, boolean)
- The value of 'done' will be True when the media has been fully
- downloaded.
-
-Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
- httplib2.HttpLib2Error if a transport error has occured.
-
-
-A MediaUpload for a io.Base objects.
-
-Note that the Python file object is compatible with io.Base and can be used
-with this class also.
-
- fh = io.BytesIO('...Some data to upload...')
- media = MediaIoBaseUpload(fh, mimetype='image/png',
- chunksize=1024*1024, resumable=True)
- farm.animals().insert(
- id='cow',
- name='cow.png',
- media_body=media).execute()
-
-Depending on the platform you are working on, you may pass -1 as the
-chunksize, which indicates that the entire file should be uploaded in a single
-request. If the underlying platform supports streams, such as Python 2.6 or
-later, then this can be very efficient as it avoids multiple connections, and
-also avoids loading the entire file into memory before sending it. Note that
-Google App Engine has a 5MB limit on request size, so you should never set
-your chunksize larger than 5MB, or to -1.
-
-
-Constructor.
-
-Args:
- fd: io.Base or file object, The source of the bytes to upload. MUST be
- opened in blocking mode, do not use streams opened in non-blocking mode.
- The given stream must be seekable, that is, it must be able to call
- seek() on fd.
- mimetype: string, Mime-type of the file.
- chunksize: int, File will be uploaded in chunks of this many bytes. Only
- used if resumable=True. Pass in a value of -1 if the file is to be
- uploaded as a single chunk. Note that Google App Engine has a 5MB limit
- on request size, so you should never set your chunksize larger than 5MB,
- or to -1.
- resumable: bool, True if this is a resumable upload. False means upload
- in a single request.
-
-
-Get bytes from the media.
-
-Args:
- begin: int, offset from beginning of file.
- length: int, number of bytes to read, starting at begin.
-
-Returns:
- A string of bytes read. May be shorted than length if EOF was reached
- first.
-
-
-Does the underlying upload support a streaming interface.
-
-Streaming means it is an io.IOBase subclass that supports seek, i.e.
-seekable() returns True.
-
-Returns:
- True if the call to stream() will return an instance of a seekable io.Base
- subclass.
-
-
-A stream interface to the data being uploaded.
-
-Returns:
- The returned value is an io.IOBase subclass that supports seek, i.e.
- seekable() returns True.
-
-
-Describes a media object to upload.
-
-Base class that defines the interface of MediaUpload subclasses.
-
-Note that subclasses of MediaUpload may allow you to control the chunksize
-when uploading a media object. It is important to keep the size of the chunk
-as large as possible to keep the upload efficient. Other factors may influence
-the size of the chunk you use, particularly if you are working in an
-environment where individual HTTP requests may have a hardcoded time limit,
-such as under certain classes of requests under Google App Engine.
-
-Streams are io.Base compatible objects that support seek(). Some MediaUpload
-subclasses support using streams directly to upload data. Support for
-streaming may be indicated by a MediaUpload sub-class and if appropriate for a
-platform that stream will be used for uploading the media object. The support
-for streaming is indicated by has_stream() returning True. The stream() method
-should return an io.Base object that supports seek(). On platforms where the
-underlying httplib module supports streaming, for example Python 2.6 and
-later, the stream will be passed into the http library which will result in
-less memory being used and possibly faster uploads.
-
-If you need to upload media that can't be uploaded using any of the existing
-MediaUpload sub-class then you can sub-class MediaUpload for your particular
-needs.
-
-
-Get bytes from the media.
-
-Args:
- begin: int, offset from beginning of file.
- length: int, number of bytes to read, starting at begin.
-
-Returns:
- A string of bytes read. May be shorter than length if EOF was reached
- first.
-
-
-Does the underlying upload support a streaming interface.
-
-Streaming means it is an io.IOBase subclass that supports seek, i.e.
-seekable() returns True.
-
-Returns:
- True if the call to stream() will return an instance of a seekable io.Base
- subclass.
-
-
-A stream interface to the data being uploaded.
-
-Returns:
- The returned value is an io.IOBase subclass that supports seek, i.e.
- seekable() returns True.
-
-
-Utility function for creating a JSON representation of a MediaUpload.
-
-Args:
- strip: array, An array of names of members to not include in the JSON.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Create a JSON representation of an instance of MediaUpload.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Utility class method to instantiate a MediaUpload subclass from a JSON
-representation produced by to_json().
-
-Args:
- s: string, JSON from to_json().
-
-Returns:
- An instance of the subclass of MediaUpload that was serialized with
- to_json().
-
-
-Constructor.
-
-Args:
- resumable_progress: int, bytes sent so far.
- total_size: int, total bytes in complete upload, or None if the total
- upload size isn't known ahead of time.
-
-
-Percent of upload completed, as a float.
-
-Returns:
- the percentage complete as a float, returning 0.0 if the total size of
- the upload is unknown.
-
-
-A simple mock of HttpRequest
-
-Pass in a dictionary to the constructor that maps request methodIds to
-tuples of (httplib2.Response, content, opt_expected_body) that should be
-returned when that method is called. None may also be passed in for the
-httplib2.Response, in which case a 200 OK response will be generated.
-If an opt_expected_body (str or dict) is provided, it will be compared to
-the body and UnexpectedBodyError will be raised on inequality.
-
-Example:
- response = '{"data": {"id": "tag:google.c...'
- requestBuilder = RequestMockBuilder(
- {
- 'plus.activities.get': (None, response),
- }
- )
- apiclient.discovery.build("plus", "v1", requestBuilder=requestBuilder)
-
-Methods that you do not supply a response for will return a
-200 OK with an empty string as the response content or raise an excpetion
-if check_unexpected is set to True. The methodId is taken from the rpcName
-in the discovery document.
-
-For more details see the project wiki.
-
-
-Constructor for RequestMockBuilder
-
-The constructed object should be a callable object
-that can replace the class HttpResponse.
-
-responses - A dictionary that maps methodIds into tuples
- of (httplib2.Response, content). The methodId
- comes from the 'rpcName' field in the discovery
- document.
-check_unexpected - A boolean setting whether or not UnexpectedMethodError
- should be raised on unsupplied method.
-
-
-Implements the callable interface that discovery.build() expects
-of requestBuilder, which is to build an object compatible with
-HttpRequest.execute(). See that method for the description of the
-parameters and the expected response.
-
-
-Truncated stream.
-
-Takes a stream and presents a stream that is a slice of the original stream.
-This is used when uploading media in chunks. In later versions of Python a
-stream can be passed to httplib in place of the string of data to send. The
-problem is that httplib just blindly reads to the end of the stream. This
-wrapper presents a virtual stream that only reads to the end of the chunk.
-
-
-Constructor.
-
-Args:
- stream: (io.Base, file object), the stream to wrap.
- begin: int, the seek position the chunk begins at.
- chunksize: int, the size of the chunk.
-
-
-MIME-Type Parser
-
-This module provides basic functions for handling mime-types. It can handle
-matching mime-types against a list of media-ranges. See section 14.1 of the
-HTTP specification [RFC 2616] for a complete explanation.
-
- http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
-
-Contents:
- - parse_mime_type(): Parses a mime-type into its component parts.
- - parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q'
- quality parameter.
- - quality(): Determines the quality ('q') of a mime-type when
- compared against a list of media-ranges.
- - quality_parsed(): Just like quality() except the second parameter must be
- pre-parsed.
- - best_match(): Choose the mime-type with the highest quality ('q')
- from a list of candidates.
-
-
-Parses a mime-type into its component parts.
-
-Carves up a mime-type and returns a tuple of the (type, subtype, params)
-where 'params' is a dictionary of all the parameters for the media range.
-For example, the media range 'application/xhtml;q=0.5' would get parsed
-into:
-
- ('application', 'xhtml', {'q', '0.5'})
-
-
-
-Parse a media-range into its component parts.
-
-Carves up a media range and returns a tuple of the (type, subtype,
-params) where 'params' is a dictionary of all the parameters for the media
-range. For example, the media range 'application/*;q=0.5' would get parsed
-into:
-
- ('application', '*', {'q', '0.5'})
-
-In addition this function also guarantees that there is a value for 'q'
-in the params dictionary, filling it in with a proper default if
-necessary.
-
-
-Find the best match for a mime-type amongst parsed media-ranges.
-
-Find the best match for a given mime-type against a list of media_ranges
-that have already been parsed by parse_media_range(). Returns a tuple of
-the fitness value and the value of the 'q' quality parameter of the best
-match, or (-1, 0) if no match was found. Just as for quality_parsed(),
-'parsed_ranges' must be a list of parsed media ranges.
-
-
-Find the best match for a mime-type amongst parsed media-ranges.
-
-Find the best match for a given mime-type against a list of media_ranges
-that have already been parsed by parse_media_range(). Returns the 'q'
-quality parameter of the best match, 0 if no match was found. This function
-bahaves the same as quality() except that 'parsed_ranges' must be a list of
-parsed media ranges.
-
-
-Return the quality ('q') of a mime-type against a list of media-ranges.
-
-Returns the quality 'q' of a mime-type when compared against the
-media-ranges in ranges. For example:
-
->>> quality('text/html','text/*;q=0.3, text/html;q=0.7,
- text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5')
-0.7
-
-
-Return mime-type with the highest quality ('q') from list of candidates.
-
-Takes a list of supported mime-types and finds the best match for all the
-media-ranges listed in header. The value of header must be a string that
-conforms to the format of the HTTP Accept: header. The value of 'supported'
-is a list of mime-types. The list of supported mime-types should be sorted
-in order of increasing desirability, in case of a situation where there is
-a tie.
-
->>> best_match(['application/xbel+xml', 'text/xml'],
- 'text/*;q=0.5,*/*; q=0.1')
-'text/xml'
-
-
- 1# Copyright (C) 2007 Joe Gregorio
- 2#
- 3# Licensed under the MIT License
- 4
- 5"""MIME-Type Parser
- 6
- 7This module provides basic functions for handling mime-types. It can handle
- 8matching mime-types against a list of media-ranges. See section 14.1 of the
- 9HTTP specification [RFC 2616] for a complete explanation.
- 10
- 11 http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1
- 12
- 13Contents:
- 14 - parse_mime_type(): Parses a mime-type into its component parts.
- 15 - parse_media_range(): Media-ranges are mime-types with wild-cards and a 'q'
- 16 quality parameter.
- 17 - quality(): Determines the quality ('q') of a mime-type when
- 18 compared against a list of media-ranges.
- 19 - quality_parsed(): Just like quality() except the second parameter must be
- 20 pre-parsed.
- 21 - best_match(): Choose the mime-type with the highest quality ('q')
- 22 from a list of candidates.
- 23"""
- 24
- 25__version__='0.1.3'
- 26__author__='Joe Gregorio'
- 27__email__='joe@bitworking.org'
- 28__license__='MIT License'
- 29__credits__=''
- 30
- 31
-
33"""Parses a mime-type into its component parts.
- 34
- 35 Carves up a mime-type and returns a tuple of the (type, subtype, params)
- 36 where 'params' is a dictionary of all the parameters for the media range.
- 37 For example, the media range 'application/xhtml;q=0.5' would get parsed
- 38 into:
- 39
- 40 ('application', 'xhtml', {'q', '0.5'})
- 41 """
- 42parts=mime_type.split(';')
- 43params=dict([tuple([s.strip()forsinparam.split('=',1)])\
- 44forparaminparts[1:]
- 45])
- 46full_type=parts[0].strip()
- 47# Java URLConnection class sends an Accept header that includes a
- 48# single '*'. Turn it into a legal wildcard.
- 49iffull_type=='*':
- 50full_type='*/*'
- 51(type,subtype)=full_type.split('/')
- 52
- 53return(type.strip(),subtype.strip(),params)
-
57"""Parse a media-range into its component parts.
- 58
- 59 Carves up a media range and returns a tuple of the (type, subtype,
- 60 params) where 'params' is a dictionary of all the parameters for the media
- 61 range. For example, the media range 'application/*;q=0.5' would get parsed
- 62 into:
- 63
- 64 ('application', '*', {'q', '0.5'})
- 65
- 66 In addition this function also guarantees that there is a value for 'q'
- 67 in the params dictionary, filling it in with a proper default if
- 68 necessary.
- 69 """
- 70(type,subtype,params)=parse_mime_type(range)
- 71ifnotparams.has_key('q')ornotparams['q']or \
- 72notfloat(params['q'])orfloat(params['q'])>1\
- 73orfloat(params['q'])<0:
- 74params['q']='1'
- 75
- 76return(type,subtype,params)
-
80"""Find the best match for a mime-type amongst parsed media-ranges.
- 81
- 82 Find the best match for a given mime-type against a list of media_ranges
- 83 that have already been parsed by parse_media_range(). Returns a tuple of
- 84 the fitness value and the value of the 'q' quality parameter of the best
- 85 match, or (-1, 0) if no match was found. Just as for quality_parsed(),
- 86 'parsed_ranges' must be a list of parsed media ranges.
- 87 """
- 88best_fitness=-1
- 89best_fit_q=0
- 90(target_type,target_subtype,target_params)=\
- 91parse_media_range(mime_type)
- 92for(type,subtype,params)inparsed_ranges:
- 93type_match=(type==target_typeor\
- 94type=='*'or\
- 95target_type=='*')
- 96subtype_match=(subtype==target_subtypeor\
- 97subtype=='*'or\
- 98target_subtype=='*')
- 99iftype_matchandsubtype_match:
-100param_matches=reduce(lambdax,y:x+y,[1for(key,value)in \
-101target_params.iteritems()ifkey!='q'and \
-102params.has_key(key)andvalue==params[key]],0)
-103fitness=(type==target_type)and100or0
-104fitness+=(subtype==target_subtype)and10or0
-105fitness+=param_matches
-106iffitness>best_fitness:
-107best_fitness=fitness
-108best_fit_q=params['q']
-109
-110returnbest_fitness,float(best_fit_q)
-
114"""Find the best match for a mime-type amongst parsed media-ranges.
-115
-116 Find the best match for a given mime-type against a list of media_ranges
-117 that have already been parsed by parse_media_range(). Returns the 'q'
-118 quality parameter of the best match, 0 if no match was found. This function
-119 bahaves the same as quality() except that 'parsed_ranges' must be a list of
-120 parsed media ranges.
-121 """
-122
-123returnfitness_and_quality_parsed(mime_type,parsed_ranges)[1]
-
127"""Return the quality ('q') of a mime-type against a list of media-ranges.
-128
-129 Returns the quality 'q' of a mime-type when compared against the
-130 media-ranges in ranges. For example:
-131
-132 >>> quality('text/html','text/*;q=0.3, text/html;q=0.7,
-133 text/html;level=1, text/html;level=2;q=0.4, */*;q=0.5')
-134 0.7
-135
-136 """
-137parsed_ranges=[parse_media_range(r)forrinranges.split(',')]
-138
-139returnquality_parsed(mime_type,parsed_ranges)
-
143"""Return mime-type with the highest quality ('q') from list of candidates.
-144
-145 Takes a list of supported mime-types and finds the best match for all the
-146 media-ranges listed in header. The value of header must be a string that
-147 conforms to the format of the HTTP Accept: header. The value of 'supported'
-148 is a list of mime-types. The list of supported mime-types should be sorted
-149 in order of increasing desirability, in case of a situation where there is
-150 a tie.
-151
-152 >>> best_match(['application/xbel+xml', 'text/xml'],
-153 'text/*;q=0.5,*/*; q=0.1')
-154 'text/xml'
-155 """
-156split_header=_filter_blank(header.split(','))
-157parsed_header=[parse_media_range(r)forrinsplit_header]
-158weighted_matches=[]
-159pos=0
-160formime_typeinsupported:
-161weighted_matches.append((fitness_and_quality_parsed(mime_type,
-162parsed_header),pos,mime_type))
-163pos+=1
-164weighted_matches.sort()
-165
-166returnweighted_matches[-1][0][1]andweighted_matches[-1][2]or''
-
-Model objects for requests and responses.
-
-Each API may support one or more serializations, such
-as JSON, Atom, etc. The model classes are responsible
-for converting between the wire format and the Python
-object representation.
-
-
-Create a patch object.
-
-Some methods support PATCH, an efficient way to send updates to a resource.
-This method allows the easy construction of patch bodies by looking at the
-differences between a resource before and after it was modified.
-
-Args:
- original: object, the original deserialized resource
- modified: object, the modified deserialized resource
-Returns:
- An object that contains only the changes from original to modified, in a
- form suitable to pass to a PATCH method.
-
-Example usage:
- item = service.activities().get(postid=postid, userid=userid).execute()
- original = copy.deepcopy(item)
- item['object']['content'] = 'This is updated.'
- service.activities.patch(postid=postid, userid=userid,
- body=makepatch(original, item)).execute()
-
-
- 1#!/usr/bin/python2.4
- 2#
- 3# Copyright (C) 2010 Google Inc.
- 4#
- 5# Licensed under the Apache License, Version 2.0 (the "License");
- 6# you may not use this file except in compliance with the License.
- 7# You may obtain a copy of the License at
- 8#
- 9# http://www.apache.org/licenses/LICENSE-2.0
- 10#
- 11# Unless required by applicable law or agreed to in writing, software
- 12# distributed under the License is distributed on an "AS IS" BASIS,
- 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 14# See the License for the specific language governing permissions and
- 15# limitations under the License.
- 16
- 17"""Model objects for requests and responses.
- 18
- 19Each API may support one or more serializations, such
- 20as JSON, Atom, etc. The model classes are responsible
- 21for converting between the wire format and the Python
- 22object representation.
- 23"""
- 24
- 25__author__='jcgregorio@google.com (Joe Gregorio)'
- 26
- 27importlogging
- 28importurllib
- 29
- 30fromapiclientimport__version__
- 31fromerrorsimportHttpError
- 32fromoauth2client.anyjsonimportsimplejson
- 33
- 34
- 35dump_request_response=False
-
43"""Model base class.
- 44
- 45 All Model classes should implement this interface.
- 46 The Model serializes and de-serializes between a wire
- 47 format such as JSON and a Python object representation.
- 48 """
- 49
-
51"""Updates outgoing requests with a serialized body.
- 52
- 53 Args:
- 54 headers: dict, request headers
- 55 path_params: dict, parameters that appear in the request path
- 56 query_params: dict, parameters that appear in the query
- 57 body_value: object, the request body as a Python object, which must be
- 58 serializable.
- 59 Returns:
- 60 A tuple of (headers, path_params, query, body)
- 61
- 62 headers: dict, request headers
- 63 path_params: dict, parameters that appear in the request path
- 64 query: string, query part of the request URI
- 65 body: string, the body serialized in the desired wire format.
- 66 """
- 67_abstract()
-
70"""Convert the response wire format into a Python object.
- 71
- 72 Args:
- 73 resp: httplib2.Response, the HTTP response headers and status
- 74 content: string, the body of the HTTP response
- 75
- 76 Returns:
- 77 The body de-serialized as a Python object.
- 78
- 79 Raises:
- 80 apiclient.errors.HttpError if a non 2xx response is received.
- 81 """
- 82_abstract()
-
86"""Base model class.
- 87
- 88 Subclasses should provide implementations for the "serialize" and
- 89 "deserialize" methods, as well as values for the following class attributes.
- 90
- 91 Attributes:
- 92 accept: The value to use for the HTTP Accept header.
- 93 content_type: The value to use for the HTTP Content-type header.
- 94 no_content_response: The value to return when deserializing a 204 "No
- 95 Content" response.
- 96 alt_param: The value to supply as the "alt" query parameter for requests.
- 97 """
- 98
- 99accept=None
-100content_type=None
-101no_content_response=None
-102alt_param=None
-103
-
121"""Updates outgoing requests with a serialized body.
-122
-123 Args:
-124 headers: dict, request headers
-125 path_params: dict, parameters that appear in the request path
-126 query_params: dict, parameters that appear in the query
-127 body_value: object, the request body as a Python object, which must be
-128 serializable by simplejson.
-129 Returns:
-130 A tuple of (headers, path_params, query, body)
-131
-132 headers: dict, request headers
-133 path_params: dict, parameters that appear in the request path
-134 query: string, query part of the request URI
-135 body: string, the body serialized as JSON
-136 """
-137query=self._build_query(query_params)
-138headers['accept']=self.accept
-139headers['accept-encoding']='gzip, deflate'
-140if'user-agent'inheaders:
-141headers['user-agent']+=' '
-142else:
-143headers['user-agent']=''
-144headers['user-agent']+='google-api-python-client/%s (gzip)'%__version__
-145
-146ifbody_valueisnotNone:
-147headers['content-type']=self.content_type
-148body_value=self.serialize(body_value)
-149self._log_request(headers,path_params,query,body_value)
-150return(headers,path_params,query,body_value)
-
176"""Logs debugging information about the response if requested."""
-177ifdump_request_response:
-178logging.info('--response-start--')
-179forh,vinresp.iteritems():
-180logging.info('%s: %s',h,v)
-181ifcontent:
-182logging.info(content)
-183logging.info('--response-end--')
-
186"""Convert the response wire format into a Python object.
-187
-188 Args:
-189 resp: httplib2.Response, the HTTP response headers and status
-190 content: string, the body of the HTTP response
-191
-192 Returns:
-193 The body de-serialized as a Python object.
-194
-195 Raises:
-196 apiclient.errors.HttpError if a non 2xx response is received.
-197 """
-198self._log_response(resp,content)
-199# Error handling is TBD, for example, do we retry
-200# for some operation/error combinations?
-201ifresp.status<300:
-202ifresp.status==204:
-203# A 204: No Content response should be treated differently
-204# to all the other success states
-205returnself.no_content_response
-206returnself.deserialize(content)
-207else:
-208logging.debug('Content from bad request was: %s'%content)
-209raiseHttpError(resp,content)
-
212"""Perform the actual Python object serialization.
-213
-214 Args:
-215 body_value: object, the request body as a Python object.
-216
-217 Returns:
-218 string, the body in serialized form.
-219 """
-220_abstract()
-
223"""Perform the actual deserialization from response string to Python
-224 object.
-225
-226 Args:
-227 content: string, the body of the HTTP response
-228
-229 Returns:
-230 The body de-serialized as a Python object.
-231 """
-232_abstract()
-
236"""Model class for JSON.
-237
-238 Serializes and de-serializes between JSON and the Python
-239 object representation of HTTP request and response bodies.
-240 """
-241accept='application/json'
-242content_type='application/json'
-243alt_param='json'
-244
-
246"""Construct a JsonModel.
-247
-248 Args:
-249 data_wrapper: boolean, wrap requests and responses in a data wrapper
-250 """
-251self._data_wrapper=data_wrapper
-
272"""Model class for requests that don't return JSON.
-273
-274 Serializes and de-serializes between JSON and the Python
-275 object representation of HTTP request, and returns the raw bytes
-276 of the response body.
-277 """
-278accept='*/*'
-279content_type='application/json'
-280alt_param=None
-281
-
291"""Model class for requests that return Media.
-292
-293 Serializes and de-serializes between JSON and the Python
-294 object representation of HTTP request, and returns the raw bytes
-295 of the response body.
-296 """
-297accept='*/*'
-298content_type='application/json'
-299alt_param='media'
-300
-
310"""Model class for protocol buffers.
-311
-312 Serializes and de-serializes the binary protocol buffer sent in the HTTP
-313 request and response bodies.
-314 """
-315accept='application/x-protobuf'
-316content_type='application/x-protobuf'
-317alt_param='proto'
-318
-
320"""Constructs a ProtocolBufferModel.
-321
-322 The serialzed protocol buffer returned in an HTTP response will be
-323 de-serialized using the given protocol buffer class.
-324
-325 Args:
-326 protocol_buffer: The protocol buffer class used to de-serialize a
-327 response from the API.
-328 """
-329self._protocol_buffer=protocol_buffer
-
343"""Create a patch object.
-344
-345 Some methods support PATCH, an efficient way to send updates to a resource.
-346 This method allows the easy construction of patch bodies by looking at the
-347 differences between a resource before and after it was modified.
-348
-349 Args:
-350 original: object, the original deserialized resource
-351 modified: object, the modified deserialized resource
-352 Returns:
-353 An object that contains only the changes from original to modified, in a
-354 form suitable to pass to a PATCH method.
-355
-356 Example usage:
-357 item = service.activities().get(postid=postid, userid=userid).execute()
-358 original = copy.deepcopy(item)
-359 item['object']['content'] = 'This is updated.'
-360 service.activities.patch(postid=postid, userid=userid,
-361 body=makepatch(original, item)).execute()
-362 """
-363patch={}
-364forkey,original_valueinoriginal.iteritems():
-365modified_value=modified.get(key,None)
-366ifmodified_valueisNone:
-367# Use None to signal that the element is deleted
-368patch[key]=None
-369eliforiginal_value!=modified_value:
-370iftype(original_value)==type({}):
-371# Recursively descend objects
-372patch[key]=makepatch(original_value,modified_value)
-373else:
-374# In the case of simple types or arrays we just replace
-375patch[key]=modified_value
-376else:
-377# Don't add anything to patch if there's no change
-378pass
-379forkeyinmodified:
-380ifkeynotinoriginal:
-381patch[key]=modified[key]
-382
-383returnpatch
-
-Base model class.
-
-Subclasses should provide implementations for the "serialize" and
-"deserialize" methods, as well as values for the following class attributes.
-
-Attributes:
- accept: The value to use for the HTTP Accept header.
- content_type: The value to use for the HTTP Content-type header.
- no_content_response: The value to return when deserializing a 204 "No
- Content" response.
- alt_param: The value to supply as the "alt" query parameter for requests.
-
-
-Updates outgoing requests with a serialized body.
-
-Args:
- headers: dict, request headers
- path_params: dict, parameters that appear in the request path
- query_params: dict, parameters that appear in the query
- body_value: object, the request body as a Python object, which must be
- serializable by simplejson.
-Returns:
- A tuple of (headers, path_params, query, body)
-
- headers: dict, request headers
- path_params: dict, parameters that appear in the request path
- query: string, query part of the request URI
- body: string, the body serialized as JSON
-
-
-Builds a query string.
-
-Args:
- params: dict, the query parameters
-
-Returns:
- The query parameters properly encoded into an HTTP URI query string.
-
-
-Convert the response wire format into a Python object.
-
-Args:
- resp: httplib2.Response, the HTTP response headers and status
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-Raises:
- apiclient.errors.HttpError if a non 2xx response is received.
-
-
-Perform the actual Python object serialization.
-
-Args:
- body_value: object, the request body as a Python object.
-
-Returns:
- string, the body in serialized form.
-
-
-Perform the actual deserialization from response string to Python
-object.
-
-Args:
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-
-Perform the actual Python object serialization.
-
-Args:
- body_value: object, the request body as a Python object.
-
-Returns:
- string, the body in serialized form.
-
-
-Perform the actual deserialization from response string to Python
-object.
-
-Args:
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-
-Model class for requests that return Media.
-
-Serializes and de-serializes between JSON and the Python
-object representation of HTTP request, and returns the raw bytes
-of the response body.
-
-
-Perform the actual deserialization from response string to Python
-object.
-
-Args:
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-
-Model base class.
-
-All Model classes should implement this interface.
-The Model serializes and de-serializes between a wire
-format such as JSON and a Python object representation.
-
-
-Updates outgoing requests with a serialized body.
-
-Args:
- headers: dict, request headers
- path_params: dict, parameters that appear in the request path
- query_params: dict, parameters that appear in the query
- body_value: object, the request body as a Python object, which must be
- serializable.
-Returns:
- A tuple of (headers, path_params, query, body)
-
- headers: dict, request headers
- path_params: dict, parameters that appear in the request path
- query: string, query part of the request URI
- body: string, the body serialized in the desired wire format.
-
-
-Convert the response wire format into a Python object.
-
-Args:
- resp: httplib2.Response, the HTTP response headers and status
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-Raises:
- apiclient.errors.HttpError if a non 2xx response is received.
-
-
-Constructs a ProtocolBufferModel.
-
-The serialzed protocol buffer returned in an HTTP response will be
-de-serialized using the given protocol buffer class.
-
-Args:
- protocol_buffer: The protocol buffer class used to de-serialize a
- response from the API.
-
-
-Perform the actual Python object serialization.
-
-Args:
- body_value: object, the request body as a Python object.
-
-Returns:
- string, the body in serialized form.
-
-
-Perform the actual deserialization from response string to Python
-object.
-
-Args:
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-
-Model class for requests that don't return JSON.
-
-Serializes and de-serializes between JSON and the Python
-object representation of HTTP request, and returns the raw bytes
-of the response body.
-
-
-Perform the actual deserialization from response string to Python
-object.
-
-Args:
- content: string, the body of the HTTP response
-
-Returns:
- The body de-serialized as a Python object.
-
-
- 1# Licensed under the Apache License, Version 2.0 (the "License");
- 2# you may not use this file except in compliance with the License.
- 3# You may obtain a copy of the License at
- 4#
- 5# http://www.apache.org/licenses/LICENSE-2.0
- 6#
- 7# Unless required by applicable law or agreed to in writing, software
- 8# distributed under the License is distributed on an "AS IS" BASIS,
- 9# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 10# See the License for the specific language governing permissions and
- 11# limitations under the License.
- 12
- 13"""Push notifications support.
- 14
- 15This code is based on experimental APIs and is subject to change.
- 16"""
- 17
- 18__author__='afshar@google.com (Ali Afshar)'
- 19
- 20importbinascii
- 21importcollections
- 22importos
- 23importurllib
- 24
- 25SUBSCRIBE='X-GOOG-SUBSCRIBE'
- 26SUBSCRIPTION_ID='X-GOOG-SUBSCRIPTION-ID'
- 27TOPIC_ID='X-GOOG-TOPIC-ID'
- 28TOPIC_URI='X-GOOG-TOPIC-URI'
- 29CLIENT_TOKEN='X-GOOG-CLIENT-TOKEN'
- 30EVENT_TYPE='X-GOOG-EVENT-TYPE'
- 31UNSUBSCRIBE='X-GOOG-UNSUBSCRIBE'
-
39"""Gets a random token for use as a client_token in push notifications.
- 40
- 41 Returns:
- 42 str, a new random token.
- 43 """
- 44returnbinascii.hexlify(os.urandom(32))
-
51"""Create a new Channel.
- 52
- 53 You probably won't need to create this channel manually, since there are
- 54 subclassed Channel for each specific type with a more customized set of
- 55 arguments to pass. However, you may wish to just create it manually here.
- 56
- 57 Args:
- 58 channel_type: str, the type of channel.
- 59 channel_args: dict, arguments to pass to the channel.
- 60 """
- 61self.channel_type=channel_type
- 62self.channel_args=channel_args
-
65"""Create the appropriate header for this channel.
- 66
- 67 Returns:
- 68 str encoded channel description suitable for use as a header.
- 69 """
- 70return'%s?%s'%(self.channel_type,urllib.urlencode(self.channel_args))
-
113"""Set a header value, ensuring the key is an allowed value.
-114
-115 Args:
-116 key: str, the header key.
-117 value: str, the header value.
-118 Raises:
-119 ValueError if key is not one of the accepted headers.
-120 """
-121normal_key=self._normalize_key(key)
-122ifnormal_keynotinself.ALL_HEADERS:
-123raiseValueError('Header name must be one of %s.'%self.ALL_HEADERS)
-124else:
-125returncollections.defaultdict.__setitem__(self,normal_key,value)
-
128"""Get a header value, normalizing the key case.
-129
-130 Args:
-131 key: str, the header key.
-132 Returns:
-133 String header value.
-134 Raises:
-135 KeyError if the key is not one of the accepted headers.
-136 """
-137normal_key=self._normalize_key(key)
-138ifnormal_keynotinself.ALL_HEADERS:
-139raiseValueError('Header name must be one of %s.'%self.ALL_HEADERS)
-140else:
-141returncollections.defaultdict.__getitem__(self,normal_key)
-
183"""Creates a subscription and attaches it to a request.
-184
-185 Args:
-186 request: An http.HttpRequest to modify for making a subscription.
-187 channel: A apiclient.push.Channel describing the subscription to
-188 create.
-189 client_token: (optional) client token to verify the notification.
-190
-191 Returns:
-192 New subscription object.
-193 """
-194subscription=cls.for_channel(channel=channel,client_token=client_token)
-195subscription.headers.write(request.headers)
-196ifrequest.method!='GET':
-197raiseInvalidSubscriptionRequestError(
-198'Can only subscribe to requests which are GET.')
-199request.method='POST'
-200
-201def_on_response(response,subscription=subscription):
-202"""Called with the response headers. Reads the subscription headers."""
-203subscription.headers.read(response)
-
210"""Alternate constructor to create a subscription from a channel.
-211
-212 Args:
-213 channel: A apiclient.push.Channel describing the subscription to
-214 create.
-215 client_token: (optional) client token to verify the notification.
-216
-217 Returns:
-218 New subscription object.
-219 """
-220subscription=cls()
-221channel.write_header(subscription.headers)
-222ifclient_tokenisNone:
-223client_token=new_token()
-224subscription.headers[SUBSCRIPTION_ID]=new_token()
-225subscription.headers[CLIENT_TOKEN]=client_token
-226returnsubscription
-
229"""Verifies that a webhook notification has the correct client_token.
-230
-231 Args:
-232 headers: dict of request headers for a push notification.
-233
-234 Returns:
-235 Boolean value indicating whether the notification is verified.
-236 """
-237new_subscription=Subscription()
-238new_subscription.headers.read(headers)
-239returnnew_subscription.client_token==self.client_token
-
-Create a new Channel.
-
-You probably won't need to create this channel manually, since there are
-subclassed Channel for each specific type with a more customized set of
-arguments to pass. However, you may wish to just create it manually here.
-
-Args:
- channel_type: str, the type of channel.
- channel_args: dict, arguments to pass to the channel.
-
-
-Set a header value, ensuring the key is an allowed value.
-
-Args:
- key: str, the header key.
- value: str, the header value.
-Raises:
- ValueError if key is not one of the accepted headers.
-
-
-Get a header value, normalizing the key case.
-
-Args:
- key: str, the header key.
-Returns:
- String header value.
-Raises:
- KeyError if the key is not one of the accepted headers.
-
-
-Creates a subscription and attaches it to a request.
-
-Args:
- request: An http.HttpRequest to modify for making a subscription.
- channel: A apiclient.push.Channel describing the subscription to
- create.
- client_token: (optional) client token to verify the notification.
-
-Returns:
- New subscription object.
-
-
-
-
-
-
-
-
-
-
-
-
-
for_channel(cls,
- channel,
- client_token=None)
- Class Method
-
-Alternate constructor to create a subscription from a channel.
-
-Args:
- channel: A apiclient.push.Channel describing the subscription to
- create.
- client_token: (optional) client token to verify the notification.
-
-Returns:
- New subscription object.
-
-
-Verifies that a webhook notification has the correct client_token.
-
-Args:
- headers: dict of request headers for a push notification.
-
-Returns:
- Boolean value indicating whether the notification is verified.
-
-
-Create a new WebhookChannel
-
-Args:
- url: str, URL to post notifications to.
- app_engine: bool, default=False, whether the destination for the
- notifications is an App Engine application.
-
-
-A common initialization routine for samples.
-
-Many of the sample applications do the same initialization, which has now
-been consolidated into this function. This function uses common idioms found
-in almost all the samples, i.e. for an API with name 'apiname', the
-credentials are stored in a file named apiname.dat, and the
-client_secrets.json file is stored in the same directory as the application
-main file.
-
-Args:
- argv: list of string, the command-line parameters of the application.
- name: string, name of the API.
- version: string, version of the API.
- doc: string, description of the application. Usually set to __doc__.
- file: string, filename of the application. Usually set to __file__.
- parents: list of argparse.ArgumentParser, additional command-line flags.
- scope: string, The OAuth scope used.
-
-Returns:
- A tuple of (service, flags), where service is the service object and flags
- is the parsed command-line flags.
-
-
- 1# Copyright (C) 2013 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
-10# distributed under the License is distributed on an "AS IS" BASIS,
-11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-12# See the License for the specific language governing permissions and
-13# limitations under the License.
-14
-15"""Utilities for making samples.
-16
-17Consolidates a lot of code commonly repeated in sample applications.
-18"""
-19
-20__author__='jcgregorio@google.com (Joe Gregorio)'
-21__all__=['init']
-22
-23
-24importargparse
-25importhttplib2
-26importos
-27
-28fromapiclientimportdiscovery
-29fromoauth2clientimportclient
-30fromoauth2clientimportfile
-31fromoauth2clientimporttools
-32
-33
-
35"""A common initialization routine for samples.
-36
-37 Many of the sample applications do the same initialization, which has now
-38 been consolidated into this function. This function uses common idioms found
-39 in almost all the samples, i.e. for an API with name 'apiname', the
-40 credentials are stored in a file named apiname.dat, and the
-41 client_secrets.json file is stored in the same directory as the application
-42 main file.
-43
-44 Args:
-45 argv: list of string, the command-line parameters of the application.
-46 name: string, name of the API.
-47 version: string, version of the API.
-48 doc: string, description of the application. Usually set to __doc__.
-49 file: string, filename of the application. Usually set to __file__.
-50 parents: list of argparse.ArgumentParser, additional command-line flags.
-51 scope: string, The OAuth scope used.
-52
-53 Returns:
-54 A tuple of (service, flags), where service is the service object and flags
-55 is the parsed command-line flags.
-56 """
-57ifscopeisNone:
-58scope='https://www.googleapis.com/auth/'+name
-59
-60# Parser command-line arguments.
-61parent_parsers=[tools.argparser]
-62parent_parsers.extend(parents)
-63parser=argparse.ArgumentParser(
-64description=doc,
-65formatter_class=argparse.RawDescriptionHelpFormatter,
-66parents=parent_parsers)
-67flags=parser.parse_args(argv[1:])
-68
-69# Name of a file containing the OAuth 2.0 information for this
-70# application, including client_id and client_secret, which are found
-71# on the API Access tab on the Google APIs
-72# Console <http://code.google.com/apis/console>.
-73client_secrets=os.path.join(os.path.dirname(filename),
-74'client_secrets.json')
-75
-76# Set up a Flow object to be used if we need to authenticate.
-77flow=client.flow_from_clientsecrets(client_secrets,
-78scope=scope,
-79message=tools.message_if_missing(client_secrets))
-80
-81# Prepare credentials, and authorize HTTP object with them.
-82# If the credentials don't exist or are invalid run through the native client
-83# flow. The Storage object will ensure that if successful the good
-84# credentials will get written back to a file.
-85storage=file.Storage(name+'.dat')
-86credentials=storage.get()
-87ifcredentialsisNoneorcredentials.invalid:
-88credentials=tools.run_flow(flow,storage,flags)
-89http=credentials.authorize(http=httplib2.Http())
-90
-91# Construct a service object via the discovery service.
-92service=discovery.build(name,version,http=http)
-93return(service,flags)
-
-Schema processing for discovery based APIs
-
-Schemas holds an APIs discovery schemas. It can return those schema as
-deserialized JSON objects, or pretty print them as prototype objects that
-conform to the schema.
-
-For example, given the schema:
-
- schema = """{
- "Foo": {
- "type": "object",
- "properties": {
- "etag": {
- "type": "string",
- "description": "ETag of the collection."
- },
- "kind": {
- "type": "string",
- "description": "Type of the collection ('calendar#acl').",
- "default": "calendar#acl"
- },
- "nextPageToken": {
- "type": "string",
- "description": "Token used to access the next
- page of this result. Omitted if no further results are available."
- }
- }
- }
- }"""
-
- s = Schemas(schema)
- print s.prettyPrintByName('Foo')
-
- Produces the following output:
-
- {
- "nextPageToken": "A String", # Token used to access the
- # next page of this result. Omitted if no further results are available.
- "kind": "A String", # Type of the collection ('calendar#acl').
- "etag": "A String", # ETag of the collection.
- },
-
-The constructor takes a discovery document in which to look up named schema.
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Schema processing for discovery based APIs
- 16
- 17Schemas holds an APIs discovery schemas. It can return those schema as
- 18deserialized JSON objects, or pretty print them as prototype objects that
- 19conform to the schema.
- 20
- 21For example, given the schema:
- 22
- 23 schema = \"\"\"{
- 24 "Foo": {
- 25 "type": "object",
- 26 "properties": {
- 27 "etag": {
- 28 "type": "string",
- 29 "description": "ETag of the collection."
- 30 },
- 31 "kind": {
- 32 "type": "string",
- 33 "description": "Type of the collection ('calendar#acl').",
- 34 "default": "calendar#acl"
- 35 },
- 36 "nextPageToken": {
- 37 "type": "string",
- 38 "description": "Token used to access the next
- 39 page of this result. Omitted if no further results are available."
- 40 }
- 41 }
- 42 }
- 43 }\"\"\"
- 44
- 45 s = Schemas(schema)
- 46 print s.prettyPrintByName('Foo')
- 47
- 48 Produces the following output:
- 49
- 50 {
- 51 "nextPageToken": "A String", # Token used to access the
- 52 # next page of this result. Omitted if no further results are available.
- 53 "kind": "A String", # Type of the collection ('calendar#acl').
- 54 "etag": "A String", # ETag of the collection.
- 55 },
- 56
- 57The constructor takes a discovery document in which to look up named schema.
- 58"""
- 59
- 60# TODO(jcgregorio) support format, enum, minimum, maximum
- 61
- 62__author__='jcgregorio@google.com (Joe Gregorio)'
- 63
- 64importcopy
- 65
- 66fromoauth2clientimportutil
- 67fromoauth2client.anyjsonimportsimplejson
-
87"""Get pretty printed object prototype from the schema name.
- 88
- 89 Args:
- 90 name: string, Name of schema in the discovery document.
- 91 seen: list of string, Names of schema already seen. Used to handle
- 92 recursive definitions.
- 93
- 94 Returns:
- 95 string, A string that contains a prototype object with
- 96 comments that conforms to the given schema.
- 97 """
- 98ifseenisNone:
- 99seen=[]
-100
-101ifnameinseen:
-102# Do not fall into an infinite loop over recursive definitions.
-103return'# Object with schema name: %s'%name
-104seen.append(name)
-105
-106ifnamenotinself.pretty:
-107self.pretty[name]=_SchemaToStruct(self.schemas[name],
-108seen,dent=dent).to_str(self._prettyPrintByName)
-109
-110seen.pop()
-111
-112returnself.pretty[name]
-
115"""Get pretty printed object prototype from the schema name.
-116
-117 Args:
-118 name: string, Name of schema in the discovery document.
-119
-120 Returns:
-121 string, A string that contains a prototype object with
-122 comments that conforms to the given schema.
-123 """
-124# Return with trailing comma and newline removed.
-125returnself._prettyPrintByName(name,seen=[],dent=1)[:-2]
-
129"""Get pretty printed object prototype of schema.
-130
-131 Args:
-132 schema: object, Parsed JSON schema.
-133 seen: list of string, Names of schema already seen. Used to handle
-134 recursive definitions.
-135
-136 Returns:
-137 string, A string that contains a prototype object with
-138 comments that conforms to the given schema.
-139 """
-140ifseenisNone:
-141seen=[]
-142
-143return_SchemaToStruct(schema,seen,dent=dent).to_str(self._prettyPrintByName)
-
146"""Get pretty printed object prototype of schema.
-147
-148 Args:
-149 schema: object, Parsed JSON schema.
-150
-151 Returns:
-152 string, A string that contains a prototype object with
-153 comments that conforms to the given schema.
-154 """
-155# Return with trailing comma and newline removed.
-156returnself._prettyPrintSchema(schema,dent=1)[:-2]
-
172"""Constructor.
-173
-174 Args:
-175 schema: object, Parsed JSON schema.
-176 seen: list, List of names of schema already seen while parsing. Used to
-177 handle recursive definitions.
-178 dent: int, Initial indentation depth.
-179 """
-180# The result of this parsing kept as list of strings.
-181self.value=[]
-182
-183# The final value of the parsing.
-184self.string=None
-185
-186# The parsed JSON schema.
-187self.schema=schema
-188
-189# Indentation level.
-190self.dent=dent
-191
-192# Method that when called returns a prototype object for the schema with
-193# the given name.
-194self.from_cache=None
-195
-196# List of names of schema already seen while parsing.
-197self.seen=seen
-
208"""Add text to the output, but with no line terminator.
-209
-210 Args:
-211 text: string, Text to output.
-212 """
-213self.value.extend([" "*self.dent,text])
-
216"""Add text and comment to the output with line terminator.
-217
-218 Args:
-219 text: string, Text to output.
-220 comment: string, Python comment.
-221 """
-222ifcomment:
-223divider='\n'+' '*(self.dent+2)+'# '
-224lines=comment.splitlines()
-225lines=[x.rstrip()forxinlines]
-226comment=divider.join(lines)
-227self.value.extend([text,' # ',comment,'\n'])
-228else:
-229self.value.extend([text,'\n'])
-
300"""Prototype object based on the schema, in Python code with comments.
-301
-302 Args:
-303 from_cache: callable(name, seen), Callable that retrieves an object
-304 prototype for a schema with the given name. Seen is a list of schema
-305 names already seen as we recursively descend the schema definition.
-306
-307 Returns:
-308 Prototype object based on the schema, in Python code with comments.
-309 The lines of the code will all be properly indented.
-310 """
-311self.from_cache=from_cache
-312returnself._to_str_impl(self.schema)
-
-Get pretty printed object prototype from the schema name.
-
-Args:
- name: string, Name of schema in the discovery document.
- seen: list of string, Names of schema already seen. Used to handle
- recursive definitions.
-
-Returns:
- string, A string that contains a prototype object with
- comments that conforms to the given schema.
-
-
-Get pretty printed object prototype from the schema name.
-
-Args:
- name: string, Name of schema in the discovery document.
-
-Returns:
- string, A string that contains a prototype object with
- comments that conforms to the given schema.
-
-
-Get pretty printed object prototype of schema.
-
-Args:
- schema: object, Parsed JSON schema.
- seen: list of string, Names of schema already seen. Used to handle
- recursive definitions.
-
-Returns:
- string, A string that contains a prototype object with
- comments that conforms to the given schema.
-
-
-Get pretty printed object prototype of schema.
-
-Args:
- schema: object, Parsed JSON schema.
-
-Returns:
- string, A string that contains a prototype object with
- comments that conforms to the given schema.
-
-
-Constructor.
-
-Args:
- schema: object, Parsed JSON schema.
- seen: list, List of names of schema already seen while parsing. Used to
- handle recursive definitions.
- dent: int, Initial indentation depth.
-
-
-Prototype object based on the schema, in Python code with comments.
-
-Args:
- schema: object, Parsed JSON schema file.
-
-Returns:
- Prototype object based on the schema, in Python code with comments.
-
-
-Prototype object based on the schema, in Python code with comments.
-
-Args:
- from_cache: callable(name, seen), Callable that retrieves an object
- prototype for a schema with the given name. Seen is a list of schema
- names already seen as we recursively descend the schema definition.
-
-Returns:
- Prototype object based on the schema, in Python code with comments.
- The lines of the code will all be properly indented.
-
-
-Meta-class for initializing Model classes properties.
-
-Used for initializing Properties defined in the context of a model.
-By using a meta-class much of the configuration of a Property
-descriptor becomes implicit. By using this meta-class, descriptors
-that are of class Model are notified about which class they
-belong to and what attribute they are associated with and can
-do appropriate initialization via __property_config__.
-
-Duplicate properties are not permitted.
-
-
-Initializes a class that might have property definitions.
-
-This method is called when a class is created with the PropertiedClass
-meta-class.
-
-Loads all properties for this model and its base classes in to a dictionary
-for easy reflection via the 'properties' method.
-
-Configures each property defined in the new class.
-
-Duplicate properties, either defined in the new class or defined separately
-in two base classes are not permitted.
-
-Properties may not assigned to names which are in the list of
-_RESERVED_WORDS. It is still possible to store a property using a reserved
-word in the datastore by using the 'name' keyword argument to the Property
-constructor.
-
-Args:
- cls: Class being initialized.
- name: Name of new class.
- bases: Base classes of new class.
- dct: Dictionary of new definitions for class.
-
-Raises:
- DuplicatePropertyError when a property is duplicated either in the new
- class or separately in two base classes.
- ReservedWordError when a property is given a name that is in the list of
- reserved words, attributes of Model and names of the form '__.*__'.
-
-
This document contains the API (Application Programming Interface)
-documentation for this project. Documentation for the Python
-objects defined by the project is divided into separate pages for each
-package, module, and class. The API documentation also includes two
-pages containing information about the project as a whole: a trees
-page, and an index page.
-
-
Object Documentation
-
-
Each Package Documentation page contains:
-
-
A description of the package.
-
A list of the modules and sub-packages contained by the
- package.
-
A summary of the classes defined by the package.
-
A summary of the functions defined by the package.
-
A summary of the variables defined by the package.
-
A detailed description of each function defined by the
- package.
-
A detailed description of each variable defined by the
- package.
-
-
-
Each Module Documentation page contains:
-
-
A description of the module.
-
A summary of the classes defined by the module.
-
A summary of the functions defined by the module.
-
A summary of the variables defined by the module.
-
A detailed description of each function defined by the
- module.
-
A detailed description of each variable defined by the
- module.
-
-
-
Each Class Documentation page contains:
-
-
A class inheritance diagram.
-
A list of known subclasses.
-
A description of the class.
-
A summary of the methods defined by the class.
-
A summary of the instance variables defined by the class.
-
A summary of the class (static) variables defined by the
- class.
-
A detailed description of each method defined by the
- class.
-
A detailed description of each instance variable defined by the
- class.
-
A detailed description of each class (static) variable defined
- by the class.
-
-
-
Project Documentation
-
-
The Trees page contains the module and class hierarchies:
-
-
The module hierarchy lists every package and module, with
- modules grouped into packages. At the top level, and within each
- package, modules and sub-packages are listed alphabetically.
-
The class hierarchy lists every class, grouped by base
- class. If a class has more than one base class, then it will be
- listed under each base class. At the top level, and under each base
- class, classes are listed alphabetically.
-
-
-
The Index page contains indices of terms and
- identifiers:
-
-
The term index lists every term indexed by any object's
- documentation. For each term, the index provides links to each
- place where the term is indexed.
-
The identifier index lists the (short) name of every package,
- module, class, method, function, variable, and parameter. For each
- identifier, the index provides a short description, and a link to
- its documentation.
-
-
-
The Table of Contents
-
-
The table of contents occupies the two frames on the left side of
-the window. The upper-left frame displays the project
-contents, and the lower-left frame displays the module
-contents:
-
-
-
-
- Project Contents...
-
- API Documentation Frame
-
-
-
-
- Module Contents ...
-
-
-
-
-
The project contents frame contains a list of all packages
-and modules that are defined by the project. Clicking on an entry
-will display its contents in the module contents frame. Clicking on a
-special entry, labeled "Everything," will display the contents of
-the entire project.
-
-
The module contents frame contains a list of every
-submodule, class, type, exception, function, and variable defined by a
-module or package. Clicking on an entry will display its
-documentation in the API documentation frame. Clicking on the name of
-the module, at the top of the frame, will display the documentation
-for the module itself.
-
-
The "frames" and "no frames" buttons below the top
-navigation bar can be used to control whether the table of contents is
-displayed or not.
-
-
The Navigation Bar
-
-
A navigation bar is located at the top and bottom of every page.
-It indicates what type of page you are currently viewing, and allows
-you to go to related pages. The following table describes the labels
-on the navigation bar. Note that not some labels (such as
-[Parent]) are not displayed on all pages.
-
-
-
-
Label
-
Highlighted when...
-
Links to...
-
-
[Parent]
-
(never highlighted)
-
the parent of the current package
-
[Package]
-
viewing a package
-
the package containing the current object
-
-
[Module]
-
viewing a module
-
the module containing the current object
-
-
[Class]
-
viewing a class
-
the class containing the current object
-
[Trees]
-
viewing the trees page
-
the trees page
-
[Index]
-
viewing the index page
-
the index page
-
[Help]
-
viewing the help page
-
the help page
-
-
-
The "show private" and "hide private" buttons below
-the top navigation bar can be used to control whether documentation
-for private objects is displayed. Private objects are usually defined
-as objects whose (short) names begin with a single underscore, but do
-not end with an underscore. For example, "_x",
-"__pprint", and "epydoc.epytext._tokenize"
-are private objects; but "re.sub",
-"__init__", and "type_" are not. However,
-if a module defines the "__all__" variable, then its
-contents are used to decide which objects are private.
-
-
A timestamp below the bottom navigation bar indicates when each
-page was last updated.
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
-10# distributed under the License is distributed on an "AS IS" BASIS,
-11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-12# See the License for the specific language governing permissions and
-13# limitations under the License.
-14
-15"""Utility module to import a JSON module
-16
-17Hides all the messy details of exactly where
-18we get a simplejson module from.
-19"""
-20
-21__author__='jcgregorio@google.com (Joe Gregorio)'
-22
-23
-24try:# pragma: no cover
-25# Should work for Python2.6 and higher.
-26importjsonassimplejson
-27exceptImportError:# pragma: no cover
-28try:
-29importsimplejson
-30exceptImportError:
-31# Try to import from django, should work on App Engine
-32fromdjango.utilsimportsimplejson
-33
-
-Return the secret key for use for XSRF protection.
-
-If the Site entity does not have a secret key, this method will also create
-one and persist it.
-
-Returns:
- The secret key.
-
-
-Composes the value for the 'state' parameter.
-
-Packs the current request URI and an XSRF token into an opaque string that
-can be passed to the authentication server via the 'state' parameter.
-
-Args:
- request_handler: webapp.RequestHandler, The request.
- user: google.appengine.api.users.User, The current user.
-
-Returns:
- The state value as a string.
-
-
-Parse the value of the 'state' parameter.
-
-Parses the value and validates the XSRF token in the state parameter.
-
-Args:
- state: string, The value of the state parameter.
- user: google.appengine.api.users.User, The current user.
-
-Raises:
- InvalidXsrfTokenError: if the XSRF token is invalid.
-
-Returns:
- The redirect URI.
-
-
-Creates an OAuth2Decorator populated from a clientsecrets file.
-
-Args:
- filename: string, File name of client secrets.
- scope: string or list of strings, scope(s) of the credentials being
- requested.
- message: string, A friendly string to display to the user if the
- clientsecrets file is missing or invalid. The message may contain HTML and
- will be presented on the web interface for any method that uses the
- decorator.
- cache: An optional cache service client that implements get() and set()
- methods. See clientsecrets.loadfile() for details.
-
-Returns: An OAuth2Decorator
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Utilities for Google App Engine
- 16
- 17Utilities for making it easier to use OAuth 2.0 on Google App Engine.
- 18"""
- 19
- 20__author__='jcgregorio@google.com (Joe Gregorio)'
- 21
- 22importbase64
- 23importcgi
- 24importhttplib2
- 25importlogging
- 26importos
- 27importpickle
- 28importthreading
- 29importtime
- 30
- 31fromgoogle.appengine.apiimportapp_identity
- 32fromgoogle.appengine.apiimportmemcache
- 33fromgoogle.appengine.apiimportusers
- 34fromgoogle.appengine.extimportdb
- 35fromgoogle.appengine.extimportwebapp
- 36fromgoogle.appengine.ext.webapp.utilimportlogin_required
- 37fromgoogle.appengine.ext.webapp.utilimportrun_wsgi_app
- 38fromoauth2clientimportGOOGLE_AUTH_URI
- 39fromoauth2clientimportGOOGLE_REVOKE_URI
- 40fromoauth2clientimportGOOGLE_TOKEN_URI
- 41fromoauth2clientimportclientsecrets
- 42fromoauth2clientimportutil
- 43fromoauth2clientimportxsrfutil
- 44fromoauth2client.anyjsonimportsimplejson
- 45fromoauth2client.clientimportAccessTokenRefreshError
- 46fromoauth2client.clientimportAssertionCredentials
- 47fromoauth2client.clientimportCredentials
- 48fromoauth2client.clientimportFlow
- 49fromoauth2client.clientimportOAuth2WebServerFlow
- 50fromoauth2client.clientimportStorage
- 51
- 52# TODO(dhermes): Resolve import issue.
- 53# This is a temporary fix for a Google internal issue.
- 54try:
- 55fromgoogle.appengine.extimportndb
- 56exceptImportError:
- 57ndb=None
- 58
- 59
- 60logger=logging.getLogger(__name__)
- 61
- 62OAUTH2CLIENT_NAMESPACE='oauth2client#ns'
- 63
- 64XSRF_MEMCACHE_ID='xsrf_secret_key'
-
68"""Escape text to make it safe to display.
- 69
- 70 Args:
- 71 s: string, The text to escape.
- 72
- 73 Returns:
- 74 The escaped text as a string.
- 75 """
- 76returncgi.escape(s,quote=1).replace("'",''')
-
88"""Storage for the sites XSRF secret key.
- 89
- 90 There will only be one instance stored of this model, the one used for the
- 91 site.
- 92 """
- 93secret=db.StringProperty()
-
97"""NDB Model for storage for the sites XSRF secret key.
- 98
- 99 Since this model uses the same kind as SiteXsrfSecretKey, it can be used
-100 interchangeably. This simply provides an NDB model for interacting with the
-101 same data the DB model interacts with.
-102
-103 There should only be one instance stored of this model, the one used for the
-104 site.
-105 """
-106secret=ndb.StringProperty()
-107
-108@classmethod
-
143"""Credentials object for App Engine Assertion Grants
-144
-145 This object will allow an App Engine application to identify itself to Google
-146 and other OAuth 2.0 servers that can verify assertions. It can be used for the
-147 purpose of accessing data stored under an account assigned to the App Engine
-148 application itself.
-149
-150 This credential does not require a flow to instantiate because it represents
-151 a two legged flow, and therefore has all of the required information to
-152 generate and refresh its own access tokens.
-153 """
-154
-155@util.positional(2)
-
157"""Constructor for AppAssertionCredentials
-158
-159 Args:
-160 scope: string or iterable of strings, scope(s) of the credentials being
-161 requested.
-162 """
-163self.scope=util.scopes_to_string(scope)
-164
-165# Assertion type is no longer used, but still in the parent class signature.
-166super(AppAssertionCredentials,self).__init__(None)
-
174"""Refreshes the access_token.
-175
-176 Since the underlying App Engine app_identity implementation does its own
-177 caching we can skip all the storage hoops and just to a refresh using the
-178 API.
-179
-180 Args:
-181 http_request: callable, a callable that matches the method signature of
-182 httplib2.Http.request, used to make the refresh request.
-183
-184 Raises:
-185 AccessTokenRefreshError: When the refresh fails.
-186 """
-187try:
-188scopes=self.scope.split()
-189(token,_)=app_identity.get_access_token(scopes)
-190exceptapp_identity.Error,e:
-191raiseAccessTokenRefreshError(str(e))
-192self.access_token=token
-
196"""App Engine datastore Property for Flow.
-197
-198 Utility property that allows easy storage and retrieval of an
-199 oauth2client.Flow"""
-200
-201# Tell what the user type is.
-202data_type=Flow
-203
-204# For writing to datastore.
-
217ifvalueisnotNoneandnotisinstance(value,Flow):
-218raisedb.BadValueError('Property %s must be convertible '
-219'to a FlowThreeLegged instance (%s)'%
-220(self.name,value))
-221returnsuper(FlowProperty,self).validate(value)
-
229"""App Engine NDB datastore Property for Flow.
-230
-231 Serves the same purpose as the DB FlowProperty, but for NDB models. Since
-232 PickleProperty inherits from BlobProperty, the underlying representation of
-233 the data in the datastore will be the same as in the DB case.
-234
-235 Utility property that allows easy storage and retrieval of an
-236 oauth2client.Flow
-237 """
-238
-
240"""Validates a value as a proper Flow object.
-241
-242 Args:
-243 value: A value to be set on the property.
-244
-245 Raises:
-246 TypeError if the value is not an instance of Flow.
-247 """
-248logger.info('validate: Got type %s',type(value))
-249ifvalueisnotNoneandnotisinstance(value,Flow):
-250raiseTypeError('Property %s must be convertible to a flow '
-251'instance; received: %s.'%(self._name,value))
-
255"""App Engine datastore Property for Credentials.
-256
-257 Utility property that allows easy storage and retrieval of
-258 oath2client.Credentials
-259 """
-260
-261# Tell what the user type is.
-262data_type=Credentials
-263
-264# For writing to datastore.
-
289value=super(CredentialsProperty,self).validate(value)
-290logger.info("validate: Got type "+str(type(value)))
-291ifvalueisnotNoneandnotisinstance(value,Credentials):
-292raisedb.BadValueError('Property %s must be convertible '
-293'to a Credentials instance (%s)'%
-294(self.name,value))
-295#if value is not None and not isinstance(value, Credentials):
-296# return None
-297returnvalue
-
301# TODO(dhermes): Turn this into a JsonProperty and overhaul the Credentials
-302# and subclass mechanics to use new_from_dict, to_dict,
-303# from_dict, etc.
-304-classCredentialsNDBProperty(ndb.BlobProperty):
-
305"""App Engine NDB datastore Property for Credentials.
-306
-307 Serves the same purpose as the DB CredentialsProperty, but for NDB models.
-308 Since CredentialsProperty stores data as a blob and this inherits from
-309 BlobProperty, the data in the datastore will be the same as in the DB case.
-310
-311 Utility property that allows easy storage and retrieval of Credentials and
-312 subclasses.
-313 """
-
315"""Validates a value as a proper credentials object.
-316
-317 Args:
-318 value: A value to be set on the property.
-319
-320 Raises:
-321 TypeError if the value is not an instance of Credentials.
-322 """
-323logger.info('validate: Got type %s',type(value))
-324ifvalueisnotNoneandnotisinstance(value,Credentials):
-325raiseTypeError('Property %s must be convertible to a credentials '
-326'instance; received: %s.'%(self._name,value))
-
329"""Converts our validated value to a JSON serialized string.
-330
-331 Args:
-332 value: A value to be set in the datastore.
-333
-334 Returns:
-335 A JSON serialized version of the credential, else '' if value is None.
-336 """
-337ifvalueisNone:
-338return''
-339else:
-340returnvalue.to_json()
-
343"""Converts our stored JSON string back to the desired type.
-344
-345 Args:
-346 value: A value from the datastore to be converted to the desired type.
-347
-348 Returns:
-349 A deserialized Credentials (or subclass) object, else None if the
-350 value can't be parsed.
-351 """
-352ifnotvalue:
-353returnNone
-354try:
-355# Uses the from_json method of the implied class of value
-356credentials=Credentials.new_from_json(value)
-357exceptValueError:
-358credentials=None
-359returncredentials
-
363"""Store and retrieve a credential to and from the App Engine datastore.
-364
-365 This Storage helper presumes the Credentials have been stored as a
-366 CredentialsProperty or CredentialsNDBProperty on a datastore model class, and
-367 that entities are stored by key_name.
-368 """
-369
-370@util.positional(4)
-
372"""Constructor for Storage.
-373
-374 Args:
-375 model: db.Model or ndb.Model, model class
-376 key_name: string, key name for the entity that has the credentials
-377 property_name: string, name of the property that is a CredentialsProperty
-378 or CredentialsNDBProperty.
-379 cache: memcache, a write-through cache to put in front of the datastore.
-380 If the model you are using is an NDB model, using a cache will be
-381 redundant since the model uses an instance cache and memcache for you.
-382 user: users.User object, optional. Can be used to grab user ID as a
-383 key_name if no key name is specified.
-384 """
-385ifkey_nameisNone:
-386ifuserisNone:
-387raiseValueError('StorageByKeyName called with no key name or user.')
-388key_name=user.user_id()
-389
-390self._model=model
-391self._key_name=key_name
-392self._property_name=property_name
-393self._cache=cache
-
396"""Determine whether the model of the instance is an NDB model.
-397
-398 Returns:
-399 Boolean indicating whether or not the model is an NDB or DB model.
-400 """
-401# issubclass will fail if one of the arguments is not a class, only need
-402# worry about new-style classes since ndb and db models are new-style
-403ifisinstance(self._model,type):
-404ifndbisnotNoneandissubclass(self._model,ndb.Model):
-405returnTrue
-406elifissubclass(self._model,db.Model):
-407returnFalse
-408
-409raiseTypeError('Model class not an NDB or DB model: %s.'%(self._model,))
-
412"""Retrieve entity from datastore.
-413
-414 Uses a different model method for db or ndb models.
-415
-416 Returns:
-417 Instance of the model corresponding to the current storage object
-418 and stored using the key name of the storage object.
-419 """
-420ifself._is_ndb():
-421returnself._model.get_by_id(self._key_name)
-422else:
-423returnself._model.get_by_key_name(self._key_name)
-
426"""Delete entity from datastore.
-427
-428 Attempts to delete using the key_name stored on the object, whether or not
-429 the given key is in the datastore.
-430 """
-431ifself._is_ndb():
-432ndb.Key(self._model,self._key_name).delete()
-433else:
-434entity_key=db.Key.from_path(self._model.kind(),self._key_name)
-435db.delete(entity_key)
-
460"""Write a Credentials to the datastore.
-461
-462 Args:
-463 credentials: Credentials, the credentials to store.
-464 """
-465entity=self._model.get_or_insert(self._key_name)
-466setattr(entity,self._property_name,credentials)
-467entity.put()
-468ifself._cache:
-469self._cache.set(self._key_name,credentials.to_json())
-
481"""Storage for OAuth 2.0 Credentials
-482
-483 Storage of the model is keyed by the user.user_id().
-484 """
-485credentials=CredentialsProperty()
-
490"""NDB Model for storage of OAuth 2.0 Credentials
-491
-492 Since this model uses the same kind as CredentialsModel and has a property
-493 which can serialize and deserialize Credentials correctly, it can be used
-494 interchangeably with a CredentialsModel to access, insert and delete the
-495 same entities. This simply provides an NDB model for interacting with the
-496 same data the DB model interacts with.
-497
-498 Storage of the model is keyed by the user.user_id().
-499 """
-500credentials=CredentialsNDBProperty()
-501
-502@classmethod
-
509"""Composes the value for the 'state' parameter.
-510
-511 Packs the current request URI and an XSRF token into an opaque string that
-512 can be passed to the authentication server via the 'state' parameter.
-513
-514 Args:
-515 request_handler: webapp.RequestHandler, The request.
-516 user: google.appengine.api.users.User, The current user.
-517
-518 Returns:
-519 The state value as a string.
-520 """
-521uri=request_handler.request.url
-522token=xsrfutil.generate_token(xsrf_secret_key(),user.user_id(),
-523action_id=str(uri))
-524returnuri+':'+token
-
528"""Parse the value of the 'state' parameter.
-529
-530 Parses the value and validates the XSRF token in the state parameter.
-531
-532 Args:
-533 state: string, The value of the state parameter.
-534 user: google.appengine.api.users.User, The current user.
-535
-536 Raises:
-537 InvalidXsrfTokenError: if the XSRF token is invalid.
-538
-539 Returns:
-540 The redirect URI.
-541 """
-542uri,token=state.rsplit(':',1)
-543ifnotxsrfutil.validate_token(xsrf_secret_key(),token,user.user_id(),
-544action_id=uri):
-545raiseInvalidXsrfTokenError()
-546
-547returnuri
-
551"""Utility for making OAuth 2.0 easier.
-552
-553 Instantiate and then use with oauth_required or oauth_aware
-554 as decorators on webapp.RequestHandler methods.
-555
-556 Example:
-557
-558 decorator = OAuth2Decorator(
-559 client_id='837...ent.com',
-560 client_secret='Qh...wwI',
-561 scope='https://www.googleapis.com/auth/plus')
-562
-563
-564 class MainHandler(webapp.RequestHandler):
-565
-566 @decorator.oauth_required
-567 def get(self):
-568 http = decorator.http()
-569 # http is authorized with the user's Credentials and can be used
-570 # in API calls
-571
-572 """
-573
-
578"""A thread local Credentials object.
-579
-580 Returns:
-581 A client.Credentials object, or None if credentials hasn't been set in
-582 this thread yet, which may happen when calling has_credentials inside
-583 oauth_aware.
-584 """
-585returngetattr(self._tls,'credentials',None)
-
593"""A thread local Flow object.
-594
-595 Returns:
-596 A credentials.Flow object, or None if the flow hasn't been set in this
-597 thread yet, which happens in _create_flow() since Flows are created
-598 lazily.
-599 """
-600returngetattr(self._tls,'flow',None)
-
618
-619"""Constructor for OAuth2Decorator
-620
-621 Args:
-622 client_id: string, client identifier.
-623 client_secret: string client secret.
-624 scope: string or iterable of strings, scope(s) of the credentials being
-625 requested.
-626 auth_uri: string, URI for authorization endpoint. For convenience
-627 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-628 token_uri: string, URI for token endpoint. For convenience
-629 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-630 revoke_uri: string, URI for revoke endpoint. For convenience
-631 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-632 user_agent: string, User agent of your application, default to None.
-633 message: Message to display if there are problems with the OAuth 2.0
-634 configuration. The message may contain HTML and will be presented on the
-635 web interface for any method that uses the decorator.
-636 callback_path: string, The absolute path to use as the callback URI. Note
-637 that this must match up with the URI given when registering the
-638 application in the APIs Console.
-639 token_response_param: string. If provided, the full JSON response
-640 to the access token request will be encoded and included in this query
-641 parameter in the callback URI. This is useful with providers (e.g.
-642 wordpress.com) that include extra fields that the client may want.
-643 _storage_class: "Protected" keyword argument not typically provided to
-644 this constructor. A storage class to aid in storing a Credentials object
-645 for a user in the datastore. Defaults to StorageByKeyName.
-646 _credentials_class: "Protected" keyword argument not typically provided to
-647 this constructor. A db or ndb Model class to hold credentials. Defaults
-648 to CredentialsModel.
-649 _credentials_property_name: "Protected" keyword argument not typically
-650 provided to this constructor. A string indicating the name of the field
-651 on the _credentials_class where a Credentials object will be stored.
-652 Defaults to 'credentials'.
-653 **kwargs: dict, Keyword arguments are be passed along as kwargs to the
-654 OAuth2WebServerFlow constructor.
-655 """
-656self._tls=threading.local()
-657self.flow=None
-658self.credentials=None
-659self._client_id=client_id
-660self._client_secret=client_secret
-661self._scope=util.scopes_to_string(scope)
-662self._auth_uri=auth_uri
-663self._token_uri=token_uri
-664self._revoke_uri=revoke_uri
-665self._user_agent=user_agent
-666self._kwargs=kwargs
-667self._message=message
-668self._in_error=False
-669self._callback_path=callback_path
-670self._token_response_param=token_response_param
-671self._storage_class=_storage_class
-672self._credentials_class=_credentials_class
-673self._credentials_property_name=_credentials_property_name
-
681"""Decorator that starts the OAuth 2.0 dance.
-682
-683 Starts the OAuth dance for the logged in user if they haven't already
-684 granted access for this application.
-685
-686 Args:
-687 method: callable, to be decorated method of a webapp.RequestHandler
-688 instance.
-689 """
-690
-691defcheck_oauth(request_handler,*args,**kwargs):
-692ifself._in_error:
-693self._display_error_message(request_handler)
-694return
-695
-696user=users.get_current_user()
-697# Don't use @login_decorator as this could be used in a POST request.
-698ifnotuser:
-699request_handler.redirect(users.create_login_url(
-700request_handler.request.uri))
-701return
-702
-703self._create_flow(request_handler)
-704
-705# Store the request URI in 'state' so we can use it later
-706self.flow.params['state']=_build_state_value(request_handler,user)
-707self.credentials=self._storage_class(
-708self._credentials_class,None,
-709self._credentials_property_name,user=user).get()
-710
-711ifnotself.has_credentials():
-712returnrequest_handler.redirect(self.authorize_url())
-713try:
-714resp=method(request_handler,*args,**kwargs)
-715exceptAccessTokenRefreshError:
-716returnrequest_handler.redirect(self.authorize_url())
-717finally:
-718self.credentials=None
-719returnresp
-
724"""Create the Flow object.
-725
-726 The Flow is calculated lazily since we don't know where this app is
-727 running until it receives a request, at which point redirect_uri can be
-728 calculated and then the Flow object can be constructed.
-729
-730 Args:
-731 request_handler: webapp.RequestHandler, the request handler.
-732 """
-733ifself.flowisNone:
-734redirect_uri=request_handler.request.relative_url(
-735self._callback_path)# Usually /oauth2callback
-736self.flow=OAuth2WebServerFlow(self._client_id,self._client_secret,
-737self._scope,redirect_uri=redirect_uri,
-738user_agent=self._user_agent,
-739auth_uri=self._auth_uri,
-740token_uri=self._token_uri,
-741revoke_uri=self._revoke_uri,
-742**self._kwargs)
-
745"""Decorator that sets up for OAuth 2.0 dance, but doesn't do it.
-746
-747 Does all the setup for the OAuth dance, but doesn't initiate it.
-748 This decorator is useful if you want to create a page that knows
-749 whether or not the user has granted access to this application.
-750 From within a method decorated with @oauth_aware the has_credentials()
-751 and authorize_url() methods can be called.
-752
-753 Args:
-754 method: callable, to be decorated method of a webapp.RequestHandler
-755 instance.
-756 """
-757
-758defsetup_oauth(request_handler,*args,**kwargs):
-759ifself._in_error:
-760self._display_error_message(request_handler)
-761return
-762
-763user=users.get_current_user()
-764# Don't use @login_decorator as this could be used in a POST request.
-765ifnotuser:
-766request_handler.redirect(users.create_login_url(
-767request_handler.request.uri))
-768return
-769
-770self._create_flow(request_handler)
-771
-772self.flow.params['state']=_build_state_value(request_handler,user)
-773self.credentials=self._storage_class(
-774self._credentials_class,None,
-775self._credentials_property_name,user=user).get()
-776try:
-777resp=method(request_handler,*args,**kwargs)
-778finally:
-779self.credentials=None
-780returnresp
-
785"""True if for the logged in user there are valid access Credentials.
-786
-787 Must only be called from with a webapp.RequestHandler subclassed method
-788 that had been decorated with either @oauth_required or @oauth_aware.
-789 """
-790returnself.credentialsisnotNoneandnotself.credentials.invalid
-
793"""Returns the URL to start the OAuth dance.
-794
-795 Must only be called from with a webapp.RequestHandler subclassed method
-796 that had been decorated with either @oauth_required or @oauth_aware.
-797 """
-798url=self.flow.step1_get_authorize_url()
-799returnstr(url)
-
802"""Returns an authorized http instance.
-803
-804 Must only be called from within an @oauth_required decorated method, or
-805 from within an @oauth_aware decorated method where has_credentials()
-806 returns True.
-807 """
-808returnself.credentials.authorize(httplib2.Http())
-
812"""The absolute path where the callback will occur.
-813
-814 Note this is the absolute path, not the absolute URI, that will be
-815 calculated by the decorator at runtime. See callback_handler() for how this
-816 should be used.
-817
-818 Returns:
-819 The callback path as a string.
-820 """
-821returnself._callback_path
-
870"""WSGI application for handling the OAuth 2.0 redirect callback.
-871
-872 If you need finer grained control use `callback_handler` which returns just
-873 the webapp.RequestHandler.
-874
-875 Returns:
-876 A webapp.WSGIApplication that handles the redirect back from the
-877 server during the OAuth 2.0 dance.
-878 """
-879returnwebapp.WSGIApplication([
-880(self.callback_path,self.callback_handler())
-881])
-
885"""An OAuth2Decorator that builds from a clientsecrets file.
-886
-887 Uses a clientsecrets file as the source for all the information when
-888 constructing an OAuth2Decorator.
-889
-890 Example:
-891
-892 decorator = OAuth2DecoratorFromClientSecrets(
-893 os.path.join(os.path.dirname(__file__), 'client_secrets.json')
-894 scope='https://www.googleapis.com/auth/plus')
-895
-896
-897 class MainHandler(webapp.RequestHandler):
-898
-899 @decorator.oauth_required
-900 def get(self):
-901 http = decorator.http()
-902 # http is authorized with the user's Credentials and can be used
-903 # in API calls
-904 """
-905
-906@util.positional(3)
-
908"""Constructor
-909
-910 Args:
-911 filename: string, File name of client secrets.
-912 scope: string or iterable of strings, scope(s) of the credentials being
-913 requested.
-914 message: string, A friendly string to display to the user if the
-915 clientsecrets file is missing or invalid. The message may contain HTML
-916 and will be presented on the web interface for any method that uses the
-917 decorator.
-918 cache: An optional cache service client that implements get() and set()
-919 methods. See clientsecrets.loadfile() for details.
-920 """
-921client_type,client_info=clientsecrets.loadfile(filename,cache=cache)
-922ifclient_typenotin[
-923clientsecrets.TYPE_WEB,clientsecrets.TYPE_INSTALLED]:
-924raiseInvalidClientSecretsError(
-925'OAuth2Decorator doesn\'t support this OAuth 2.0 flow.')
-926constructor_kwargs={
-927'auth_uri':client_info['auth_uri'],
-928'token_uri':client_info['token_uri'],
-929'message':message,
-930}
-931revoke_uri=client_info.get('revoke_uri')
-932ifrevoke_uriisnotNone:
-933constructor_kwargs['revoke_uri']=revoke_uri
-934super(OAuth2DecoratorFromClientSecrets,self).__init__(
-935client_info['client_id'],client_info['client_secret'],
-936scope,**constructor_kwargs)
-937ifmessageisnotNone:
-938self._message=message
-939else:
-940self._message='Please configure your application for OAuth 2.0.'
-
946"""Creates an OAuth2Decorator populated from a clientsecrets file.
-947
-948 Args:
-949 filename: string, File name of client secrets.
-950 scope: string or list of strings, scope(s) of the credentials being
-951 requested.
-952 message: string, A friendly string to display to the user if the
-953 clientsecrets file is missing or invalid. The message may contain HTML and
-954 will be presented on the web interface for any method that uses the
-955 decorator.
-956 cache: An optional cache service client that implements get() and set()
-957 methods. See clientsecrets.loadfile() for details.
-958
-959 Returns: An OAuth2Decorator
-960
-961 """
-962returnOAuth2DecoratorFromClientSecrets(filename,scope,
-963message=message,cache=cache)
-
-Credentials object for App Engine Assertion Grants
-
-This object will allow an App Engine application to identify itself to Google
-and other OAuth 2.0 servers that can verify assertions. It can be used for the
-purpose of accessing data stored under an account assigned to the App Engine
-application itself.
-
-This credential does not require a flow to instantiate because it represents
-a two legged flow, and therefore has all of the required information to
-generate and refresh its own access tokens.
-
-
-Instantiate a Credentials object from a JSON description of it. The JSON
-should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Refreshes the access_token.
-
-Since the underlying App Engine app_identity implementation does its own
-caching we can skip all the storage hoops and just to a refresh using the
-API.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
-
-Raises:
- AccessTokenRefreshError: When the refresh fails.
-
-
-NDB Model for storage of OAuth 2.0 Credentials
-
-Since this model uses the same kind as CredentialsModel and has a property
-which can serialize and deserialize Credentials correctly, it can be used
-interchangeably with a CredentialsModel to access, insert and delete the
-same entities. This simply provides an NDB model for interacting with the
-same data the DB model interacts with.
-
-Storage of the model is keyed by the user.user_id().
-
-
-App Engine NDB datastore Property for Credentials.
-
-Serves the same purpose as the DB CredentialsProperty, but for NDB models.
-Since CredentialsProperty stores data as a blob and this inherits from
-BlobProperty, the data in the datastore will be the same as in the DB case.
-
-Utility property that allows easy storage and retrieval of Credentials and
-subclasses.
-
-
-Validates a value as a proper credentials object.
-
-Args:
- value: A value to be set on the property.
-
-Raises:
- TypeError if the value is not an instance of Credentials.
-
-
-Converts our validated value to a JSON serialized string.
-
-Args:
- value: A value to be set in the datastore.
-
-Returns:
- A JSON serialized version of the credential, else '' if value is None.
-
-
-Converts our stored JSON string back to the desired type.
-
-Args:
- value: A value from the datastore to be converted to the desired type.
-
-Returns:
- A deserialized Credentials (or subclass) object, else None if the
- value can't be parsed.
-
-
-Datastore representation of this property.
-
-Looks for this property in the given model instance, and returns the proper
-datastore representation of the value that can be stored in a datastore
-entity. Most critically, it will fetch the datastore key value for
-reference properties.
-
-Some properies (e.g. DateTimeProperty, UserProperty) optionally update their
-value on every put(). This call must return the current value for such
-properties (get_updated_value_for_datastore returns the new value).
-
-Args:
- model_instance: Instance to fetch datastore value from.
-
-Returns:
- Datastore representation of the model value in a form that is
- appropriate for storing in the datastore.
-
-
-Native representation of this property.
-
-Given a value retrieved from a datastore entity, return a value,
-possibly converted, to be stored on the model instance. Usually
-this returns the value unchanged, but a property class may
-override this when it uses a different datatype on the model
-instance than on the entity.
-
-This API is not quite symmetric with get_value_for_datastore(),
-because the model instance on which to store the converted value
-may not exist yet -- we may be collecting values to be passed to a
-model constructor.
-
-Args:
- value: value retrieved from the datastore entity.
-
-Returns:
- The value converted for use as a model instance attribute.
-
-
-Assert that provided value is compatible with this property.
-
-Args:
- value: Value to validate against this Property.
-
-Returns:
- A valid value, either the input unchanged or adapted to the
- required type.
-
-Raises:
- BadValueError if the value is not appropriate for this
- property in any way.
-
-
-App Engine NDB datastore Property for Flow.
-
-Serves the same purpose as the DB FlowProperty, but for NDB models. Since
-PickleProperty inherits from BlobProperty, the underlying representation of
-the data in the datastore will be the same as in the DB case.
-
-Utility property that allows easy storage and retrieval of an
-oauth2client.Flow
-
-
-Validates a value as a proper Flow object.
-
-Args:
- value: A value to be set on the property.
-
-Raises:
- TypeError if the value is not an instance of Flow.
-
-
-Datastore representation of this property.
-
-Looks for this property in the given model instance, and returns the proper
-datastore representation of the value that can be stored in a datastore
-entity. Most critically, it will fetch the datastore key value for
-reference properties.
-
-Some properies (e.g. DateTimeProperty, UserProperty) optionally update their
-value on every put(). This call must return the current value for such
-properties (get_updated_value_for_datastore returns the new value).
-
-Args:
- model_instance: Instance to fetch datastore value from.
-
-Returns:
- Datastore representation of the model value in a form that is
- appropriate for storing in the datastore.
-
-
-Native representation of this property.
-
-Given a value retrieved from a datastore entity, return a value,
-possibly converted, to be stored on the model instance. Usually
-this returns the value unchanged, but a property class may
-override this when it uses a different datatype on the model
-instance than on the entity.
-
-This API is not quite symmetric with get_value_for_datastore(),
-because the model instance on which to store the converted value
-may not exist yet -- we may be collecting values to be passed to a
-model constructor.
-
-Args:
- value: value retrieved from the datastore entity.
-
-Returns:
- The value converted for use as a model instance attribute.
-
-
-Assert that provided value is compatible with this property.
-
-Args:
- value: Value to validate against this Property.
-
-Returns:
- A valid value, either the input unchanged or adapted to the
- required type.
-
-Raises:
- BadValueError if the value is not appropriate for this
- property in any way.
-
-
-Determine if value is empty in the context of this property.
-
-For most kinds, this is equivalent to "not value", but for kinds like
-bool, the test is more subtle, so subclasses can override this method
-if necessary.
-
-Args:
- value: Value to validate against this Property.
-
-Returns:
- True if this value is considered empty in the context of this Property
- type, otherwise False.
-
-
-Utility for making OAuth 2.0 easier.
-
-Instantiate and then use with oauth_required or oauth_aware
-as decorators on webapp.RequestHandler methods.
-
-Example:
-
- decorator = OAuth2Decorator(
- client_id='837...ent.com',
- client_secret='Qh...wwI',
- scope='https://www.googleapis.com/auth/plus')
-
-
- class MainHandler(webapp.RequestHandler):
-
- @decorator.oauth_required
- def get(self):
- http = decorator.http()
- # http is authorized with the user's Credentials and can be used
- # in API calls
-
-
-A thread local Credentials object.
-
-Returns:
- A client.Credentials object, or None if credentials hasn't been set in
- this thread yet, which may happen when calling has_credentials inside
- oauth_aware.
-
-
-A thread local Flow object.
-
-Returns:
- A credentials.Flow object, or None if the flow hasn't been set in this
- thread yet, which happens in _create_flow() since Flows are created
- lazily.
-
-
-Constructor for OAuth2Decorator
-
-Args:
- client_id: string, client identifier.
- client_secret: string client secret.
- scope: string or iterable of strings, scope(s) of the credentials being
- requested.
- auth_uri: string, URI for authorization endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- token_uri: string, URI for token endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- revoke_uri: string, URI for revoke endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- user_agent: string, User agent of your application, default to None.
- message: Message to display if there are problems with the OAuth 2.0
- configuration. The message may contain HTML and will be presented on the
- web interface for any method that uses the decorator.
- callback_path: string, The absolute path to use as the callback URI. Note
- that this must match up with the URI given when registering the
- application in the APIs Console.
- token_response_param: string. If provided, the full JSON response
- to the access token request will be encoded and included in this query
- parameter in the callback URI. This is useful with providers (e.g.
- wordpress.com) that include extra fields that the client may want.
- _storage_class: "Protected" keyword argument not typically provided to
- this constructor. A storage class to aid in storing a Credentials object
- for a user in the datastore. Defaults to StorageByKeyName.
- _credentials_class: "Protected" keyword argument not typically provided to
- this constructor. A db or ndb Model class to hold credentials. Defaults
- to CredentialsModel.
- _credentials_property_name: "Protected" keyword argument not typically
- provided to this constructor. A string indicating the name of the field
- on the _credentials_class where a Credentials object will be stored.
- Defaults to 'credentials'.
- **kwargs: dict, Keyword arguments are be passed along as kwargs to the
- OAuth2WebServerFlow constructor.
-
-
-Decorator that starts the OAuth 2.0 dance.
-
-Starts the OAuth dance for the logged in user if they haven't already
-granted access for this application.
-
-Args:
- method: callable, to be decorated method of a webapp.RequestHandler
- instance.
-
-
-Create the Flow object.
-
-The Flow is calculated lazily since we don't know where this app is
-running until it receives a request, at which point redirect_uri can be
-calculated and then the Flow object can be constructed.
-
-Args:
- request_handler: webapp.RequestHandler, the request handler.
-
-
-Decorator that sets up for OAuth 2.0 dance, but doesn't do it.
-
-Does all the setup for the OAuth dance, but doesn't initiate it.
-This decorator is useful if you want to create a page that knows
-whether or not the user has granted access to this application.
-From within a method decorated with @oauth_aware the has_credentials()
-and authorize_url() methods can be called.
-
-Args:
- method: callable, to be decorated method of a webapp.RequestHandler
- instance.
-
-
-True if for the logged in user there are valid access Credentials.
-
-Must only be called from with a webapp.RequestHandler subclassed method
-that had been decorated with either @oauth_required or @oauth_aware.
-
-
-Returns the URL to start the OAuth dance.
-
-Must only be called from with a webapp.RequestHandler subclassed method
-that had been decorated with either @oauth_required or @oauth_aware.
-
-
-Returns an authorized http instance.
-
-Must only be called from within an @oauth_required decorated method, or
-from within an @oauth_aware decorated method where has_credentials()
-returns True.
-
-
-The absolute path where the callback will occur.
-
-Note this is the absolute path, not the absolute URI, that will be
-calculated by the decorator at runtime. See callback_handler() for how this
-should be used.
-
-Returns:
- The callback path as a string.
-
-
-RequestHandler for the OAuth 2.0 redirect callback.
-
-Usage:
- app = webapp.WSGIApplication([
- ('/index', MyIndexHandler),
- ...,
- (decorator.callback_path, decorator.callback_handler())
- ])
-
-Returns:
- A webapp.RequestHandler that handles the redirect back from the
- server during the OAuth 2.0 dance.
-
-
-WSGI application for handling the OAuth 2.0 redirect callback.
-
-If you need finer grained control use `callback_handler` which returns just
-the webapp.RequestHandler.
-
-Returns:
- A webapp.WSGIApplication that handles the redirect back from the
- server during the OAuth 2.0 dance.
-
-
-An OAuth2Decorator that builds from a clientsecrets file.
-
-Uses a clientsecrets file as the source for all the information when
-constructing an OAuth2Decorator.
-
-Example:
-
- decorator = OAuth2DecoratorFromClientSecrets(
- os.path.join(os.path.dirname(__file__), 'client_secrets.json')
- scope='https://www.googleapis.com/auth/plus')
-
-
- class MainHandler(webapp.RequestHandler):
-
- @decorator.oauth_required
- def get(self):
- http = decorator.http()
- # http is authorized with the user's Credentials and can be used
- # in API calls
-
-
-Constructor
-
-Args:
- filename: string, File name of client secrets.
- scope: string or iterable of strings, scope(s) of the credentials being
- requested.
- message: string, A friendly string to display to the user if the
- clientsecrets file is missing or invalid. The message may contain HTML
- and will be presented on the web interface for any method that uses the
- decorator.
- cache: An optional cache service client that implements get() and set()
- methods. See clientsecrets.loadfile() for details.
-
-
-NDB Model for storage for the sites XSRF secret key.
-
-Since this model uses the same kind as SiteXsrfSecretKey, it can be used
-interchangeably. This simply provides an NDB model for interacting with the
-same data the DB model interacts with.
-
-There should only be one instance stored of this model, the one used for the
-site.
-
-
-Store and retrieve a credential to and from the App Engine datastore.
-
-This Storage helper presumes the Credentials have been stored as a
-CredentialsProperty or CredentialsNDBProperty on a datastore model class, and
-that entities are stored by key_name.
-
-
-Constructor for Storage.
-
-Args:
- model: db.Model or ndb.Model, model class
- key_name: string, key name for the entity that has the credentials
- property_name: string, name of the property that is a CredentialsProperty
- or CredentialsNDBProperty.
- cache: memcache, a write-through cache to put in front of the datastore.
- If the model you are using is an NDB model, using a cache will be
- redundant since the model uses an instance cache and memcache for you.
- user: users.User object, optional. Can be used to grab user ID as a
- key_name if no key name is specified.
-
-
-Retrieve entity from datastore.
-
-Uses a different model method for db or ndb models.
-
-Returns:
- Instance of the model corresponding to the current storage object
- and stored using the key name of the storage object.
-
-
-Forces header keys and values to be strings, i.e not unicode.
-
-The httplib module just concats the header keys and values in a way that may
-make the message header a unicode string, which, if it then tries to
-contatenate to a binary request body may result in a unicode decode error.
-
-Args:
- headers: dict, A dictionary of headers.
-
-Returns:
- The same dictionary but with all the keys converted to strings.
-
-
-Updates a URI with new query parameters.
-
-Args:
- uri: string, A valid URI, with potential existing query parameters.
- params: dict, A dictionary of query parameters.
-
-Returns:
- The same URI but with the new query parameters added.
-
-
-Verifies a signed JWT id_token.
-
-This function requires PyOpenSSL and because of that it does not work on
-App Engine.
-
-Args:
- id_token: string, A Signed JWT.
- audience: string, The audience 'aud' that the token should be for.
- http: httplib2.Http, instance to use to make the HTTP request. Callers
- should supply an instance that has caching enabled.
- cert_uri: string, URI of the certificates in JSON format to
- verify the JWT against.
-
-Returns:
- The deserialized JSON in the JWT.
-
-Raises:
- oauth2client.crypt.AppIdentityError if the JWT fails to verify.
-
-
-Parses response of an exchange token request.
-
-Most providers return JSON but some (e.g. Facebook) return a
-url-encoded string.
-
-Args:
- content: The body of a response
-
-Returns:
- Content as a dictionary object. Note that the dict could be empty,
- i.e. {}. That basically indicates a failure.
-
-
-Exchanges an authorization code for an OAuth2Credentials object.
-
-Args:
- client_id: string, client identifier.
- client_secret: string, client secret.
- scope: string or iterable of strings, scope(s) to request.
- code: string, An authroization code, most likely passed down from
- the client
- redirect_uri: string, this is generally set to 'postmessage' to match the
- redirect_uri that the client specified
- http: httplib2.Http, optional http instance to use to do the fetch
- token_uri: string, URI for token endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- auth_uri: string, URI for authorization endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- revoke_uri: string, URI for revoke endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-
-Returns:
- An OAuth2Credentials object.
-
-Raises:
- FlowExchangeError if the authorization code cannot be exchanged for an
- access token
-
-
-Returns OAuth2Credentials from a clientsecrets file and an auth code.
-
-Will create the right kind of Flow based on the contents of the clientsecrets
-file or will raise InvalidClientSecretsError for unknown types of Flows.
-
-Args:
- filename: string, File name of clientsecrets.
- scope: string or iterable of strings, scope(s) to request.
- code: string, An authorization code, most likely passed down from
- the client
- message: string, A friendly string to display to the user if the
- clientsecrets file is missing or invalid. If message is provided then
- sys.exit will be called in the case of an error. If message in not
- provided then clientsecrets.InvalidClientSecretsError will be raised.
- redirect_uri: string, this is generally set to 'postmessage' to match the
- redirect_uri that the client specified
- http: httplib2.Http, optional http instance to use to do the fetch
- cache: An optional cache service client that implements get() and set()
- methods. See clientsecrets.loadfile() for details.
-
-Returns:
- An OAuth2Credentials object.
-
-Raises:
- FlowExchangeError if the authorization code cannot be exchanged for an
- access token
- UnknownClientSecretsFlowError if the file describes an unknown kind of Flow.
- clientsecrets.InvalidClientSecretsError if the clientsecrets file is
- invalid.
-
-
-Create a Flow from a clientsecrets file.
-
-Will create the right kind of Flow based on the contents of the clientsecrets
-file or will raise InvalidClientSecretsError for unknown types of Flows.
-
-Args:
- filename: string, File name of client secrets.
- scope: string or iterable of strings, scope(s) to request.
- redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
- a non-web-based application, or a URI that handles the callback from
- the authorization server.
- message: string, A friendly string to display to the user if the
- clientsecrets file is missing or invalid. If message is provided then
- sys.exit will be called in the case of an error. If message in not
- provided then clientsecrets.InvalidClientSecretsError will be raised.
- cache: An optional cache service client that implements get() and set()
- methods. See clientsecrets.loadfile() for details.
-
-Returns:
- A Flow object.
-
-Raises:
- UnknownClientSecretsFlowError if the file describes an unknown kind of Flow.
- clientsecrets.InvalidClientSecretsError if the clientsecrets file is
- invalid.
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""An OAuth 2.0 client.
- 16
- 17Tools for interacting with OAuth 2.0 protected resources.
- 18"""
- 19
- 20__author__='jcgregorio@google.com (Joe Gregorio)'
- 21
- 22importbase64
- 23importclientsecrets
- 24importcopy
- 25importdatetime
- 26importhttplib2
- 27importlogging
- 28importos
- 29importsys
- 30importtime
- 31importurllib
- 32importurlparse
- 33
- 34fromoauth2clientimportGOOGLE_AUTH_URI
- 35fromoauth2clientimportGOOGLE_REVOKE_URI
- 36fromoauth2clientimportGOOGLE_TOKEN_URI
- 37fromoauth2clientimportutil
- 38fromoauth2client.anyjsonimportsimplejson
- 39
- 40HAS_OPENSSL=False
- 41HAS_CRYPTO=False
- 42try:
- 43fromoauth2clientimportcrypt
- 44HAS_CRYPTO=True
- 45ifcrypt.OpenSSLVerifierisnotNone:
- 46HAS_OPENSSL=True
- 47exceptImportError:
- 48pass
- 49
- 50try:
- 51fromurlparseimportparse_qsl
- 52exceptImportError:
- 53fromcgiimportparse_qsl
- 54
- 55logger=logging.getLogger(__name__)
- 56
- 57# Expiry is stored in RFC3339 UTC format
- 58EXPIRY_FORMAT='%Y-%m-%dT%H:%M:%SZ'
- 59
- 60# Which certs to use to validate id_tokens received.
- 61ID_TOKEN_VERIFICATON_CERTS='https://www.googleapis.com/oauth2/v1/certs'
- 62
- 63# Constant to use for the out of band OAuth 2.0 flow.
- 64OOB_CALLBACK_URN='urn:ietf:wg:oauth:2.0:oob'
- 65
- 66# Google Data client libraries may need to set this to [401, 403].
- 67REFRESH_STATUS_CODES=[401]
-
123"""Base class for all Credentials objects.
- 124
- 125 Subclasses must define an authorize() method that applies the credentials to
- 126 an HTTP transport.
- 127
- 128 Subclasses must also specify a classmethod named 'from_json' that takes a JSON
- 129 string as input and returns an instaniated Credentials object.
- 130 """
- 131
- 132NON_SERIALIZED_MEMBERS=['store']
- 133
-
135"""Take an httplib2.Http instance (or equivalent) and authorizes it.
- 136
- 137 Authorizes it for the set of credentials, usually by replacing
- 138 http.request() with a method that adds in the appropriate headers and then
- 139 delegates to the original Http.request() method.
- 140
- 141 Args:
- 142 http: httplib2.Http, an http object to be used to make the refresh
- 143 request.
- 144 """
- 145_abstract()
-
148"""Forces a refresh of the access_token.
- 149
- 150 Args:
- 151 http: httplib2.Http, an http object to be used to make the refresh
- 152 request.
- 153 """
- 154_abstract()
-
157"""Revokes a refresh_token and makes the credentials void.
- 158
- 159 Args:
- 160 http: httplib2.Http, an http object to be used to make the revoke
- 161 request.
- 162 """
- 163_abstract()
-
166"""Add the authorization to the headers.
- 167
- 168 Args:
- 169 headers: dict, the headers to add the Authorization header to.
- 170 """
- 171_abstract()
-
174"""Utility function that creates JSON repr. of a Credentials object.
- 175
- 176 Args:
- 177 strip: array, An array of names of members to not include in the JSON.
- 178
- 179 Returns:
- 180 string, a JSON representation of this instance, suitable to pass to
- 181 from_json().
- 182 """
- 183t=type(self)
- 184d=copy.copy(self.__dict__)
- 185formemberinstrip:
- 186ifmemberind:
- 187deld[member]
- 188if'token_expiry'indandisinstance(d['token_expiry'],datetime.datetime):
- 189d['token_expiry']=d['token_expiry'].strftime(EXPIRY_FORMAT)
- 190# Add in information we will need later to reconsistitue this instance.
- 191d['_class']=t.__name__
- 192d['_module']=t.__module__
- 193returnsimplejson.dumps(d)
-
196"""Creating a JSON representation of an instance of Credentials.
- 197
- 198 Returns:
- 199 string, a JSON representation of this instance, suitable to pass to
- 200 from_json().
- 201 """
- 202returnself._to_json(Credentials.NON_SERIALIZED_MEMBERS)
-
206"""Utility class method to instantiate a Credentials subclass from a JSON
- 207 representation produced by to_json().
- 208
- 209 Args:
- 210 s: string, JSON from to_json().
- 211
- 212 Returns:
- 213 An instance of the subclass of Credentials that was serialized with
- 214 to_json().
- 215 """
- 216data=simplejson.loads(s)
- 217# Find and call the right classmethod from_json() to restore the object.
- 218module=data['_module']
- 219try:
- 220m=__import__(module)
- 221exceptImportError:
- 222# In case there's an object from the old package structure, update it
- 223module=module.replace('.apiclient','')
- 224m=__import__(module)
- 225
- 226m=__import__(module,fromlist=module.split('.')[:-1])
- 227kls=getattr(m,data['_class'])
- 228from_json=getattr(kls,'from_json')
- 229returnfrom_json(s)
-
233"""Instantiate a Credentials object from a JSON description of it.
- 234
- 235 The JSON should have been produced by calling .to_json() on the object.
- 236
- 237 Args:
- 238 data: dict, A deserialized JSON object.
- 239
- 240 Returns:
- 241 An instance of a Credentials subclass.
- 242 """
- 243returnCredentials()
-
252"""Base class for all Storage objects.
- 253
- 254 Store and retrieve a single credential. This class supports locking
- 255 such that multiple processes and threads can operate on a single
- 256 store.
- 257 """
- 258
-
275"""Retrieve credential.
- 276
- 277 The Storage lock must be held when this is called.
- 278
- 279 Returns:
- 280 oauth2client.client.Credentials
- 281 """
- 282_abstract()
-
285"""Write a credential.
- 286
- 287 The Storage lock must be held when this is called.
- 288
- 289 Args:
- 290 credentials: Credentials, the credentials to store.
- 291 """
- 292_abstract()
-
316"""Write a credential.
- 317
- 318 The Storage lock must be held when this is called.
- 319
- 320 Args:
- 321 credentials: Credentials, the credentials to store.
- 322 """
- 323self.acquire_lock()
- 324try:
- 325self.locked_put(credentials)
- 326finally:
- 327self.release_lock()
-
330"""Delete credential.
- 331
- 332 Frees any resources associated with storing the credential.
- 333 The Storage lock must *not* be held when this is called.
- 334
- 335 Returns:
- 336 None
- 337 """
- 338self.acquire_lock()
- 339try:
- 340returnself.locked_delete()
- 341finally:
- 342self.release_lock()
-
346"""Forces header keys and values to be strings, i.e not unicode.
- 347
- 348 The httplib module just concats the header keys and values in a way that may
- 349 make the message header a unicode string, which, if it then tries to
- 350 contatenate to a binary request body may result in a unicode decode error.
- 351
- 352 Args:
- 353 headers: dict, A dictionary of headers.
- 354
- 355 Returns:
- 356 The same dictionary but with all the keys converted to strings.
- 357 """
- 358clean={}
- 359try:
- 360fork,vinheaders.iteritems():
- 361clean[str(k)]=str(v)
- 362exceptUnicodeEncodeError:
- 363raiseNonAsciiHeaderError(k+': '+v)
- 364returnclean
-
368"""Updates a URI with new query parameters.
- 369
- 370 Args:
- 371 uri: string, A valid URI, with potential existing query parameters.
- 372 params: dict, A dictionary of query parameters.
- 373
- 374 Returns:
- 375 The same URI but with the new query parameters added.
- 376 """
- 377parts=list(urlparse.urlparse(uri))
- 378query_params=dict(parse_qsl(parts[4]))# 4 is the index of the query part
- 379query_params.update(params)
- 380parts[4]=urllib.urlencode(query_params)
- 381returnurlparse.urlunparse(parts)
-
385"""Credentials object for OAuth 2.0.
- 386
- 387 Credentials can be applied to an httplib2.Http object using the authorize()
- 388 method, which then adds the OAuth 2.0 access token to each request.
- 389
- 390 OAuth2Credentials objects may be safely pickled and unpickled.
- 391 """
- 392
- 393@util.positional(8)
-
397"""Create an instance of OAuth2Credentials.
- 398
- 399 This constructor is not usually called by the user, instead
- 400 OAuth2Credentials objects are instantiated by the OAuth2WebServerFlow.
- 401
- 402 Args:
- 403 access_token: string, access token.
- 404 client_id: string, client identifier.
- 405 client_secret: string, client secret.
- 406 refresh_token: string, refresh token.
- 407 token_expiry: datetime, when the access_token expires.
- 408 token_uri: string, URI of token endpoint.
- 409 user_agent: string, The HTTP User-Agent to provide for this application.
- 410 revoke_uri: string, URI for revoke endpoint. Defaults to None; a token
- 411 can't be revoked if this is None.
- 412 id_token: object, The identity of the resource owner.
- 413 token_response: dict, the decoded response to the token request. None
- 414 if a token hasn't been requested yet. Stored because some providers
- 415 (e.g. wordpress.com) include extra fields that clients may want.
- 416
- 417 Notes:
- 418 store: callable, A callable that when passed a Credential
- 419 will store the credential back to where it came from.
- 420 This is needed to store the latest access_token if it
- 421 has expired and been refreshed.
- 422 """
- 423self.access_token=access_token
- 424self.client_id=client_id
- 425self.client_secret=client_secret
- 426self.refresh_token=refresh_token
- 427self.store=None
- 428self.token_expiry=token_expiry
- 429self.token_uri=token_uri
- 430self.user_agent=user_agent
- 431self.revoke_uri=revoke_uri
- 432self.id_token=id_token
- 433self.token_response=token_response
- 434
- 435# True if the credentials have been revoked or expired and can't be
- 436# refreshed.
- 437self.invalid=False
-
440"""Authorize an httplib2.Http instance with these credentials.
- 441
- 442 The modified http.request method will add authentication headers to each
- 443 request and will refresh access_tokens when a 401 is received on a
- 444 request. In addition the http.request method has a credentials property,
- 445 http.request.credentials, which is the Credentials object that authorized
- 446 it.
- 447
- 448 Args:
- 449 http: An instance of httplib2.Http
- 450 or something that acts like it.
- 451
- 452 Returns:
- 453 A modified instance of http that was passed in.
- 454
- 455 Example:
- 456
- 457 h = httplib2.Http()
- 458 h = credentials.authorize(h)
- 459
- 460 You can't create a new OAuth subclass of httplib2.Authenication
- 461 because it never gets passed the absolute URI, which is needed for
- 462 signing. So instead we have to overload 'request' with a closure
- 463 that adds in the Authorization header and then calls the original
- 464 version of 'request()'.
- 465 """
- 466request_orig=http.request
- 467
- 468# The closure that will replace 'httplib2.Http.request'.
- 469@util.positional(1)
- 470defnew_request(uri,method='GET',body=None,headers=None,
- 471redirections=httplib2.DEFAULT_MAX_REDIRECTS,
- 472connection_type=None):
- 473ifnotself.access_token:
- 474logger.info('Attempting refresh to obtain initial access_token')
- 475self._refresh(request_orig)
- 476
- 477# Modify the request headers to add the appropriate
- 478# Authorization header.
- 479ifheadersisNone:
- 480headers={}
- 481self.apply(headers)
- 482
- 483ifself.user_agentisnotNone:
- 484if'user-agent'inheaders:
- 485headers['user-agent']=self.user_agent+' '+headers['user-agent']
- 486else:
- 487headers['user-agent']=self.user_agent
- 488
- 489resp,content=request_orig(uri,method,body,clean_headers(headers),
- 490redirections,connection_type)
- 491
- 492ifresp.statusinREFRESH_STATUS_CODES:
- 493logger.info('Refreshing due to a %s'%str(resp.status))
- 494self._refresh(request_orig)
- 495self.apply(headers)
- 496returnrequest_orig(uri,method,body,clean_headers(headers),
- 497redirections,connection_type)
- 498else:
- 499return(resp,content)
-
500
- 501# Replace the request method with our own closure.
- 502http.request=new_request
- 503
- 504# Set credentials as a property of the request method.
- 505setattr(http.request,'credentials',self)
- 506
- 507returnhttp
-
510"""Forces a refresh of the access_token.
- 511
- 512 Args:
- 513 http: httplib2.Http, an http object to be used to make the refresh
- 514 request.
- 515 """
- 516self._refresh(http.request)
-
519"""Revokes a refresh_token and makes the credentials void.
- 520
- 521 Args:
- 522 http: httplib2.Http, an http object to be used to make the revoke
- 523 request.
- 524 """
- 525self._revoke(http.request)
-
528"""Add the authorization to the headers.
- 529
- 530 Args:
- 531 headers: dict, the headers to add the Authorization header to.
- 532 """
- 533headers['Authorization']='Bearer '+self.access_token
-
591"""Set the Storage for the credential.
- 592
- 593 Args:
- 594 store: Storage, an implementation of Stroage object.
- 595 This is needed to store the latest access_token if it
- 596 has expired and been refreshed. This implementation uses
- 597 locking to check for updates before updating the
- 598 access_token.
- 599 """
- 600self.store=store
-
618"""Generate the body that will be used in the refresh request."""
- 619body=urllib.urlencode({
- 620'grant_type':'refresh_token',
- 621'client_id':self.client_id,
- 622'client_secret':self.client_secret,
- 623'refresh_token':self.refresh_token,
- 624})
- 625returnbody
-
628"""Generate the headers that will be used in the refresh request."""
- 629headers={
- 630'content-type':'application/x-www-form-urlencoded',
- 631}
- 632
- 633ifself.user_agentisnotNone:
- 634headers['user-agent']=self.user_agent
- 635
- 636returnheaders
-
639"""Refreshes the access_token.
- 640
- 641 This method first checks by reading the Storage object if available.
- 642 If a refresh is still needed, it holds the Storage lock until the
- 643 refresh is completed.
- 644
- 645 Args:
- 646 http_request: callable, a callable that matches the method signature of
- 647 httplib2.Http.request, used to make the refresh request.
- 648
- 649 Raises:
- 650 AccessTokenRefreshError: When the refresh fails.
- 651 """
- 652ifnotself.store:
- 653self._do_refresh_request(http_request)
- 654else:
- 655self.store.acquire_lock()
- 656try:
- 657new_cred=self.store.locked_get()
- 658if(new_credandnotnew_cred.invalidand
- 659new_cred.access_token!=self.access_token):
- 660logger.info('Updated access_token read from Storage')
- 661self._updateFromCredential(new_cred)
- 662else:
- 663self._do_refresh_request(http_request)
- 664finally:
- 665self.store.release_lock()
-
713"""Revokes the refresh_token and deletes the store if available.
- 714
- 715 Args:
- 716 http_request: callable, a callable that matches the method signature of
- 717 httplib2.Http.request, used to make the revoke request.
- 718 """
- 719self._do_revoke(http_request,self.refresh_token)
-
722"""Revokes the credentials and deletes the store if available.
- 723
- 724 Args:
- 725 http_request: callable, a callable that matches the method signature of
- 726 httplib2.Http.request, used to make the refresh request.
- 727 token: A string used as the token to be revoked. Can be either an
- 728 access_token or refresh_token.
- 729
- 730 Raises:
- 731 TokenRevokeError: If the revoke request does not return with a 200 OK.
- 732 """
- 733logger.info('Revoking token')
- 734query_params={'token':token}
- 735token_revoke_uri=_update_query_params(self.revoke_uri,query_params)
- 736resp,content=http_request(token_revoke_uri)
- 737ifresp.status==200:
- 738self.invalid=True
- 739else:
- 740error_msg='Invalid response %s.'%resp.status
- 741try:
- 742d=simplejson.loads(content)
- 743if'error'ind:
- 744error_msg=d['error']
- 745exceptStandardError:
- 746pass
- 747raiseTokenRevokeError(error_msg)
- 748
- 749ifself.store:
- 750self.store.delete()
-
754"""Credentials object for OAuth 2.0.
- 755
- 756 Credentials can be applied to an httplib2.Http object using the
- 757 authorize() method, which then signs each request from that object
- 758 with the OAuth 2.0 access token. This set of credentials is for the
- 759 use case where you have acquired an OAuth 2.0 access_token from
- 760 another place such as a JavaScript client or another web
- 761 application, and wish to use it from Python. Because only the
- 762 access_token is present it can not be refreshed and will in time
- 763 expire.
- 764
- 765 AccessTokenCredentials objects may be safely pickled and unpickled.
- 766
- 767 Usage:
- 768 credentials = AccessTokenCredentials('<an access token>',
- 769 'my-user-agent/1.0')
- 770 http = httplib2.Http()
- 771 http = credentials.authorize(http)
- 772
- 773 Exceptions:
- 774 AccessTokenCredentialsExpired: raised when the access_token expires or is
- 775 revoked.
- 776 """
- 777
-
779"""Create an instance of OAuth2Credentials
- 780
- 781 This is one of the few types if Credentials that you should contrust,
- 782 Credentials objects are usually instantiated by a Flow.
- 783
- 784 Args:
- 785 access_token: string, access token.
- 786 user_agent: string, The HTTP User-Agent to provide for this application.
- 787 revoke_uri: string, URI for revoke endpoint. Defaults to None; a token
- 788 can't be revoked if this is None.
- 789 """
- 790super(AccessTokenCredentials,self).__init__(
- 791access_token,
- 792None,
- 793None,
- 794None,
- 795None,
- 796None,
- 797user_agent,
- 798revoke_uri=revoke_uri)
-
814"""Revokes the access_token and deletes the store if available.
- 815
- 816 Args:
- 817 http_request: callable, a callable that matches the method signature of
- 818 httplib2.Http.request, used to make the revoke request.
- 819 """
- 820self._do_revoke(http_request,self.access_token)
-
824"""Abstract Credentials object used for OAuth 2.0 assertion grants.
- 825
- 826 This credential does not require a flow to instantiate because it
- 827 represents a two legged flow, and therefore has all of the required
- 828 information to generate and refresh its own access tokens. It must
- 829 be subclassed to generate the appropriate assertion string.
- 830
- 831 AssertionCredentials objects may be safely pickled and unpickled.
- 832 """
- 833
- 834@util.positional(2)
-
839"""Constructor for AssertionFlowCredentials.
- 840
- 841 Args:
- 842 assertion_type: string, assertion type that will be declared to the auth
- 843 server
- 844 user_agent: string, The HTTP User-Agent to provide for this application.
- 845 token_uri: string, URI for token endpoint. For convenience
- 846 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- 847 revoke_uri: string, URI for revoke endpoint.
- 848 """
- 849super(AssertionCredentials,self).__init__(
- 850None,
- 851None,
- 852None,
- 853None,
- 854None,
- 855token_uri,
- 856user_agent,
- 857revoke_uri=revoke_uri)
- 858self.assertion_type=assertion_type
-
877"""Revokes the access_token and deletes the store if available.
- 878
- 879 Args:
- 880 http_request: callable, a callable that matches the method signature of
- 881 httplib2.Http.request, used to make the revoke request.
- 882 """
- 883self._do_revoke(http_request,self.access_token)
-
887# PyOpenSSL and PyCrypto are not prerequisites for oauth2client, so if it is
- 888# missing then don't create the SignedJwtAssertionCredentials or the
- 889# verify_id_token() method.
- 890
- 891-classSignedJwtAssertionCredentials(AssertionCredentials):
-
892"""Credentials object used for OAuth 2.0 Signed JWT assertion grants.
- 893
- 894 This credential does not require a flow to instantiate because it represents
- 895 a two legged flow, and therefore has all of the required information to
- 896 generate and refresh its own access tokens.
- 897
- 898 SignedJwtAssertionCredentials requires either PyOpenSSL, or PyCrypto 2.6 or
- 899 later. For App Engine you may also consider using AppAssertionCredentials.
- 900 """
- 901
- 902MAX_TOKEN_LIFETIME_SECS=3600# 1 hour in seconds
- 903
- 904@util.positional(4)
-
914"""Constructor for SignedJwtAssertionCredentials.
- 915
- 916 Args:
- 917 service_account_name: string, id for account, usually an email address.
- 918 private_key: string, private key in PKCS12 or PEM format.
- 919 scope: string or iterable of strings, scope(s) of the credentials being
- 920 requested.
- 921 private_key_password: string, password for private_key, unused if
- 922 private_key is in PEM format.
- 923 user_agent: string, HTTP User-Agent to provide for this application.
- 924 token_uri: string, URI for token endpoint. For convenience
- 925 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- 926 revoke_uri: string, URI for revoke endpoint.
- 927 kwargs: kwargs, Additional parameters to add to the JWT token, for
- 928 example sub=joe@xample.org."""
- 929
- 930super(SignedJwtAssertionCredentials,self).__init__(
- 931None,
- 932user_agent=user_agent,
- 933token_uri=token_uri,
- 934revoke_uri=revoke_uri,
- 935)
- 936
- 937self.scope=util.scopes_to_string(scope)
- 938
- 939# Keep base64 encoded so it can be stored in JSON.
- 940self.private_key=base64.b64encode(private_key)
- 941
- 942self.private_key_password=private_key_password
- 943self.service_account_name=service_account_name
- 944self.kwargs=kwargs
-
963"""Generate the assertion that will be used in the request."""
- 964now=long(time.time())
- 965payload={
- 966'aud':self.token_uri,
- 967'scope':self.scope,
- 968'iat':now,
- 969'exp':now+SignedJwtAssertionCredentials.MAX_TOKEN_LIFETIME_SECS,
- 970'iss':self.service_account_name
- 971}
- 972payload.update(self.kwargs)
- 973logger.debug(str(payload))
- 974
- 975private_key=base64.b64decode(self.private_key)
- 976returncrypt.make_signed_jwt(crypt.Signer.from_string(
- 977private_key,self.private_key_password),payload)
-
978
- 979# Only used in verify_id_token(), which is always calling to the same URI
- 980# for the certs.
- 981_cached_http=httplib2.Http(MemoryCache())
- 982
- 983@util.positional(2)
-
986"""Verifies a signed JWT id_token.
- 987
- 988 This function requires PyOpenSSL and because of that it does not work on
- 989 App Engine.
- 990
- 991 Args:
- 992 id_token: string, A Signed JWT.
- 993 audience: string, The audience 'aud' that the token should be for.
- 994 http: httplib2.Http, instance to use to make the HTTP request. Callers
- 995 should supply an instance that has caching enabled.
- 996 cert_uri: string, URI of the certificates in JSON format to
- 997 verify the JWT against.
- 998
- 999 Returns:
-1000 The deserialized JSON in the JWT.
-1001
-1002 Raises:
-1003 oauth2client.crypt.AppIdentityError if the JWT fails to verify.
-1004 """
-1005ifhttpisNone:
-1006http=_cached_http
-1007
-1008resp,content=http.request(cert_uri)
-1009
-1010ifresp.status==200:
-1011certs=simplejson.loads(content)
-1012returncrypt.verify_signed_jwt_with_certs(id_token,certs,audience)
-1013else:
-1014raiseVerifyJwtTokenError('Status code: %d'%resp.status)
-
1025"""Extract the JSON payload from a JWT.
-1026
-1027 Does the extraction w/o checking the signature.
-1028
-1029 Args:
-1030 id_token: string, OAuth 2.0 id_token.
-1031
-1032 Returns:
-1033 object, The deserialized JSON payload.
-1034 """
-1035segments=id_token.split('.')
-1036
-1037if(len(segments)!=3):
-1038raiseVerifyJwtTokenError(
-1039'Wrong number of segments in token: %s'%id_token)
-1040
-1041returnsimplejson.loads(_urlsafe_b64decode(segments[1]))
-
1045"""Parses response of an exchange token request.
-1046
-1047 Most providers return JSON but some (e.g. Facebook) return a
-1048 url-encoded string.
-1049
-1050 Args:
-1051 content: The body of a response
-1052
-1053 Returns:
-1054 Content as a dictionary object. Note that the dict could be empty,
-1055 i.e. {}. That basically indicates a failure.
-1056 """
-1057resp={}
-1058try:
-1059resp=simplejson.loads(content)
-1060exceptStandardError:
-1061# different JSON libs raise different exceptions,
-1062# so we just do a catch-all here
-1063resp=dict(parse_qsl(content))
-1064
-1065# some providers respond with 'expires', others with 'expires_in'
-1066ifrespand'expires'inresp:
-1067resp['expires_in']=resp.pop('expires')
-1068
-1069returnresp
-
1078"""Exchanges an authorization code for an OAuth2Credentials object.
-1079
-1080 Args:
-1081 client_id: string, client identifier.
-1082 client_secret: string, client secret.
-1083 scope: string or iterable of strings, scope(s) to request.
-1084 code: string, An authroization code, most likely passed down from
-1085 the client
-1086 redirect_uri: string, this is generally set to 'postmessage' to match the
-1087 redirect_uri that the client specified
-1088 http: httplib2.Http, optional http instance to use to do the fetch
-1089 token_uri: string, URI for token endpoint. For convenience
-1090 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1091 auth_uri: string, URI for authorization endpoint. For convenience
-1092 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1093 revoke_uri: string, URI for revoke endpoint. For convenience
-1094 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1095
-1096 Returns:
-1097 An OAuth2Credentials object.
-1098
-1099 Raises:
-1100 FlowExchangeError if the authorization code cannot be exchanged for an
-1101 access token
-1102 """
-1103flow=OAuth2WebServerFlow(client_id,client_secret,scope,
-1104redirect_uri=redirect_uri,user_agent=user_agent,
-1105auth_uri=auth_uri,token_uri=token_uri,
-1106revoke_uri=revoke_uri)
-1107
-1108credentials=flow.step2_exchange(code,http=http)
-1109returncredentials
-
1118"""Returns OAuth2Credentials from a clientsecrets file and an auth code.
-1119
-1120 Will create the right kind of Flow based on the contents of the clientsecrets
-1121 file or will raise InvalidClientSecretsError for unknown types of Flows.
-1122
-1123 Args:
-1124 filename: string, File name of clientsecrets.
-1125 scope: string or iterable of strings, scope(s) to request.
-1126 code: string, An authorization code, most likely passed down from
-1127 the client
-1128 message: string, A friendly string to display to the user if the
-1129 clientsecrets file is missing or invalid. If message is provided then
-1130 sys.exit will be called in the case of an error. If message in not
-1131 provided then clientsecrets.InvalidClientSecretsError will be raised.
-1132 redirect_uri: string, this is generally set to 'postmessage' to match the
-1133 redirect_uri that the client specified
-1134 http: httplib2.Http, optional http instance to use to do the fetch
-1135 cache: An optional cache service client that implements get() and set()
-1136 methods. See clientsecrets.loadfile() for details.
-1137
-1138 Returns:
-1139 An OAuth2Credentials object.
-1140
-1141 Raises:
-1142 FlowExchangeError if the authorization code cannot be exchanged for an
-1143 access token
-1144 UnknownClientSecretsFlowError if the file describes an unknown kind of Flow.
-1145 clientsecrets.InvalidClientSecretsError if the clientsecrets file is
-1146 invalid.
-1147 """
-1148flow=flow_from_clientsecrets(filename,scope,message=message,cache=cache,
-1149redirect_uri=redirect_uri)
-1150credentials=flow.step2_exchange(code,http=http)
-1151returncredentials
-
1155"""Does the Web Server Flow for OAuth 2.0.
-1156
-1157 OAuth2WebServerFlow objects may be safely pickled and unpickled.
-1158 """
-1159
-1160@util.positional(4)
-
1168"""Constructor for OAuth2WebServerFlow.
-1169
-1170 The kwargs argument is used to set extra query parameters on the
-1171 auth_uri. For example, the access_type and approval_prompt
-1172 query parameters can be set via kwargs.
-1173
-1174 Args:
-1175 client_id: string, client identifier.
-1176 client_secret: string client secret.
-1177 scope: string or iterable of strings, scope(s) of the credentials being
-1178 requested.
-1179 redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
-1180 a non-web-based application, or a URI that handles the callback from
-1181 the authorization server.
-1182 user_agent: string, HTTP User-Agent to provide for this application.
-1183 auth_uri: string, URI for authorization endpoint. For convenience
-1184 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1185 token_uri: string, URI for token endpoint. For convenience
-1186 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1187 revoke_uri: string, URI for revoke endpoint. For convenience
-1188 defaults to Google's endpoints but any OAuth 2.0 provider can be used.
-1189 **kwargs: dict, The keyword arguments are all optional and required
-1190 parameters for the OAuth calls.
-1191 """
-1192self.client_id=client_id
-1193self.client_secret=client_secret
-1194self.scope=util.scopes_to_string(scope)
-1195self.redirect_uri=redirect_uri
-1196self.user_agent=user_agent
-1197self.auth_uri=auth_uri
-1198self.token_uri=token_uri
-1199self.revoke_uri=revoke_uri
-1200self.params={
-1201'access_type':'offline',
-1202'response_type':'code',
-1203}
-1204self.params.update(kwargs)
-
1208"""Returns a URI to redirect to the provider.
-1209
-1210 Args:
-1211 redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
-1212 a non-web-based application, or a URI that handles the callback from
-1213 the authorization server. This parameter is deprecated, please move to
-1214 passing the redirect_uri in via the constructor.
-1215
-1216 Returns:
-1217 A URI as a string to redirect the user to begin the authorization flow.
-1218 """
-1219ifredirect_uriisnotNone:
-1220logger.warning(('The redirect_uri parameter for'
-1221'OAuth2WebServerFlow.step1_get_authorize_url is deprecated. Please'
-1222'move to passing the redirect_uri in via the constructor.'))
-1223self.redirect_uri=redirect_uri
-1224
-1225ifself.redirect_uriisNone:
-1226raiseValueError('The value of redirect_uri must not be None.')
-1227
-1228query_params={
-1229'client_id':self.client_id,
-1230'redirect_uri':self.redirect_uri,
-1231'scope':self.scope,
-1232}
-1233query_params.update(self.params)
-1234return_update_query_params(self.auth_uri,query_params)
-
1238"""Exhanges a code for OAuth2Credentials.
-1239
-1240 Args:
-1241 code: string or dict, either the code as a string, or a dictionary
-1242 of the query parameters to the redirect_uri, which contains
-1243 the code.
-1244 http: httplib2.Http, optional http instance to use to do the fetch
-1245
-1246 Returns:
-1247 An OAuth2Credentials object that can be used to authorize requests.
-1248
-1249 Raises:
-1250 FlowExchangeError if a problem occured exchanging the code for a
-1251 refresh_token.
-1252 """
-1253
-1254ifnot(isinstance(code,str)orisinstance(code,unicode)):
-1255if'code'notincode:
-1256if'error'incode:
-1257error_msg=code['error']
-1258else:
-1259error_msg='No code was supplied in the query parameters.'
-1260raiseFlowExchangeError(error_msg)
-1261else:
-1262code=code['code']
-1263
-1264body=urllib.urlencode({
-1265'grant_type':'authorization_code',
-1266'client_id':self.client_id,
-1267'client_secret':self.client_secret,
-1268'code':code,
-1269'redirect_uri':self.redirect_uri,
-1270'scope':self.scope,
-1271})
-1272headers={
-1273'content-type':'application/x-www-form-urlencoded',
-1274}
-1275
-1276ifself.user_agentisnotNone:
-1277headers['user-agent']=self.user_agent
-1278
-1279ifhttpisNone:
-1280http=httplib2.Http()
-1281
-1282resp,content=http.request(self.token_uri,method='POST',body=body,
-1283headers=headers)
-1284d=_parse_exchange_token_response(content)
-1285ifresp.status==200and'access_token'ind:
-1286access_token=d['access_token']
-1287refresh_token=d.get('refresh_token',None)
-1288token_expiry=None
-1289if'expires_in'ind:
-1290token_expiry=datetime.datetime.utcnow()+datetime.timedelta(
-1291seconds=int(d['expires_in']))
-1292
-1293if'id_token'ind:
-1294d['id_token']=_extract_id_token(d['id_token'])
-1295
-1296logger.info('Successfully retrieved access token')
-1297returnOAuth2Credentials(access_token,self.client_id,
-1298self.client_secret,refresh_token,token_expiry,
-1299self.token_uri,self.user_agent,
-1300revoke_uri=self.revoke_uri,
-1301id_token=d.get('id_token',None),
-1302token_response=d)
-1303else:
-1304logger.info('Failed to retrieve access token: %s'%content)
-1305if'error'ind:
-1306# you never know what those providers got to say
-1307error_msg=unicode(d['error'])
-1308else:
-1309error_msg='Invalid response: %s.'%str(resp.status)
-1310raiseFlowExchangeError(error_msg)
-
1316"""Create a Flow from a clientsecrets file.
-1317
-1318 Will create the right kind of Flow based on the contents of the clientsecrets
-1319 file or will raise InvalidClientSecretsError for unknown types of Flows.
-1320
-1321 Args:
-1322 filename: string, File name of client secrets.
-1323 scope: string or iterable of strings, scope(s) to request.
-1324 redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
-1325 a non-web-based application, or a URI that handles the callback from
-1326 the authorization server.
-1327 message: string, A friendly string to display to the user if the
-1328 clientsecrets file is missing or invalid. If message is provided then
-1329 sys.exit will be called in the case of an error. If message in not
-1330 provided then clientsecrets.InvalidClientSecretsError will be raised.
-1331 cache: An optional cache service client that implements get() and set()
-1332 methods. See clientsecrets.loadfile() for details.
-1333
-1334 Returns:
-1335 A Flow object.
-1336
-1337 Raises:
-1338 UnknownClientSecretsFlowError if the file describes an unknown kind of Flow.
-1339 clientsecrets.InvalidClientSecretsError if the clientsecrets file is
-1340 invalid.
-1341 """
-1342try:
-1343client_type,client_info=clientsecrets.loadfile(filename,cache=cache)
-1344ifclient_typein(clientsecrets.TYPE_WEB,clientsecrets.TYPE_INSTALLED):
-1345constructor_kwargs={
-1346'redirect_uri':redirect_uri,
-1347'auth_uri':client_info['auth_uri'],
-1348'token_uri':client_info['token_uri'],
-1349}
-1350revoke_uri=client_info.get('revoke_uri')
-1351ifrevoke_uriisnotNone:
-1352constructor_kwargs['revoke_uri']=revoke_uri
-1353returnOAuth2WebServerFlow(
-1354client_info['client_id'],client_info['client_secret'],
-1355scope,**constructor_kwargs)
-1356
-1357exceptclientsecrets.InvalidClientSecretsError:
-1358ifmessage:
-1359sys.exit(message)
-1360else:
-1361raise
-1362else:
-1363raiseUnknownClientSecretsFlowError(
-1364'This OAuth 2.0 flow is unsupported: %r'%client_type)
-
-Credentials object for OAuth 2.0.
-
-Credentials can be applied to an httplib2.Http object using the
-authorize() method, which then signs each request from that object
-with the OAuth 2.0 access token. This set of credentials is for the
-use case where you have acquired an OAuth 2.0 access_token from
-another place such as a JavaScript client or another web
-application, and wish to use it from Python. Because only the
-access_token is present it can not be refreshed and will in time
-expire.
-
-AccessTokenCredentials objects may be safely pickled and unpickled.
-
-Usage:
- credentials = AccessTokenCredentials('<an access token>',
- 'my-user-agent/1.0')
- http = httplib2.Http()
- http = credentials.authorize(http)
-
-Exceptions:
- AccessTokenCredentialsExpired: raised when the access_token expires or is
- revoked.
-
-
-Create an instance of OAuth2Credentials
-
-This is one of the few types if Credentials that you should contrust,
-Credentials objects are usually instantiated by a Flow.
-
-Args:
- access_token: string, access token.
- user_agent: string, The HTTP User-Agent to provide for this application.
- revoke_uri: string, URI for revoke endpoint. Defaults to None; a token
- can't be revoked if this is None.
-
-
-Instantiate a Credentials object from a JSON description of it. The JSON
-should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Refreshes the access_token.
-
-This method first checks by reading the Storage object if available.
-If a refresh is still needed, it holds the Storage lock until the
-refresh is completed.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
-
-Raises:
- AccessTokenRefreshError: When the refresh fails.
-
-
-Revokes the access_token and deletes the store if available.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the revoke request.
-
-
-Abstract Credentials object used for OAuth 2.0 assertion grants.
-
-This credential does not require a flow to instantiate because it
-represents a two legged flow, and therefore has all of the required
-information to generate and refresh its own access tokens. It must
-be subclassed to generate the appropriate assertion string.
-
-AssertionCredentials objects may be safely pickled and unpickled.
-
-
-Constructor for AssertionFlowCredentials.
-
-Args:
- assertion_type: string, assertion type that will be declared to the auth
- server
- user_agent: string, The HTTP User-Agent to provide for this application.
- token_uri: string, URI for token endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- revoke_uri: string, URI for revoke endpoint.
-
-
-Revokes the access_token and deletes the store if available.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the revoke request.
-
-
-Base class for all Credentials objects.
-
-Subclasses must define an authorize() method that applies the credentials to
-an HTTP transport.
-
-Subclasses must also specify a classmethod named 'from_json' that takes a JSON
-string as input and returns an instaniated Credentials object.
-
-
-Take an httplib2.Http instance (or equivalent) and authorizes it.
-
-Authorizes it for the set of credentials, usually by replacing
-http.request() with a method that adds in the appropriate headers and then
-delegates to the original Http.request() method.
-
-Args:
- http: httplib2.Http, an http object to be used to make the refresh
- request.
-
-
-Utility function that creates JSON repr. of a Credentials object.
-
-Args:
- strip: array, An array of names of members to not include in the JSON.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Creating a JSON representation of an instance of Credentials.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Utility class method to instantiate a Credentials subclass from a JSON
-representation produced by to_json().
-
-Args:
- s: string, JSON from to_json().
-
-Returns:
- An instance of the subclass of Credentials that was serialized with
- to_json().
-
-
-Instantiate a Credentials object from a JSON description of it.
-
-The JSON should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Credentials object for OAuth 2.0.
-
-Credentials can be applied to an httplib2.Http object using the authorize()
-method, which then adds the OAuth 2.0 access token to each request.
-
-OAuth2Credentials objects may be safely pickled and unpickled.
-
-
-Create an instance of OAuth2Credentials.
-
-This constructor is not usually called by the user, instead
-OAuth2Credentials objects are instantiated by the OAuth2WebServerFlow.
-
-Args:
- access_token: string, access token.
- client_id: string, client identifier.
- client_secret: string, client secret.
- refresh_token: string, refresh token.
- token_expiry: datetime, when the access_token expires.
- token_uri: string, URI of token endpoint.
- user_agent: string, The HTTP User-Agent to provide for this application.
- revoke_uri: string, URI for revoke endpoint. Defaults to None; a token
- can't be revoked if this is None.
- id_token: object, The identity of the resource owner.
- token_response: dict, the decoded response to the token request. None
- if a token hasn't been requested yet. Stored because some providers
- (e.g. wordpress.com) include extra fields that clients may want.
-
-Notes:
- store: callable, A callable that when passed a Credential
- will store the credential back to where it came from.
- This is needed to store the latest access_token if it
- has expired and been refreshed.
-
-
-Authorize an httplib2.Http instance with these credentials.
-
-The modified http.request method will add authentication headers to each
-request and will refresh access_tokens when a 401 is received on a
-request. In addition the http.request method has a credentials property,
-http.request.credentials, which is the Credentials object that authorized
-it.
-
-Args:
- http: An instance of httplib2.Http
- or something that acts like it.
-
-Returns:
- A modified instance of http that was passed in.
-
-Example:
-
- h = httplib2.Http()
- h = credentials.authorize(h)
-
-You can't create a new OAuth subclass of httplib2.Authenication
-because it never gets passed the absolute URI, which is needed for
-signing. So instead we have to overload 'request' with a closure
-that adds in the Authorization header and then calls the original
-version of 'request()'.
-
-
-Creating a JSON representation of an instance of Credentials.
-
-Returns:
- string, a JSON representation of this instance, suitable to pass to
- from_json().
-
-
-Instantiate a Credentials object from a JSON description of it. The JSON
-should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Set the Storage for the credential.
-
-Args:
- store: Storage, an implementation of Stroage object.
- This is needed to store the latest access_token if it
- has expired and been refreshed. This implementation uses
- locking to check for updates before updating the
- access_token.
-
-
-Refreshes the access_token.
-
-This method first checks by reading the Storage object if available.
-If a refresh is still needed, it holds the Storage lock until the
-refresh is completed.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
-
-Raises:
- AccessTokenRefreshError: When the refresh fails.
-
-
-Refresh the access_token using the refresh_token.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
-
-Raises:
- AccessTokenRefreshError: When the refresh fails.
-
-
-Revokes the refresh_token and deletes the store if available.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the revoke request.
-
-
-Revokes the credentials and deletes the store if available.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
- token: A string used as the token to be revoked. Can be either an
- access_token or refresh_token.
-
-Raises:
- TokenRevokeError: If the revoke request does not return with a 200 OK.
-
-
-Constructor for OAuth2WebServerFlow.
-
-The kwargs argument is used to set extra query parameters on the
-auth_uri. For example, the access_type and approval_prompt
-query parameters can be set via kwargs.
-
-Args:
- client_id: string, client identifier.
- client_secret: string client secret.
- scope: string or iterable of strings, scope(s) of the credentials being
- requested.
- redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
- a non-web-based application, or a URI that handles the callback from
- the authorization server.
- user_agent: string, HTTP User-Agent to provide for this application.
- auth_uri: string, URI for authorization endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- token_uri: string, URI for token endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- revoke_uri: string, URI for revoke endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- **kwargs: dict, The keyword arguments are all optional and required
- parameters for the OAuth calls.
-
-
-Returns a URI to redirect to the provider.
-
-Args:
- redirect_uri: string, Either the string 'urn:ietf:wg:oauth:2.0:oob' for
- a non-web-based application, or a URI that handles the callback from
- the authorization server. This parameter is deprecated, please move to
- passing the redirect_uri in via the constructor.
-
-Returns:
- A URI as a string to redirect the user to begin the authorization flow.
-
-
-Exhanges a code for OAuth2Credentials.
-
-Args:
- code: string or dict, either the code as a string, or a dictionary
- of the query parameters to the redirect_uri, which contains
- the code.
- http: httplib2.Http, optional http instance to use to do the fetch
-
-Returns:
- An OAuth2Credentials object that can be used to authorize requests.
-
-Raises:
- FlowExchangeError if a problem occured exchanging the code for a
- refresh_token.
-
-
-Credentials object used for OAuth 2.0 Signed JWT assertion grants.
-
-This credential does not require a flow to instantiate because it represents
-a two legged flow, and therefore has all of the required information to
-generate and refresh its own access tokens.
-
-SignedJwtAssertionCredentials requires either PyOpenSSL, or PyCrypto 2.6 or
-later. For App Engine you may also consider using AppAssertionCredentials.
-
-
-Constructor for SignedJwtAssertionCredentials.
-
-Args:
- service_account_name: string, id for account, usually an email address.
- private_key: string, private key in PKCS12 or PEM format.
- scope: string or iterable of strings, scope(s) of the credentials being
- requested.
- private_key_password: string, password for private_key, unused if
- private_key is in PEM format.
- user_agent: string, HTTP User-Agent to provide for this application.
- token_uri: string, URI for token endpoint. For convenience
- defaults to Google's endpoints but any OAuth 2.0 provider can be used.
- revoke_uri: string, URI for revoke endpoint.
- kwargs: kwargs, Additional parameters to add to the JWT token, for
- example sub=joe@xample.org.
-
-
-Instantiate a Credentials object from a JSON description of it. The JSON
-should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Base class for all Storage objects.
-
-Store and retrieve a single credential. This class supports locking
-such that multiple processes and threads can operate on a single
-store.
-
-
-Delete credential.
-
-Frees any resources associated with storing the credential.
-The Storage lock must *not* be held when this is called.
-
-Returns:
- None
-
-
-Utilities for reading OAuth 2.0 client secret files.
-
-A client_secrets.json file contains all the information needed to interact with
-an OAuth 2.0 protected service.
-
-
-Loading of client_secrets JSON file, optionally backed by a cache.
-
-Typical cache storage would be App Engine memcache service,
-but you can pass in any other cache client that implements
-these methods:
- - get(key, namespace=ns)
- - set(key, value, namespace=ns)
-
-Usage:
- # without caching
- client_type, client_info = loadfile('secrets.json')
- # using App Engine memcache service
- from google.appengine.api import memcache
- client_type, client_info = loadfile('secrets.json', cache=memcache)
-
-Args:
- filename: string, Path to a client_secrets.json file on a filesystem.
- cache: An optional cache service client that implements get() and set()
- methods. If not specified, the file is always being loaded from
- a filesystem.
-
-Raises:
- InvalidClientSecretsError: In case of a validation error or some
- I/O failure. Can happen only on cache miss.
-
-Returns:
- (client_type, client_info) tuple, as _loadfile() normally would.
- JSON contents is validated only during first load. Cache hits are not
- validated.
-
-
- 1# Copyright (C) 2011 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Utilities for reading OAuth 2.0 client secret files.
- 16
- 17A client_secrets.json file contains all the information needed to interact with
- 18an OAuth 2.0 protected service.
- 19"""
- 20
- 21__author__='jcgregorio@google.com (Joe Gregorio)'
- 22
- 23
- 24fromanyjsonimportsimplejson
- 25
- 26# Properties that make a client_secrets.json file valid.
- 27TYPE_WEB='web'
- 28TYPE_INSTALLED='installed'
- 29
- 30VALID_CLIENT={
- 31TYPE_WEB:{
- 32'required':[
- 33'client_id',
- 34'client_secret',
- 35'redirect_uris',
- 36'auth_uri',
- 37'token_uri',
- 38],
- 39'string':[
- 40'client_id',
- 41'client_secret',
- 42],
- 43},
- 44TYPE_INSTALLED:{
- 45'required':[
- 46'client_id',
- 47'client_secret',
- 48'redirect_uris',
- 49'auth_uri',
- 50'token_uri',
- 51],
- 52'string':[
- 53'client_id',
- 54'client_secret',
- 55],
- 56},
- 57}
- 58
- 59
-
112"""Loading of client_secrets JSON file, optionally backed by a cache.
-113
-114 Typical cache storage would be App Engine memcache service,
-115 but you can pass in any other cache client that implements
-116 these methods:
-117 - get(key, namespace=ns)
-118 - set(key, value, namespace=ns)
-119
-120 Usage:
-121 # without caching
-122 client_type, client_info = loadfile('secrets.json')
-123 # using App Engine memcache service
-124 from google.appengine.api import memcache
-125 client_type, client_info = loadfile('secrets.json', cache=memcache)
-126
-127 Args:
-128 filename: string, Path to a client_secrets.json file on a filesystem.
-129 cache: An optional cache service client that implements get() and set()
-130 methods. If not specified, the file is always being loaded from
-131 a filesystem.
-132
-133 Raises:
-134 InvalidClientSecretsError: In case of a validation error or some
-135 I/O failure. Can happen only on cache miss.
-136
-137 Returns:
-138 (client_type, client_info) tuple, as _loadfile() normally would.
-139 JSON contents is validated only during first load. Cache hits are not
-140 validated.
-141 """
-142_SECRET_NAMESPACE='oauth2client:secrets#ns'
-143
-144ifnotcache:
-145return_loadfile(filename)
-146
-147obj=cache.get(filename,namespace=_SECRET_NAMESPACE)
-148ifobjisNone:
-149client_type,client_info=_loadfile(filename)
-150obj={client_type:client_info}
-151cache.set(filename,obj,namespace=_SECRET_NAMESPACE)
-152
-153returnobj.iteritems().next()
-
-Make a signed JWT.
-
-See http://self-issued.info/docs/draft-jones-json-web-token.html.
-
-Args:
- signer: crypt.Signer, Cryptographic signer.
- payload: dict, Dictionary of data to convert to JSON and then sign.
-
-Returns:
- string, The JWT for the payload.
-
-
-Verify a JWT against public certs.
-
-See http://self-issued.info/docs/draft-jones-json-web-token.html.
-
-Args:
- jwt: string, A JWT.
- certs: dict, Dictionary where values of public keys in PEM format.
- audience: string, The audience, 'aud', that this JWT should contain. If
- None then the JWT's 'aud' parameter is not verified.
-
-Returns:
- dict, The deserialized JSON payload in the JWT.
-
-Raises:
- AppIdentityError if any checks are failed.
-
-
- 1#!/usr/bin/python2.4
- 2# -*- coding: utf-8 -*-
- 3#
- 4# Copyright (C) 2011 Google Inc.
- 5#
- 6# Licensed under the Apache License, Version 2.0 (the "License");
- 7# you may not use this file except in compliance with the License.
- 8# You may obtain a copy of the License at
- 9#
- 10# http://www.apache.org/licenses/LICENSE-2.0
- 11#
- 12# Unless required by applicable law or agreed to in writing, software
- 13# distributed under the License is distributed on an "AS IS" BASIS,
- 14# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 15# See the License for the specific language governing permissions and
- 16# limitations under the License.
- 17
- 18importbase64
- 19importhashlib
- 20importlogging
- 21importtime
- 22
- 23fromanyjsonimportsimplejson
- 24
- 25
- 26CLOCK_SKEW_SECS=300# 5 minutes in seconds
- 27AUTH_TOKEN_LIFETIME_SECS=300# 5 minutes in seconds
- 28MAX_TOKEN_LIFETIME_SECS=86400# 1 day in seconds
- 29
- 30
- 31logger=logging.getLogger(__name__)
-
54"""Verifies a message against a signature.
- 55
- 56 Args:
- 57 message: string, The message to verify.
- 58 signature: string, The signature on the message.
- 59
- 60 Returns:
- 61 True if message was signed by the private key associated with the public
- 62 key that this object was constructed with.
- 63 """
- 64try:
- 65crypto.verify(self._pubkey,signature,message,'sha256')
- 66returnTrue
- 67except:
- 68returnFalse
-
72"""Construct a Verified instance from a string.
- 73
- 74 Args:
- 75 key_pem: string, public key in PEM format.
- 76 is_x509_cert: bool, True if key_pem is an X509 cert, otherwise it is
- 77 expected to be an RSA key in PEM format.
- 78
- 79 Returns:
- 80 Verifier instance.
- 81
- 82 Raises:
- 83 OpenSSL.crypto.Error if the key_pem can't be parsed.
- 84 """
- 85ifis_x509_cert:
- 86pubkey=crypto.load_certificate(crypto.FILETYPE_PEM,key_pem)
- 87else:
- 88pubkey=crypto.load_privatekey(crypto.FILETYPE_PEM,key_pem)
- 89returnOpenSSLVerifier(pubkey)
-
104"""Signs a message.
-105
-106 Args:
-107 message: string, Message to be signed.
-108
-109 Returns:
-110 string, The signature of the message for the given key.
-111 """
-112returncrypto.sign(self._key,message,'sha256')
-
157"""Verifies a message against a signature.
-158
-159 Args:
-160 message: string, The message to verify.
-161 signature: string, The signature on the message.
-162
-163 Returns:
-164 True if message was signed by the private key associated with the public
-165 key that this object was constructed with.
-166 """
-167try:
-168returnPKCS1_v1_5.new(self._pubkey).verify(
-169SHA256.new(message),signature)
-170except:
-171returnFalse
-
175"""Construct a Verified instance from a string.
-176
-177 Args:
-178 key_pem: string, public key in PEM format.
-179 is_x509_cert: bool, True if key_pem is an X509 cert, otherwise it is
-180 expected to be an RSA key in PEM format.
-181
-182 Returns:
-183 Verifier instance.
-184
-185 Raises:
-186 NotImplementedError if is_x509_cert is true.
-187 """
-188ifis_x509_cert:
-189raiseNotImplementedError(
-190'X509 certs are not supported by the PyCrypto library. '
-191'Try using PyOpenSSL if native code is an option.')
-192else:
-193pubkey=RSA.importKey(key_pem)
-194returnPyCryptoVerifier(pubkey)
-
209"""Signs a message.
-210
-211 Args:
-212 message: string, Message to be signed.
-213
-214 Returns:
-215 string, The signature of the message for the given key.
-216 """
-217returnPKCS1_v1_5.new(self._key).sign(SHA256.new(message))
-
221"""Construct a Signer instance from a string.
-222
-223 Args:
-224 key: string, private key in PEM format.
-225 password: string, password for private key file. Unused for PEM files.
-226
-227 Returns:
-228 Signer instance.
-229
-230 Raises:
-231 NotImplementedError if they key isn't in PEM format.
-232 """
-233ifkey.startswith('-----BEGIN '):
-234pkey=RSA.importKey(key)
-235else:
-236raiseNotImplementedError(
-237'PKCS12 format is not supported by the PyCrpto library. '
-238'Try converting to a "PEM" '
-239'(openssl pkcs12 -in xxxxx.p12 -nodes -nocerts > privatekey.pem) '
-240'or using PyOpenSSL if native code is an option.')
-241returnPyCryptoSigner(pkey)
-
275"""Make a signed JWT.
-276
-277 See http://self-issued.info/docs/draft-jones-json-web-token.html.
-278
-279 Args:
-280 signer: crypt.Signer, Cryptographic signer.
-281 payload: dict, Dictionary of data to convert to JSON and then sign.
-282
-283 Returns:
-284 string, The JWT for the payload.
-285 """
-286header={'typ':'JWT','alg':'RS256'}
-287
-288segments=[
-289_urlsafe_b64encode(_json_encode(header)),
-290_urlsafe_b64encode(_json_encode(payload)),
-291]
-292signing_input='.'.join(segments)
-293
-294signature=signer.sign(signing_input)
-295segments.append(_urlsafe_b64encode(signature))
-296
-297logger.debug(str(segments))
-298
-299return'.'.join(segments)
-
303"""Verify a JWT against public certs.
-304
-305 See http://self-issued.info/docs/draft-jones-json-web-token.html.
-306
-307 Args:
-308 jwt: string, A JWT.
-309 certs: dict, Dictionary where values of public keys in PEM format.
-310 audience: string, The audience, 'aud', that this JWT should contain. If
-311 None then the JWT's 'aud' parameter is not verified.
-312
-313 Returns:
-314 dict, The deserialized JSON payload in the JWT.
-315
-316 Raises:
-317 AppIdentityError if any checks are failed.
-318 """
-319segments=jwt.split('.')
-320
-321if(len(segments)!=3):
-322raiseAppIdentityError(
-323'Wrong number of segments in token: %s'%jwt)
-324signed='%s.%s'%(segments[0],segments[1])
-325
-326signature=_urlsafe_b64decode(segments[2])
-327
-328# Parse token.
-329json_body=_urlsafe_b64decode(segments[1])
-330try:
-331parsed=simplejson.loads(json_body)
-332except:
-333raiseAppIdentityError('Can\'t parse token: %s'%json_body)
-334
-335# Check signature.
-336verified=False
-337for(keyname,pem)incerts.items():
-338verifier=Verifier.from_string(pem,True)
-339if(verifier.verify(signed,signature)):
-340verified=True
-341break
-342ifnotverified:
-343raiseAppIdentityError('Invalid token signature: %s'%jwt)
-344
-345# Check creation timestamp.
-346iat=parsed.get('iat')
-347ifiatisNone:
-348raiseAppIdentityError('No iat field in token: %s'%json_body)
-349earliest=iat-CLOCK_SKEW_SECS
-350
-351# Check expiration timestamp.
-352now=long(time.time())
-353exp=parsed.get('exp')
-354ifexpisNone:
-355raiseAppIdentityError('No exp field in token: %s'%json_body)
-356ifexp>=now+MAX_TOKEN_LIFETIME_SECS:
-357raiseAppIdentityError(
-358'exp field too far in future: %s'%json_body)
-359latest=exp+CLOCK_SKEW_SECS
-360
-361ifnow<earliest:
-362raiseAppIdentityError('Token used too early, %d < %d: %s'%
-363(now,earliest,json_body))
-364ifnow>latest:
-365raiseAppIdentityError('Token used too late, %d > %d: %s'%
-366(now,latest,json_body))
-367
-368# Check audience.
-369ifaudienceisnotNone:
-370aud=parsed.get('aud')
-371ifaudisNone:
-372raiseAppIdentityError('No aud field in token: %s'%json_body)
-373ifaud!=audience:
-374raiseAppIdentityError('Wrong recipient, %s != %s: %s'%
-375(aud,audience,json_body))
-376
-377returnparsed
-
-Construct a Signer instance from a string.
-
-Args:
- key: string, private key in P12 format.
- password: string, password for the private key file.
-
-Returns:
- Signer instance.
-
-Raises:
- OpenSSL.crypto.Error if the key can't be parsed.
-
-
-Verifies a message against a signature.
-
-Args:
- message: string, The message to verify.
- signature: string, The signature on the message.
-
-Returns:
- True if message was singed by the private key associated with the public
- key that this object was constructed with.
-
-
-Construct a Verified instance from a string.
-
-Args:
- key_pem: string, public key in PEM format.
- is_x509_cert: bool, True if key_pem is an X509 cert, otherwise it is
- expected to be an RSA key in PEM format.
-
-Returns:
- Verifier instance.
-
-Raises:
- OpenSSL.crypto.Error if the key_pem can't be parsed.
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""OAuth 2.0 utilities for Django.
- 16
- 17Utilities for using OAuth 2.0 in conjunction with
- 18the Django datastore.
- 19"""
- 20
- 21__author__='jcgregorio@google.com (Joe Gregorio)'
- 22
- 23importoauth2client
- 24importbase64
- 25importpickle
- 26
- 27fromdjango.dbimportmodels
- 28fromoauth2client.clientimportStorageasBaseStorage
- 29
-
81"""Store and retrieve a single credential to and from
- 82 the datastore.
- 83
- 84 This Storage helper presumes the Credentials
- 85 have been stored as a CredenialsField
- 86 on a db model class.
- 87 """
- 88
-
90"""Constructor for Storage.
- 91
- 92 Args:
- 93 model: db.Model, model class
- 94 key_name: string, key name for the entity that has the credentials
- 95 key_value: string, key value for the entity that has the credentials
- 96 property_name: string, name of the property that is an CredentialsProperty
- 97 """
- 98self.model_class=model_class
- 99self.key_name=key_name
-100self.key_value=key_value
-101self.property_name=property_name
-
120"""Write a Credentials to the datastore.
-121
-122 Args:
-123 credentials: Credentials, the credentials to store.
-124 """
-125args={self.key_name:self.key_value}
-126entity=self.model_class(**args)
-127setattr(entity,self.property_name,credentials)
-128entity.save()
-
131"""Delete Credentials from the datastore."""
-132
-133query={self.key_name:self.key_value}
-134entities=self.model_class.objects.filter(**query).delete()
-
-Store and retrieve a single credential to and from
-the datastore.
-
-This Storage helper presumes the Credentials
-have been stored as a CredenialsField
-on a db model class.
-
-
-Constructor for Storage.
-
-Args:
- model: db.Model, model class
- key_name: string, key name for the entity that has the credentials
- key_value: string, key value for the entity that has the credentials
- property_name: string, name of the property that is an CredentialsProperty
-
-
- 1# Copyright (C) 2010 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Utilities for OAuth.
- 16
- 17Utilities for making it easier to work with OAuth 2.0
- 18credentials.
- 19"""
- 20
- 21__author__='jcgregorio@google.com (Joe Gregorio)'
- 22
- 23importos
- 24importstat
- 25importthreading
- 26
- 27fromanyjsonimportsimplejson
- 28fromclientimportStorageasBaseStorage
- 29fromclientimportCredentials
- 30
- 31
-
55"""Release the Storage lock.
- 56
- 57 Trying to release a lock that isn't held will result in a
- 58 RuntimeError.
- 59 """
- 60self._lock.release()
-
89"""Create an empty file if necessary.
- 90
- 91 This method will not initialize the file. Instead it implements a
- 92 simple version of "touch" to ensure the file has been created.
- 93 """
- 94ifnotos.path.exists(self._filename):
- 95old_umask=os.umask(0177)
- 96try:
- 97open(self._filename,'a+b').close()
- 98finally:
- 99os.umask(old_umask)
-
102"""Write Credentials to file.
-103
-104 Args:
-105 credentials: Credentials, the credentials to store.
-106
-107 Raises:
-108 CredentialsFileSymbolicLinkError if the file is a symbolic link.
-109 """
-110
-111self._create_file_if_needed()
-112self._validate_file()
-113f=open(self._filename,'wb')
-114f.write(credentials.to_json())
-115f.close()
-
-Retrieve Credential from file.
-
-Returns:
- oauth2client.client.Credentials
-
-Raises:
- CredentialsFileSymbolicLinkError if the file is a symbolic link.
-
-
-Create an empty file if necessary.
-
-This method will not initialize the file. Instead it implements a
-simple version of "touch" to ensure the file has been created.
-
-
-Write Credentials to file.
-
-Args:
- credentials: Credentials, the credentials to store.
-
-Raises:
- CredentialsFileSymbolicLinkError if the file is a symbolic link.
-
-
- 1# Copyright (C) 2012 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
-10# distributed under the License is distributed on an "AS IS" BASIS,
-11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-12# See the License for the specific language governing permissions and
-13# limitations under the License.
-14
-15"""Utilities for Google Compute Engine
-16
-17Utilities for making it easier to use OAuth 2.0 on Google Compute Engine.
-18"""
-19
-20__author__='jcgregorio@google.com (Joe Gregorio)'
-21
-22importhttplib2
-23importlogging
-24importuritemplate
-25
-26fromoauth2clientimportutil
-27fromoauth2client.anyjsonimportsimplejson
-28fromoauth2client.clientimportAccessTokenRefreshError
-29fromoauth2client.clientimportAssertionCredentials
-30
-31logger=logging.getLogger(__name__)
-32
-33# URI Template for the endpoint that returns access_tokens.
-34META=('http://metadata.google.internal/0.1/meta-data/service-accounts/'
-35'default/acquire{?scope}')
-
39"""Credentials object for Compute Engine Assertion Grants
-40
-41 This object will allow a Compute Engine instance to identify itself to
-42 Google and other OAuth 2.0 servers that can verify assertions. It can be used
-43 for the purpose of accessing data stored under an account assigned to the
-44 Compute Engine instance itself.
-45
-46 This credential does not require a flow to instantiate because it represents
-47 a two legged flow, and therefore has all of the required information to
-48 generate and refresh its own access tokens.
-49 """
-50
-51@util.positional(2)
-
53"""Constructor for AppAssertionCredentials
-54
-55 Args:
-56 scope: string or iterable of strings, scope(s) of the credentials being
-57 requested.
-58 """
-59self.scope=util.scopes_to_string(scope)
-60
-61# Assertion type is no longer used, but still in the parent class signature.
-62super(AppAssertionCredentials,self).__init__(None)
-
70"""Refreshes the access_token.
-71
-72 Skip all the storage hoops and just refresh using the API.
-73
-74 Args:
-75 http_request: callable, a callable that matches the method signature of
-76 httplib2.Http.request, used to make the refresh request.
-77
-78 Raises:
-79 AccessTokenRefreshError: When the refresh fails.
-80 """
-81uri=uritemplate.expand(META,{'scope':self.scope})
-82response,content=http_request(uri)
-83ifresponse.status==200:
-84try:
-85d=simplejson.loads(content)
-86exceptStandardError,e:
-87raiseAccessTokenRefreshError(str(e))
-88self.access_token=d['accessToken']
-89else:
-90raiseAccessTokenRefreshError(content)
-
-Credentials object for Compute Engine Assertion Grants
-
-This object will allow a Compute Engine instance to identify itself to
-Google and other OAuth 2.0 servers that can verify assertions. It can be used
-for the purpose of accessing data stored under an account assigned to the
-Compute Engine instance itself.
-
-This credential does not require a flow to instantiate because it represents
-a two legged flow, and therefore has all of the required information to
-generate and refresh its own access tokens.
-
-
-Instantiate a Credentials object from a JSON description of it. The JSON
-should have been produced by calling .to_json() on the object.
-
-Args:
- data: dict, A deserialized JSON object.
-
-Returns:
- An instance of a Credentials subclass.
-
-
-Refreshes the access_token.
-
-Skip all the storage hoops and just refresh using the API.
-
-Args:
- http_request: callable, a callable that matches the method signature of
- httplib2.Http.request, used to make the refresh request.
-
-Raises:
- AccessTokenRefreshError: When the refresh fails.
-
-
- 1# Copyright (C) 2012 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""A keyring based Storage.
- 16
- 17A Storage for Credentials that uses the keyring module.
- 18"""
- 19
- 20__author__='jcgregorio@google.com (Joe Gregorio)'
- 21
- 22importkeyring
- 23importthreading
- 24
- 25fromclientimportStorageasBaseStorage
- 26fromclientimportCredentials
- 27
- 28
-
30"""Store and retrieve a single credential to and from the keyring.
- 31
- 32 To use this module you must have the keyring module installed. See
- 33 <http://pypi.python.org/pypi/keyring/>. This is an optional module and is not
- 34 installed with oauth2client by default because it does not work on all the
- 35 platforms that oauth2client supports, such as Google App Engine.
- 36
- 37 The keyring module <http://pypi.python.org/pypi/keyring/> is a cross-platform
- 38 library for access the keyring capabilities of the local system. The user will
- 39 be prompted for their keyring password when this module is used, and the
- 40 manner in which the user is prompted will vary per platform.
- 41
- 42 Usage:
- 43 from oauth2client.keyring_storage import Storage
- 44
- 45 s = Storage('name_of_application', 'user1')
- 46 credentials = s.get()
- 47
- 48 """
- 49
-
51"""Constructor.
- 52
- 53 Args:
- 54 service_name: string, The name of the service under which the credentials
- 55 are stored.
- 56 user_name: string, The name of the user to store credentials for.
- 57 """
- 58self._service_name=service_name
- 59self._user_name=user_name
- 60self._lock=threading.Lock()
-
69"""Release the Storage lock.
- 70
- 71 Trying to release a lock that isn't held will result in a
- 72 RuntimeError.
- 73 """
- 74self._lock.release()
-
-Store and retrieve a single credential to and from the keyring.
-
-To use this module you must have the keyring module installed. See
-<http://pypi.python.org/pypi/keyring/>. This is an optional module and is not
-installed with oauth2client by default because it does not work on all the
-platforms that oauth2client supports, such as Google App Engine.
-
-The keyring module <http://pypi.python.org/pypi/keyring/> is a cross-platform
-library for access the keyring capabilities of the local system. The user will
-be prompted for their keyring password when this module is used, and the
-manner in which the user is prompted will vary per platform.
-
-Usage:
- from oauth2client.keyring_storage import Storage
-
- s = Storage('name_of_application', 'user1')
- credentials = s.get()
-
-
-Constructor.
-
-Args:
- service_name: string, The name of the service under which the credentials
- are stored.
- user_name: string, The name of the user to store credentials for.
-
-
-Locked file interface that should work on Unix and Windows pythons.
-
-This module first tries to use fcntl locking to ensure serialized access
-to a file, then falls back on a lock file if that is unavialable.
-
-Usage:
- f = LockedFile('filename', 'r+b', 'rb')
- f.open_and_lock()
- if f.is_locked():
- print 'Acquired filename with r+b mode'
- f.file_handle().write('locked data')
- else:
- print 'Aquired filename with rb mode'
- f.unlock_and_close()
-
-
- 1# Copyright 2011 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Locked file interface that should work on Unix and Windows pythons.
- 16
- 17This module first tries to use fcntl locking to ensure serialized access
- 18to a file, then falls back on a lock file if that is unavialable.
- 19
- 20Usage:
- 21 f = LockedFile('filename', 'r+b', 'rb')
- 22 f.open_and_lock()
- 23 if f.is_locked():
- 24 print 'Acquired filename with r+b mode'
- 25 f.file_handle().write('locked data')
- 26 else:
- 27 print 'Aquired filename with rb mode'
- 28 f.unlock_and_close()
- 29"""
- 30
- 31__author__='cache@google.com (David T McWherter)'
- 32
- 33importerrno
- 34importlogging
- 35importos
- 36importtime
- 37
- 38fromoauth2clientimportutil
- 39
- 40logger=logging.getLogger(__name__)
-
61"""Create an Opener.
- 62
- 63 Args:
- 64 filename: string, The pathname of the file.
- 65 mode: string, The preferred mode to access the file with.
- 66 fallback_mode: string, The mode to use if locking fails.
- 67 """
- 68self._locked=False
- 69self._filename=filename
- 70self._mode=mode
- 71self._fallback_mode=fallback_mode
- 72self._fh=None
-
87"""Open the file and lock it.
- 88
- 89 Args:
- 90 timeout: float, How long to try to lock for.
- 91 delay: float, How long to wait between retries.
- 92 """
- 93pass
-
104"""Open the file and lock it.
-105
-106 Tries to create a .lock file next to the file we're trying to open.
-107
-108 Args:
-109 timeout: float, How long to try to lock for.
-110 delay: float, How long to wait between retries.
-111
-112 Raises:
-113 AlreadyLockedException: if the lock is already acquired.
-114 IOError: if the open fails.
-115 CredentialsFileSymbolicLinkError if the file is a symbolic link.
-116 """
-117ifself._locked:
-118raiseAlreadyLockedException('File %s is already locked'%
-119self._filename)
-120self._locked=False
-121
-122validate_file(self._filename)
-123try:
-124self._fh=open(self._filename,self._mode)
-125exceptIOError,e:
-126# If we can't access with _mode, try _fallback_mode and don't lock.
-127ife.errno==errno.EACCES:
-128self._fh=open(self._filename,self._fallback_mode)
-129return
-130
-131lock_filename=self._posix_lockfile(self._filename)
-132start_time=time.time()
-133whileTrue:
-134try:
-135self._lock_fd=os.open(lock_filename,
-136os.O_CREAT|os.O_EXCL|os.O_RDWR)
-137self._locked=True
-138break
-139
-140exceptOSError,e:
-141ife.errno!=errno.EEXIST:
-142raise
-143if(time.time()-start_time)>=timeout:
-144logger.warn('Could not acquire lock %s in %s seconds'%(
-145lock_filename,timeout))
-146# Close the file and open in fallback_mode.
-147ifself._fh:
-148self._fh.close()
-149self._fh=open(self._filename,self._fallback_mode)
-150return
-151time.sleep(delay)
-
154"""Unlock a file by removing the .lock file, and close the handle."""
-155ifself._locked:
-156lock_filename=self._posix_lockfile(self._filename)
-157os.close(self._lock_fd)
-158os.unlink(lock_filename)
-159self._locked=False
-160self._lock_fd=None
-161ifself._fh:
-162self._fh.close()
-
176"""Open the file and lock it.
-177
-178 Args:
-179 timeout: float, How long to try to lock for.
-180 delay: float, How long to wait between retries
-181
-182 Raises:
-183 AlreadyLockedException: if the lock is already acquired.
-184 IOError: if the open fails.
-185 CredentialsFileSymbolicLinkError if the file is a symbolic link.
-186 """
-187ifself._locked:
-188raiseAlreadyLockedException('File %s is already locked'%
-189self._filename)
-190start_time=time.time()
-191
-192validate_file(self._filename)
-193try:
-194self._fh=open(self._filename,self._mode)
-195exceptIOError,e:
-196# If we can't access with _mode, try _fallback_mode and don't lock.
-197ife.errno==errno.EACCES:
-198self._fh=open(self._filename,self._fallback_mode)
-199return
-200
-201# We opened in _mode, try to lock the file.
-202whileTrue:
-203try:
-204fcntl.lockf(self._fh.fileno(),fcntl.LOCK_EX)
-205self._locked=True
-206return
-207exceptIOError,e:
-208# If not retrying, then just pass on the error.
-209iftimeout==0:
-210raisee
-211ife.errno!=errno.EACCES:
-212raisee
-213# We could not acquire the lock. Try again.
-214if(time.time()-start_time)>=timeout:
-215logger.warn('Could not lock %s in %s seconds'%(
-216self._filename,timeout))
-217ifself._fh:
-218self._fh.close()
-219self._fh=open(self._filename,self._fallback_mode)
-220return
-221time.sleep(delay)
-
224"""Close and unlock the file using the fcntl.lockf primitive."""
-225ifself._locked:
-226fcntl.lockf(self._fh.fileno(),fcntl.LOCK_UN)
-227self._locked=False
-228ifself._fh:
-229self._fh.close()
-
240"""Open, lock, and unlock a file using windows primitives."""
-241
-242# Error #33:
-243# 'The process cannot access the file because another process'
-244FILE_IN_USE_ERROR=33
-245
-246# Error #158:
-247# 'The segment is already unlocked.'
-248FILE_ALREADY_UNLOCKED_ERROR=158
-249
-
251"""Open the file and lock it.
-252
-253 Args:
-254 timeout: float, How long to try to lock for.
-255 delay: float, How long to wait between retries
-256
-257 Raises:
-258 AlreadyLockedException: if the lock is already acquired.
-259 IOError: if the open fails.
-260 CredentialsFileSymbolicLinkError if the file is a symbolic link.
-261 """
-262ifself._locked:
-263raiseAlreadyLockedException('File %s is already locked'%
-264self._filename)
-265start_time=time.time()
-266
-267validate_file(self._filename)
-268try:
-269self._fh=open(self._filename,self._mode)
-270exceptIOError,e:
-271# If we can't access with _mode, try _fallback_mode and don't lock.
-272ife.errno==errno.EACCES:
-273self._fh=open(self._filename,self._fallback_mode)
-274return
-275
-276# We opened in _mode, try to lock the file.
-277whileTrue:
-278try:
-279hfile=win32file._get_osfhandle(self._fh.fileno())
-280win32file.LockFileEx(
-281hfile,
-282(win32con.LOCKFILE_FAIL_IMMEDIATELY|
-283win32con.LOCKFILE_EXCLUSIVE_LOCK),0,-0x10000,
-284pywintypes.OVERLAPPED())
-285self._locked=True
-286return
-287exceptpywintypes.error,e:
-288iftimeout==0:
-289raisee
-290
-291# If the error is not that the file is already in use, raise.
-292ife[0]!=_Win32Opener.FILE_IN_USE_ERROR:
-293raise
-294
-295# We could not acquire the lock. Try again.
-296if(time.time()-start_time)>=timeout:
-297logger.warn('Could not lock %s in %s seconds'%(
-298self._filename,timeout))
-299ifself._fh:
-300self._fh.close()
-301self._fh=open(self._filename,self._fallback_mode)
-302return
-303time.sleep(delay)
-
306"""Close and unlock the file using the win32 primitive."""
-307ifself._locked:
-308try:
-309hfile=win32file._get_osfhandle(self._fh.fileno())
-310win32file.UnlockFileEx(hfile,0,-0x10000,pywintypes.OVERLAPPED())
-311exceptpywintypes.error,e:
-312ife[0]!=_Win32Opener.FILE_ALREADY_UNLOCKED_ERROR:
-313raise
-314self._locked=False
-315ifself._fh:
-316self._fh.close()
-
326"""Construct a LockedFile.
-327
-328 Args:
-329 filename: string, The path of the file to open.
-330 mode: string, The mode to try to open the file with.
-331 fallback_mode: string, The mode to use if locking fails.
-332 use_native_locking: bool, Whether or not fcntl/win32 locking is used.
-333 """
-334opener=None
-335ifnotopeneranduse_native_locking:
-336if_Win32Opener:
-337opener=_Win32Opener(filename,mode,fallback_mode)
-338if_FcntlOpener:
-339opener=_FcntlOpener(filename,mode,fallback_mode)
-340
-341ifnotopener:
-342opener=_PosixOpener(filename,mode,fallback_mode)
-343
-344self._opener=opener
-
359"""Open the file, trying to lock it.
-360
-361 Args:
-362 timeout: float, The number of seconds to try to acquire the lock.
-363 delay: float, The number of seconds to wait between retry attempts.
-364
-365 Raises:
-366 AlreadyLockedException: if the lock is already acquired.
-367 IOError: if the open fails.
-368 """
-369self._opener.open_and_lock(timeout,delay)
-
-Construct a LockedFile.
-
-Args:
- filename: string, The path of the file to open.
- mode: string, The mode to try to open the file with.
- fallback_mode: string, The mode to use if locking fails.
- use_native_locking: bool, Whether or not fcntl/win32 locking is used.
-
-
-Open the file, trying to lock it.
-
-Args:
- timeout: float, The number of seconds to try to acquire the lock.
- delay: float, The number of seconds to wait between retry attempts.
-
-Raises:
- AlreadyLockedException: if the lock is already acquired.
- IOError: if the open fails.
-
-
-Create an Opener.
-
-Args:
- filename: string, The pathname of the file.
- mode: string, The preferred mode to access the file with.
- fallback_mode: string, The mode to use if locking fails.
-
-
-Open the file and lock it.
-
-Tries to create a .lock file next to the file we're trying to open.
-
-Args:
- timeout: float, How long to try to lock for.
- delay: float, How long to wait between retries.
-
-Raises:
- AlreadyLockedException: if the lock is already acquired.
- IOError: if the open fails.
- CredentialsFileSymbolicLinkError if the file is a symbolic link.
-
-
-Multi-credential file store with lock support.
-
-This module implements a JSON credential store where multiple
-credentials can be stored in one file. That file supports locking
-both in a single process and across processes.
-
-The credential themselves are keyed off of:
-* client_id
-* user_agent
-* scope
-
-The format of the stored data is like so:
-{
- 'file_version': 1,
- 'data': [
- {
- 'key': {
- 'clientId': '<client id>',
- 'userAgent': '<user agent>',
- 'scope': '<scope>'
- },
- 'credential': {
- # JSON serialized Credentials.
- }
- }
- ]
-}
-
-
get_credential_storage_custom_string_key(filename,
- key_string,
- warn_on_readonly=True)
- Get a Storage instance for a credential using a single string as a key.
get_credential_storage_custom_key(filename,
- key_dict,
- warn_on_readonly=True)
- Get a Storage instance for a credential using a dictionary as a key.
-Get a Storage instance for a credential.
-
-Args:
- filename: The JSON file storing a set of credentials
- client_id: The client_id for the credential
- user_agent: The user agent for the credential
- scope: string or iterable of strings, Scope(s) being requested
- warn_on_readonly: if True, log a warning if the store is readonly
-
-Returns:
- An object derived from client.Storage for getting/setting the
- credential.
-
-
-Get a Storage instance for a credential using a single string as a key.
-
-Allows you to provide a string as a custom key that will be used for
-credential storage and retrieval.
-
-Args:
- filename: The JSON file storing a set of credentials
- key_string: A string to use as the key for storing this credential.
- warn_on_readonly: if True, log a warning if the store is readonly
-
-Returns:
- An object derived from client.Storage for getting/setting the
- credential.
-
-
-Get a Storage instance for a credential using a dictionary as a key.
-
-Allows you to provide a dictionary as a custom key that will be used for
-credential storage and retrieval.
-
-Args:
- filename: The JSON file storing a set of credentials
- key_dict: A dictionary to use as the key for storing this credential. There
- is no ordering of the keys in the dictionary. Logically equivalent
- dictionaries will produce equivalent storage keys.
- warn_on_readonly: if True, log a warning if the store is readonly
-
-Returns:
- An object derived from client.Storage for getting/setting the
- credential.
-
-
-Gets all the registered credential keys in the given Multistore.
-
-Args:
- filename: The JSON file storing a set of credentials
- warn_on_readonly: if True, log a warning if the store is readonly
-
-Returns:
- A list of the credential keys present in the file. They are returned as
- dictionaries that can be passed into get_credential_storage_custom_key to
- get the actual credentials.
-
-
-A helper method to initialize the multistore with proper locking.
-
-Args:
- filename: The JSON file storing a set of credentials
- warn_on_readonly: if True, log a warning if the store is readonly
-
-Returns:
- A multistore object
-
-
- 1# Copyright 2011 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Multi-credential file store with lock support.
- 16
- 17This module implements a JSON credential store where multiple
- 18credentials can be stored in one file. That file supports locking
- 19both in a single process and across processes.
- 20
- 21The credential themselves are keyed off of:
- 22* client_id
- 23* user_agent
- 24* scope
- 25
- 26The format of the stored data is like so:
- 27{
- 28 'file_version': 1,
- 29 'data': [
- 30 {
- 31 'key': {
- 32 'clientId': '<client id>',
- 33 'userAgent': '<user agent>',
- 34 'scope': '<scope>'
- 35 },
- 36 'credential': {
- 37 # JSON serialized Credentials.
- 38 }
- 39 }
- 40 ]
- 41}
- 42"""
- 43
- 44__author__='jbeda@google.com (Joe Beda)'
- 45
- 46importbase64
- 47importerrno
- 48importlogging
- 49importos
- 50importthreading
- 51
- 52fromanyjsonimportsimplejson
- 53fromoauth2client.clientimportStorageasBaseStorage
- 54fromoauth2client.clientimportCredentials
- 55fromoauth2clientimportutil
- 56fromlocked_fileimportLockedFile
- 57
- 58logger=logging.getLogger(__name__)
- 59
- 60# A dict from 'filename'->_MultiStore instances
- 61_multistores={}
- 62_multistores_lock=threading.Lock()
-
78"""Get a Storage instance for a credential.
- 79
- 80 Args:
- 81 filename: The JSON file storing a set of credentials
- 82 client_id: The client_id for the credential
- 83 user_agent: The user agent for the credential
- 84 scope: string or iterable of strings, Scope(s) being requested
- 85 warn_on_readonly: if True, log a warning if the store is readonly
- 86
- 87 Returns:
- 88 An object derived from client.Storage for getting/setting the
- 89 credential.
- 90 """
- 91# Recreate the legacy key with these specific parameters
- 92key={'clientId':client_id,'userAgent':user_agent,
- 93'scope':util.scopes_to_string(scope)}
- 94returnget_credential_storage_custom_key(
- 95filename,key,warn_on_readonly=warn_on_readonly)
-
101"""Get a Storage instance for a credential using a single string as a key.
-102
-103 Allows you to provide a string as a custom key that will be used for
-104 credential storage and retrieval.
-105
-106 Args:
-107 filename: The JSON file storing a set of credentials
-108 key_string: A string to use as the key for storing this credential.
-109 warn_on_readonly: if True, log a warning if the store is readonly
-110
-111 Returns:
-112 An object derived from client.Storage for getting/setting the
-113 credential.
-114 """
-115# Create a key dictionary that can be used
-116key_dict={'key':key_string}
-117returnget_credential_storage_custom_key(
-118filename,key_dict,warn_on_readonly=warn_on_readonly)
-
124"""Get a Storage instance for a credential using a dictionary as a key.
-125
-126 Allows you to provide a dictionary as a custom key that will be used for
-127 credential storage and retrieval.
-128
-129 Args:
-130 filename: The JSON file storing a set of credentials
-131 key_dict: A dictionary to use as the key for storing this credential. There
-132 is no ordering of the keys in the dictionary. Logically equivalent
-133 dictionaries will produce equivalent storage keys.
-134 warn_on_readonly: if True, log a warning if the store is readonly
-135
-136 Returns:
-137 An object derived from client.Storage for getting/setting the
-138 credential.
-139 """
-140multistore=_get_multistore(filename,warn_on_readonly=warn_on_readonly)
-141key=util.dict_to_tuple_key(key_dict)
-142returnmultistore._get_storage(key)
-
147"""Gets all the registered credential keys in the given Multistore.
-148
-149 Args:
-150 filename: The JSON file storing a set of credentials
-151 warn_on_readonly: if True, log a warning if the store is readonly
-152
-153 Returns:
-154 A list of the credential keys present in the file. They are returned as
-155 dictionaries that can be passed into get_credential_storage_custom_key to
-156 get the actual credentials.
-157 """
-158multistore=_get_multistore(filename,warn_on_readonly=warn_on_readonly)
-159multistore._lock()
-160try:
-161returnmultistore._get_all_credential_keys()
-162finally:
-163multistore._unlock()
-
168"""A helper method to initialize the multistore with proper locking.
-169
-170 Args:
-171 filename: The JSON file storing a set of credentials
-172 warn_on_readonly: if True, log a warning if the store is readonly
-173
-174 Returns:
-175 A multistore object
-176 """
-177filename=os.path.expanduser(filename)
-178_multistores_lock.acquire()
-179try:
-180multistore=_multistores.setdefault(
-181filename,_MultiStore(filename,warn_on_readonly=warn_on_readonly))
-182finally:
-183_multistores_lock.release()
-184returnmultistore
-
192"""Initialize the class.
-193
-194 This will create the file if necessary.
-195 """
-196self._file=LockedFile(filename,'r+b','rb')
-197self._thread_lock=threading.Lock()
-198self._read_only=False
-199self._warn_on_readonly=warn_on_readonly
-200
-201self._create_file_if_needed()
-202
-203# Cache of deserialized store. This is only valid after the
-204# _MultiStore is locked or _refresh_data_cache is called. This is
-205# of the form of:
-206#
-207# ((key, value), (key, value)...) -> OAuth2Credential
-208#
-209# If this is None, then the store hasn't been read yet.
-210self._data=None
-
227"""Release the Storage lock.
-228
-229 Trying to release a lock that isn't held will result in a
-230 RuntimeError.
-231 """
-232self._multistore._unlock()
-
235"""Retrieve credential.
-236
-237 The Storage lock must be held when this is called.
-238
-239 Returns:
-240 oauth2client.client.Credentials
-241 """
-242credential=self._multistore._get_credential(self._key)
-243ifcredential:
-244credential.set_store(self)
-245returncredential
-
248"""Write a credential.
-249
-250 The Storage lock must be held when this is called.
-251
-252 Args:
-253 credentials: Credentials, the credentials to store.
-254 """
-255self._multistore._update_credential(self._key,credentials)
-
258"""Delete a credential.
-259
-260 The Storage lock must be held when this is called.
-261
-262 Args:
-263 credentials: Credentials, the credentials to store.
-264 """
-265self._multistore._delete_credential(self._key)
-
268"""Create an empty file if necessary.
-269
-270 This method will not initialize the file. Instead it implements a
-271 simple version of "touch" to ensure the file has been created.
-272 """
-273ifnotos.path.exists(self._file.filename()):
-274old_umask=os.umask(0177)
-275try:
-276open(self._file.filename(),'a+b').close()
-277finally:
-278os.umask(old_umask)
-
281"""Lock the entire multistore."""
-282self._thread_lock.acquire()
-283self._file.open_and_lock()
-284ifnotself._file.is_locked():
-285self._read_only=True
-286ifself._warn_on_readonly:
-287logger.warn('The credentials file (%s) is not writable. Opening in '
-288'read-only mode. Any refreshed credentials will only be '
-289'valid for this run.'%self._file.filename())
-290ifos.path.getsize(self._file.filename())==0:
-291logger.debug('Initializing empty multistore file')
-292# The multistore is empty so write out an empty file.
-293self._data={}
-294self._write()
-295elifnotself._read_onlyorself._dataisNone:
-296# Only refresh the data if we are read/write or we haven't
-297# cached the data yet. If we are readonly, we assume is isn't
-298# changing out from under us and that we only have to read it
-299# once. This prevents us from whacking any new access keys that
-300# we have cached in memory but were unable to write out.
-301self._refresh_data_cache()
-
309"""Get the raw content of the multistore file.
-310
-311 The multistore must be locked when this is called.
-312
-313 Returns:
-314 The contents of the multistore decoded as JSON.
-315 """
-316assertself._thread_lock.locked()
-317self._file.file_handle().seek(0)
-318returnsimplejson.load(self._file.file_handle())
-
321"""Write a JSON serializable data structure to the multistore.
-322
-323 The multistore must be locked when this is called.
-324
-325 Args:
-326 data: The data to be serialized and written.
-327 """
-328assertself._thread_lock.locked()
-329ifself._read_only:
-330return
-331self._file.file_handle().seek(0)
-332simplejson.dump(data,self._file.file_handle(),sort_keys=True,indent=2)
-333self._file.file_handle().truncate()
-
336"""Refresh the contents of the multistore.
-337
-338 The multistore must be locked when this is called.
-339
-340 Raises:
-341 NewerCredentialStoreError: Raised when a newer client has written the
-342 store.
-343 """
-344self._data={}
-345try:
-346raw_data=self._locked_json_read()
-347exceptException:
-348logger.warn('Credential data store could not be loaded. '
-349'Will ignore and overwrite.')
-350return
-351
-352version=0
-353try:
-354version=raw_data['file_version']
-355exceptException:
-356logger.warn('Missing version for credential data store. It may be '
-357'corrupt or an old version. Overwriting.')
-358ifversion>1:
-359raiseNewerCredentialStoreError(
-360'Credential file has file_version of %d. '
-361'Only file_version of 1 is supported.'%version)
-362
-363credentials=[]
-364try:
-365credentials=raw_data['data']
-366except(TypeError,KeyError):
-367pass
-368
-369forcred_entryincredentials:
-370try:
-371(key,credential)=self._decode_credential_from_json(cred_entry)
-372self._data[key]=credential
-373except:
-374# If something goes wrong loading a credential, just ignore it
-375logger.info('Error decoding credential, skipping',exc_info=True)
-
378"""Load a credential from our JSON serialization.
-379
-380 Args:
-381 cred_entry: A dict entry from the data member of our format
-382
-383 Returns:
-384 (key, cred) where the key is the key tuple and the cred is the
-385 OAuth2Credential object.
-386 """
-387raw_key=cred_entry['key']
-388key=util.dict_to_tuple_key(raw_key)
-389credential=None
-390credential=Credentials.new_from_json(simplejson.dumps(cred_entry['credential']))
-391return(key,credential)
-
394"""Write the cached data back out.
-395
-396 The multistore must be locked.
-397 """
-398raw_data={'file_version':1}
-399raw_creds=[]
-400raw_data['data']=raw_creds
-401for(cred_key,cred)inself._data.items():
-402raw_key=dict(cred_key)
-403raw_cred=simplejson.loads(cred.to_json())
-404raw_creds.append({'key':raw_key,'credential':raw_cred})
-405self._locked_json_write(raw_data)
-
408"""Gets all the registered credential keys in the multistore.
-409
-410 Returns:
-411 A list of dictionaries corresponding to all the keys currently registered
-412 """
-413return[dict(key)forkeyinself._data.keys()]
-
416"""Get a credential from the multistore.
-417
-418 The multistore must be locked.
-419
-420 Args:
-421 key: The key used to retrieve the credential
-422
-423 Returns:
-424 The credential specified or None if not present
-425 """
-426returnself._data.get(key,None)
-
429"""Update a credential and write the multistore.
-430
-431 This must be called when the multistore is locked.
-432
-433 Args:
-434 key: The key used to retrieve the credential
-435 cred: The OAuth2Credential to update/set
-436 """
-437self._data[key]=cred
-438self._write()
-
441"""Delete a credential and write the multistore.
-442
-443 This must be called when the multistore is locked.
-444
-445 Args:
-446 key: The key used to retrieve the credential
-447 """
-448try:
-449delself._data[key]
-450exceptKeyError:
-451pass
-452self._write()
-
455"""Get a Storage object to get/set a credential.
-456
-457 This Storage is a 'view' into the multistore.
-458
-459 Args:
-460 key: The key used to retrieve the credential
-461
-462 Returns:
-463 A Storage object that can be used to get/set this cred
-464 """
-465returnself._Storage(self,key)
-
-Create an empty file if necessary.
-
-This method will not initialize the file. Instead it implements a
-simple version of "touch" to ensure the file has been created.
-
-
-Get the raw content of the multistore file.
-
-The multistore must be locked when this is called.
-
-Returns:
- The contents of the multistore decoded as JSON.
-
-
-Write a JSON serializable data structure to the multistore.
-
-The multistore must be locked when this is called.
-
-Args:
- data: The data to be serialized and written.
-
-
-Refresh the contents of the multistore.
-
-The multistore must be locked when this is called.
-
-Raises:
- NewerCredentialStoreError: Raised when a newer client has written the
- store.
-
-
-Load a credential from our JSON serialization.
-
-Args:
- cred_entry: A dict entry from the data member of our format
-
-Returns:
- (key, cred) where the key is the key tuple and the cred is the
- OAuth2Credential object.
-
-
-Gets all the registered credential keys in the multistore.
-
-Returns:
- A list of dictionaries corresponding to all the keys currently registered
-
-
-Get a credential from the multistore.
-
-The multistore must be locked.
-
-Args:
- key: The key used to retrieve the credential
-
-Returns:
- The credential specified or None if not present
-
-
-Update a credential and write the multistore.
-
-This must be called when the multistore is locked.
-
-Args:
- key: The key used to retrieve the credential
- cred: The OAuth2Credential to update/set
-
-
-Delete a credential and write the multistore.
-
-This must be called when the multistore is locked.
-
-Args:
- key: The key used to retrieve the credential
-
-
-Get a Storage object to get/set a credential.
-
-This Storage is a 'view' into the multistore.
-
-Args:
- key: The key used to retrieve the credential
-
-Returns:
- A Storage object that can be used to get/set this cred
-
-
-Core code for a command-line application.
-
-The run() function is called from your application and runs through all
-the steps to obtain credentials. It takes a Flow argument and attempts to
-open an authorization server page in the user's default web browser. The
-server asks the user to grant your application access to the user's data.
-If the user grants access, the run() function returns new credentials. The
-new credentials are also stored in the Storage argument, which updates the
-file associated with the Storage object.
-
-It presumes it is run from a command-line application and supports the
-following flags:
-
- --auth_host_name: Host name to use when running a local web server
- to handle redirects during OAuth authorization.
- (default: 'localhost')
-
- --auth_host_port: Port to use when running a local web server to handle
- redirects during OAuth authorization.;
- repeat this option to specify a list of values
- (default: '[8080, 8090]')
- (an integer)
-
- --[no]auth_local_webserver: Run a local web server to handle redirects
- during OAuth authorization.
- (default: 'true')
-
-Since it uses flags make sure to initialize the gflags module before
-calling run().
-
-Args:
- flow: Flow, an OAuth 2.0 Flow to step through.
- storage: Storage, a Storage to store the credential in.
- http: An instance of httplib2.Http.request
- or something that acts like it.
-
-Returns:
- Credentials, the obtained credential.
-
-
- 1# Copyright (C) 2013 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""This module holds the old run() function which is deprecated, the
- 16tools.run_flow() function should be used in its place."""
- 17
- 18
- 19importlogging
- 20importsocket
- 21importsys
- 22importwebbrowser
- 23
- 24importgflags
- 25
- 26fromoauth2clientimportclient
- 27fromoauth2clientimportutil
- 28fromtoolsimportClientRedirectHandler
- 29fromtoolsimportClientRedirectServer
- 30
- 31
- 32FLAGS=gflags.FLAGS
- 33
- 34gflags.DEFINE_boolean('auth_local_webserver',True,
- 35('Run a local web server to handle redirects during '
- 36'OAuth authorization.'))
- 37
- 38gflags.DEFINE_string('auth_host_name','localhost',
- 39('Host name to use when running a local web server to '
- 40'handle redirects during OAuth authorization.'))
- 41
- 42gflags.DEFINE_multi_int('auth_host_port',[8080,8090],
- 43('Port to use when running a local web server to '
- 44'handle redirects during OAuth authorization.'))
-
49"""Core code for a command-line application.
- 50
- 51 The run() function is called from your application and runs through all
- 52 the steps to obtain credentials. It takes a Flow argument and attempts to
- 53 open an authorization server page in the user's default web browser. The
- 54 server asks the user to grant your application access to the user's data.
- 55 If the user grants access, the run() function returns new credentials. The
- 56 new credentials are also stored in the Storage argument, which updates the
- 57 file associated with the Storage object.
- 58
- 59 It presumes it is run from a command-line application and supports the
- 60 following flags:
- 61
- 62 --auth_host_name: Host name to use when running a local web server
- 63 to handle redirects during OAuth authorization.
- 64 (default: 'localhost')
- 65
- 66 --auth_host_port: Port to use when running a local web server to handle
- 67 redirects during OAuth authorization.;
- 68 repeat this option to specify a list of values
- 69 (default: '[8080, 8090]')
- 70 (an integer)
- 71
- 72 --[no]auth_local_webserver: Run a local web server to handle redirects
- 73 during OAuth authorization.
- 74 (default: 'true')
- 75
- 76 Since it uses flags make sure to initialize the gflags module before
- 77 calling run().
- 78
- 79 Args:
- 80 flow: Flow, an OAuth 2.0 Flow to step through.
- 81 storage: Storage, a Storage to store the credential in.
- 82 http: An instance of httplib2.Http.request
- 83 or something that acts like it.
- 84
- 85 Returns:
- 86 Credentials, the obtained credential.
- 87 """
- 88logging.warning('This function, oauth2client.tools.run(), and the use of '
- 89'the gflags library are deprecated and will be removed in a future '
- 90'version of the library.')
- 91ifFLAGS.auth_local_webserver:
- 92success=False
- 93port_number=0
- 94forportinFLAGS.auth_host_port:
- 95port_number=port
- 96try:
- 97httpd=ClientRedirectServer((FLAGS.auth_host_name,port),
- 98ClientRedirectHandler)
- 99exceptsocket.error,e:
-100pass
-101else:
-102success=True
-103break
-104FLAGS.auth_local_webserver=success
-105ifnotsuccess:
-106print'Failed to start a local webserver listening on either port 8080'
-107print'or port 9090. Please check your firewall settings and locally'
-108print'running programs that may be blocking or using those ports.'
-109print
-110print'Falling back to --noauth_local_webserver and continuing with',
-111print'authorization.'
-112print
-113
-114ifFLAGS.auth_local_webserver:
-115oauth_callback='http://%s:%s/'%(FLAGS.auth_host_name,port_number)
-116else:
-117oauth_callback=client.OOB_CALLBACK_URN
-118flow.redirect_uri=oauth_callback
-119authorize_url=flow.step1_get_authorize_url()
-120
-121ifFLAGS.auth_local_webserver:
-122webbrowser.open(authorize_url,new=1,autoraise=True)
-123print'Your browser has been opened to visit:'
-124print
-125print' '+authorize_url
-126print
-127print'If your browser is on a different machine then exit and re-run'
-128print'this application with the command-line parameter '
-129print
-130print' --noauth_local_webserver'
-131print
-132else:
-133print'Go to the following link in your browser:'
-134print
-135print' '+authorize_url
-136print
-137
-138code=None
-139ifFLAGS.auth_local_webserver:
-140httpd.handle_request()
-141if'error'inhttpd.query_params:
-142sys.exit('Authentication request was rejected.')
-143if'code'inhttpd.query_params:
-144code=httpd.query_params['code']
-145else:
-146print'Failed to find "code" in the query parameters of the redirect.'
-147sys.exit('Try running with --noauth_local_webserver.')
-148else:
-149code=raw_input('Enter verification code: ').strip()
-150
-151try:
-152credential=flow.step2_exchange(code,http=http)
-153exceptclient.FlowExchangeError,e:
-154sys.exit('Authentication has failed: %s'%e)
-155
-156storage.put(credential)
-157credential.set_store(storage)
-158print'Authentication successful.'
-159
-160returncredential
-
-Command-line tools for authenticating via OAuth 2.0
-
-Do the OAuth 2.0 Web Server dance for a command line application. Stores the
-generated credentials in a common file that is used by other example apps in
-the same directory.
-
-
-Core code for a command-line application.
-
-The run() function is called from your application and runs through all the
-steps to obtain credentials. It takes a Flow argument and attempts to open an
-authorization server page in the user's default web browser. The server asks
-the user to grant your application access to the user's data. If the user
-grants access, the run() function returns new credentials. The new credentials
-are also stored in the Storage argument, which updates the file associated
-with the Storage object.
-
-It presumes it is run from a command-line application and supports the
-following flags:
-
- --auth_host_name: Host name to use when running a local web server
- to handle redirects during OAuth authorization.
- (default: 'localhost')
-
- --auth_host_port: Port to use when running a local web server to handle
- redirects during OAuth authorization.;
- repeat this option to specify a list of values
- (default: '[8080, 8090]')
- (an integer)
-
- --[no]auth_local_webserver: Run a local web server to handle redirects
- during OAuth authorization.
- (default: 'true')
-
-The tools module defines an ArgumentParser the already contains the flag
-definitions that run() requires. You can pass that ArgumentParser to your
-ArgumentParser constructor:
-
- parser = argparse.ArgumentParser(description=__doc__,
- formatter_class=argparse.RawDescriptionHelpFormatter,
- parents=[tools.run_parser])
- flags = parser.parse_args(argv)
-
-Args:
- flow: Flow, an OAuth 2.0 Flow to step through.
- storage: Storage, a Storage to store the credential in.
- flags: argparse.ArgumentParser, the command-line flags.
- http: An instance of httplib2.Http.request
- or something that acts like it.
-
-Returns:
- Credentials, the obtained credential.
-
-
- 1# Copyright (C) 2013 Google Inc.
- 2#
- 3# Licensed under the Apache License, Version 2.0 (the "License");
- 4# you may not use this file except in compliance with the License.
- 5# You may obtain a copy of the License at
- 6#
- 7# http://www.apache.org/licenses/LICENSE-2.0
- 8#
- 9# Unless required by applicable law or agreed to in writing, software
- 10# distributed under the License is distributed on an "AS IS" BASIS,
- 11# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 12# See the License for the specific language governing permissions and
- 13# limitations under the License.
- 14
- 15"""Command-line tools for authenticating via OAuth 2.0
- 16
- 17Do the OAuth 2.0 Web Server dance for a command line application. Stores the
- 18generated credentials in a common file that is used by other example apps in
- 19the same directory.
- 20"""
- 21
- 22__author__='jcgregorio@google.com (Joe Gregorio)'
- 23__all__=['argparser','run_flow','run','message_if_missing']
- 24
- 25
- 26importBaseHTTPServer
- 27importargparse
- 28importhttplib2
- 29importlogging
- 30importos
- 31importsocket
- 32importsys
- 33importwebbrowser
- 34
- 35fromoauth2clientimportclient
- 36fromoauth2clientimportfile
- 37fromoauth2clientimportutil
- 38
- 39try:
- 40fromurlparseimportparse_qsl
- 41exceptImportError:
- 42fromcgiimportparse_qsl
- 43
- 44_CLIENT_SECRETS_MESSAGE="""WARNING: Please configure OAuth 2.0
- 45
- 46To make this sample run you will need to populate the client_secrets.json file
- 47found at:
- 48
- 49 %s
- 50
- 51with information from the APIs Console <https://code.google.com/apis/console>.
- 52
- 53"""
- 54
- 55# run_parser is an ArgumentParser that contains command-line options expected
- 56# by tools.run(). Pass it in as part of the 'parents' argument to your own
- 57# ArgumentParser.
- 58argparser=argparse.ArgumentParser(add_help=False)
- 59argparser.add_argument('--auth_host_name',default='localhost',
- 60help='Hostname when running a local web server.')
- 61argparser.add_argument('--noauth_local_webserver',action='store_true',
- 62default=False,help='Do not run a local web server.')
- 63argparser.add_argument('--auth_host_port',default=[8080,8090],type=int,
- 64nargs='*',help='Port web server should listen on.')
- 65argparser.add_argument('--logging_level',default='ERROR',
- 66choices=['DEBUG','INFO','WARNING','ERROR',
- 67'CRITICAL'],
- 68help='Set the logging level of detail.')
-
72"""A server to handle OAuth 2.0 redirects back to localhost.
- 73
- 74 Waits for a single request and parses the query parameters
- 75 into query_params and then stops serving.
- 76 """
- 77query_params={}
-
81"""A handler for OAuth 2.0 redirects back to localhost.
- 82
- 83 Waits for a single request and parses the query parameters
- 84 into the servers query_params and then stops serving.
- 85 """
- 86
-
88"""Handle a GET request.
- 89
- 90 Parses the query parameters and prints a message
- 91 if the flow has completed. Note that we can't detect
- 92 if an error occurred.
- 93 """
- 94s.send_response(200)
- 95s.send_header("Content-type","text/html")
- 96s.end_headers()
- 97query=s.path.split('?',1)[-1]
- 98query=dict(parse_qsl(query))
- 99s.server.query_params=query
-100s.wfile.write("<html><head><title>Authentication Status</title></head>")
-101s.wfile.write("<body><p>The authentication flow has completed.</p>")
-102s.wfile.write("</body></html>")
-
111"""Core code for a command-line application.
-112
-113 The run() function is called from your application and runs through all the
-114 steps to obtain credentials. It takes a Flow argument and attempts to open an
-115 authorization server page in the user's default web browser. The server asks
-116 the user to grant your application access to the user's data. If the user
-117 grants access, the run() function returns new credentials. The new credentials
-118 are also stored in the Storage argument, which updates the file associated
-119 with the Storage object.
-120
-121 It presumes it is run from a command-line application and supports the
-122 following flags:
-123
-124 --auth_host_name: Host name to use when running a local web server
-125 to handle redirects during OAuth authorization.
-126 (default: 'localhost')
-127
-128 --auth_host_port: Port to use when running a local web server to handle
-129 redirects during OAuth authorization.;
-130 repeat this option to specify a list of values
-131 (default: '[8080, 8090]')
-132 (an integer)
-133
-134 --[no]auth_local_webserver: Run a local web server to handle redirects
-135 during OAuth authorization.
-136 (default: 'true')
-137
-138 The tools module defines an ArgumentParser the already contains the flag
-139 definitions that run() requires. You can pass that ArgumentParser to your
-140 ArgumentParser constructor:
-141
-142 parser = argparse.ArgumentParser(description=__doc__,
-143 formatter_class=argparse.RawDescriptionHelpFormatter,
-144 parents=[tools.run_parser])
-145 flags = parser.parse_args(argv)
-146
-147 Args:
-148 flow: Flow, an OAuth 2.0 Flow to step through.
-149 storage: Storage, a Storage to store the credential in.
-150 flags: argparse.ArgumentParser, the command-line flags.
-151 http: An instance of httplib2.Http.request
-152 or something that acts like it.
-153
-154 Returns:
-155 Credentials, the obtained credential.
-156 """
-157logging.getLogger().setLevel(getattr(logging,flags.logging_level))
-158ifnotflags.noauth_local_webserver:
-159success=False
-160port_number=0
-161forportinflags.auth_host_port:
-162port_number=port
-163try:
-164httpd=ClientRedirectServer((flags.auth_host_name,port),
-165ClientRedirectHandler)
-166exceptsocket.error,e:
-167pass
-168else:
-169success=True
-170break
-171flags.noauth_local_webserver=notsuccess
-172ifnotsuccess:
-173print'Failed to start a local webserver listening on either port 8080'
-174print'or port 9090. Please check your firewall settings and locally'
-175print'running programs that may be blocking or using those ports.'
-176print
-177print'Falling back to --noauth_local_webserver and continuing with',
-178print'authorization.'
-179print
-180
-181ifnotflags.noauth_local_webserver:
-182oauth_callback='http://%s:%s/'%(flags.auth_host_name,port_number)
-183else:
-184oauth_callback=client.OOB_CALLBACK_URN
-185flow.redirect_uri=oauth_callback
-186authorize_url=flow.step1_get_authorize_url()
-187
-188ifnotflags.noauth_local_webserver:
-189webbrowser.open(authorize_url,new=1,autoraise=True)
-190print'Your browser has been opened to visit:'
-191print
-192print' '+authorize_url
-193print
-194print'If your browser is on a different machine then exit and re-run this'
-195print'application with the command-line parameter '
-196print
-197print' --noauth_local_webserver'
-198print
-199else:
-200print'Go to the following link in your browser:'
-201print
-202print' '+authorize_url
-203print
-204
-205code=None
-206ifnotflags.noauth_local_webserver:
-207httpd.handle_request()
-208if'error'inhttpd.query_params:
-209sys.exit('Authentication request was rejected.')
-210if'code'inhttpd.query_params:
-211code=httpd.query_params['code']
-212else:
-213print'Failed to find "code" in the query parameters of the redirect.'
-214sys.exit('Try running with --noauth_local_webserver.')
-215else:
-216code=raw_input('Enter verification code: ').strip()
-217
-218try:
-219credential=flow.step2_exchange(code,http=http)
-220exceptclient.FlowExchangeError,e:
-221sys.exit('Authentication has failed: %s'%e)
-222
-223storage.put(credential)
-224credential.set_store(storage)
-225print'Authentication successful.'
-226
-227returncredential
-
240raiseNotImplementedError(
-241'The gflags library must be installed to use tools.run(). '
-242'Please install gflags or preferrably switch to using '
-243'tools.run_flow().')
-
-A handler for OAuth 2.0 redirects back to localhost.
-
-Waits for a single request and parses the query parameters
-into the servers query_params and then stops serving.
-
-
-Handle a GET request.
-
-Parses the query parameters and prints a message
-if the flow has completed. Note that we can't detect
-if an error occurred.
-
-
-A server to handle OAuth 2.0 redirects back to localhost.
-
-Waits for a single request and parses the query parameters
-into query_params and then stops serving.
-
-
-A decorator to declare that only the first N arguments my be positional.
-
-This decorator makes it easy to support Python 3 style key-word only
-parameters. For example, in Python 3 it is possible to write:
-
- def fn(pos1, *, kwonly1=None, kwonly1=None):
- ...
-
-All named parameters after * must be a keyword:
-
- fn(10, 'kw1', 'kw2') # Raises exception.
- fn(10, kwonly1='kw1') # Ok.
-
-Example:
- To define a function like above, do:
-
- @positional(1)
- def fn(pos1, kwonly1=None, kwonly2=None):
- ...
-
- If no default value is provided to a keyword argument, it becomes a required
- keyword argument:
-
- @positional(0)
- def fn(required_kw):
- ...
-
- This must be called with the keyword parameter:
-
- fn() # Raises exception.
- fn(10) # Raises exception.
- fn(required_kw=10) # Ok.
-
- When defining instance or class methods always remember to account for
- 'self' and 'cls':
-
- class MyClass(object):
-
- @positional(2)
- def my_method(self, pos1, kwonly1=None):
- ...
-
- @classmethod
- @positional(2)
- def my_method(cls, pos1, kwonly1=None):
- ...
-
-The positional decorator behavior is controlled by
-util.positional_parameters_enforcement, which may be set to
-POSITIONAL_EXCEPTION, POSITIONAL_WARNING or POSITIONAL_IGNORE to raise an
-exception, log a warning, or do nothing, respectively, if a declaration is
-violated.
-
-Args:
- max_positional_arguments: Maximum number of positional arguments. All
- parameters after the this index must be keyword only.
-
-Returns:
- A decorator that prevents using arguments after max_positional_args from
- being used as positional parameters.
-
-Raises:
- TypeError if a key-word only argument is provided as a positional
- parameter, but only if util.positional_parameters_enforcement is set to
- POSITIONAL_EXCEPTION.
-
-
-Converts scope value to a string.
-
-If scopes is a string then it is simply passed through. If scopes is an
-iterable then a string is returned that is all the individual scopes
-concatenated with spaces.
-
-Args:
- scopes: string or iterable of strings, the scopes.
-
-Returns:
- The scopes formatted as a single string.
-
-
-Converts a dictionary to a tuple that can be used as an immutable key.
-
-The resulting key is always sorted so that logically equivalent dictionaries
-always produce an identical tuple for a key.
-
-Args:
- dictionary: the dictionary to use as the key.
-
-Returns:
- A tuple representing the dictionary in it's naturally sorted ordering.
-
-
-Adds a query parameter to a url.
-
-Replaces the current value if it already exists in the URL.
-
-Args:
- url: string, url to add the query parameter to.
- name: string, query parameter name.
- value: string, query parameter value.
-
-Returns:
- Updated query parameter. Does not update the url if value is None.
-
-
- 1#!/usr/bin/env python
- 2#
- 3# Copyright 2010 Google Inc.
- 4#
- 5# Licensed under the Apache License, Version 2.0 (the "License");
- 6# you may not use this file except in compliance with the License.
- 7# You may obtain a copy of the License at
- 8#
- 9# http://www.apache.org/licenses/LICENSE-2.0
- 10#
- 11# Unless required by applicable law or agreed to in writing, software
- 12# distributed under the License is distributed on an "AS IS" BASIS,
- 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 14# See the License for the specific language governing permissions and
- 15# limitations under the License.
- 16#
- 17
- 18"""Common utility library."""
- 19
- 20__author__=['rafek@google.com (Rafe Kaplan)',
- 21'guido@google.com (Guido van Rossum)',
- 22]
- 23__all__=[
- 24'positional',
- 25'POSITIONAL_WARNING',
- 26'POSITIONAL_EXCEPTION',
- 27'POSITIONAL_IGNORE',
- 28]
- 29
- 30importinspect
- 31importlogging
- 32importtypes
- 33importurllib
- 34importurlparse
- 35
- 36try:
- 37fromurlparseimportparse_qsl
- 38exceptImportError:
- 39fromcgiimportparse_qsl
- 40
- 41logger=logging.getLogger(__name__)
- 42
- 43POSITIONAL_WARNING='WARNING'
- 44POSITIONAL_EXCEPTION='EXCEPTION'
- 45POSITIONAL_IGNORE='IGNORE'
- 46POSITIONAL_SET=frozenset([POSITIONAL_WARNING,POSITIONAL_EXCEPTION,
- 47POSITIONAL_IGNORE])
- 48
- 49positional_parameters_enforcement=POSITIONAL_WARNING
- 50
-
52"""A decorator to declare that only the first N arguments my be positional.
- 53
- 54 This decorator makes it easy to support Python 3 style key-word only
- 55 parameters. For example, in Python 3 it is possible to write:
- 56
- 57 def fn(pos1, *, kwonly1=None, kwonly1=None):
- 58 ...
- 59
- 60 All named parameters after * must be a keyword:
- 61
- 62 fn(10, 'kw1', 'kw2') # Raises exception.
- 63 fn(10, kwonly1='kw1') # Ok.
- 64
- 65 Example:
- 66 To define a function like above, do:
- 67
- 68 @positional(1)
- 69 def fn(pos1, kwonly1=None, kwonly2=None):
- 70 ...
- 71
- 72 If no default value is provided to a keyword argument, it becomes a required
- 73 keyword argument:
- 74
- 75 @positional(0)
- 76 def fn(required_kw):
- 77 ...
- 78
- 79 This must be called with the keyword parameter:
- 80
- 81 fn() # Raises exception.
- 82 fn(10) # Raises exception.
- 83 fn(required_kw=10) # Ok.
- 84
- 85 When defining instance or class methods always remember to account for
- 86 'self' and 'cls':
- 87
- 88 class MyClass(object):
- 89
- 90 @positional(2)
- 91 def my_method(self, pos1, kwonly1=None):
- 92 ...
- 93
- 94 @classmethod
- 95 @positional(2)
- 96 def my_method(cls, pos1, kwonly1=None):
- 97 ...
- 98
- 99 The positional decorator behavior is controlled by
-100 util.positional_parameters_enforcement, which may be set to
-101 POSITIONAL_EXCEPTION, POSITIONAL_WARNING or POSITIONAL_IGNORE to raise an
-102 exception, log a warning, or do nothing, respectively, if a declaration is
-103 violated.
-104
-105 Args:
-106 max_positional_arguments: Maximum number of positional arguments. All
-107 parameters after the this index must be keyword only.
-108
-109 Returns:
-110 A decorator that prevents using arguments after max_positional_args from
-111 being used as positional parameters.
-112
-113 Raises:
-114 TypeError if a key-word only argument is provided as a positional
-115 parameter, but only if util.positional_parameters_enforcement is set to
-116 POSITIONAL_EXCEPTION.
-117 """
-118defpositional_decorator(wrapped):
-119defpositional_wrapper(*args,**kwargs):
-120iflen(args)>max_positional_args:
-121plural_s=''
-122ifmax_positional_args!=1:
-123plural_s='s'
-124message='%s() takes at most %d positional argument%s (%d given)'%(
-125wrapped.__name__,max_positional_args,plural_s,len(args))
-126ifpositional_parameters_enforcement==POSITIONAL_EXCEPTION:
-127raiseTypeError(message)
-128elifpositional_parameters_enforcement==POSITIONAL_WARNING:
-129logger.warning(message)
-130else:# IGNORE
-131pass
-132returnwrapped(*args,**kwargs)
-
143"""Converts scope value to a string.
-144
-145 If scopes is a string then it is simply passed through. If scopes is an
-146 iterable then a string is returned that is all the individual scopes
-147 concatenated with spaces.
-148
-149 Args:
-150 scopes: string or iterable of strings, the scopes.
-151
-152 Returns:
-153 The scopes formatted as a single string.
-154 """
-155ifisinstance(scopes,types.StringTypes):
-156returnscopes
-157else:
-158return' '.join(scopes)
-
162"""Converts a dictionary to a tuple that can be used as an immutable key.
-163
-164 The resulting key is always sorted so that logically equivalent dictionaries
-165 always produce an identical tuple for a key.
-166
-167 Args:
-168 dictionary: the dictionary to use as the key.
-169
-170 Returns:
-171 A tuple representing the dictionary in it's naturally sorted ordering.
-172 """
-173returntuple(sorted(dictionary.items()))
-
177"""Adds a query parameter to a url.
-178
-179 Replaces the current value if it already exists in the URL.
-180
-181 Args:
-182 url: string, url to add the query parameter to.
-183 name: string, query parameter name.
-184 value: string, query parameter value.
-185
-186 Returns:
-187 Updated query parameter. Does not update the url if value is None.
-188 """
-189ifvalueisNone:
-190returnurl
-191else:
-192parsed=list(urlparse.urlparse(url))
-193q=dict(parse_qsl(parsed[4]))
-194q[name]=value
-195parsed[4]=urllib.urlencode(q)
-196returnurlparse.urlunparse(parsed)
-
-Generates a URL-safe token for the given user, action, time tuple.
-
-Args:
- key: secret key to use.
- user_id: the user ID of the authenticated user.
- action_id: a string identifier of the action they requested
- authorization for.
- when: the time in seconds since the epoch at which the user was
- authorized for this action. If not set the current time is used.
-
-Returns:
- A string XSRF protection token.
-
-
-Validates that the given token authorizes the user for the action.
-
-Tokens are invalid if the time of issue is too old or if the token
-does not match what generateToken outputs (i.e. the token was forged).
-
-Args:
- key: secret key to use.
- token: a string of the token generated by generateToken.
- user_id: the user ID of the authenticated user.
- action_id: a string identifier of the action they requested
- authorization for.
-
-Returns:
- A boolean - True if the user is authorized for the action, False
- otherwise.
-
-
- 1#!/usr/bin/python2.5
- 2#
- 3# Copyright 2010 the Melange authors.
- 4#
- 5# Licensed under the Apache License, Version 2.0 (the "License");
- 6# you may not use this file except in compliance with the License.
- 7# You may obtain a copy of the License at
- 8#
- 9# http://www.apache.org/licenses/LICENSE-2.0
- 10#
- 11# Unless required by applicable law or agreed to in writing, software
- 12# distributed under the License is distributed on an "AS IS" BASIS,
- 13# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- 14# See the License for the specific language governing permissions and
- 15# limitations under the License.
- 16
- 17"""Helper methods for creating & verifying XSRF tokens."""
- 18
- 19__authors__=[
- 20'"Doug Coker" <dcoker@google.com>',
- 21'"Joe Gregorio" <jcgregorio@google.com>',
- 22]
- 23
- 24
- 25importbase64
- 26importhmac
- 27importos# for urandom
- 28importtime
- 29
- 30fromoauth2clientimportutil
- 31
- 32
- 33# Delimiter character
- 34DELIMITER=':'
- 35
- 36# 1 hour in seconds
- 37DEFAULT_TIMEOUT_SECS=1*60*60
-
41"""Generates a URL-safe token for the given user, action, time tuple.
- 42
- 43 Args:
- 44 key: secret key to use.
- 45 user_id: the user ID of the authenticated user.
- 46 action_id: a string identifier of the action they requested
- 47 authorization for.
- 48 when: the time in seconds since the epoch at which the user was
- 49 authorized for this action. If not set the current time is used.
- 50
- 51 Returns:
- 52 A string XSRF protection token.
- 53 """
- 54when=whenorint(time.time())
- 55digester=hmac.new(key)
- 56digester.update(str(user_id))
- 57digester.update(DELIMITER)
- 58digester.update(action_id)
- 59digester.update(DELIMITER)
- 60digester.update(str(when))
- 61digest=digester.digest()
- 62
- 63token=base64.urlsafe_b64encode('%s%s%d'%(digest,
- 64DELIMITER,
- 65when))
- 66returntoken
-
71"""Validates that the given token authorizes the user for the action.
- 72
- 73 Tokens are invalid if the time of issue is too old or if the token
- 74 does not match what generateToken outputs (i.e. the token was forged).
- 75
- 76 Args:
- 77 key: secret key to use.
- 78 token: a string of the token generated by generateToken.
- 79 user_id: the user ID of the authenticated user.
- 80 action_id: a string identifier of the action they requested
- 81 authorization for.
- 82
- 83 Returns:
- 84 A boolean - True if the user is authorized for the action, False
- 85 otherwise.
- 86 """
- 87ifnottoken:
- 88returnFalse
- 89try:
- 90decoded=base64.urlsafe_b64decode(str(token))
- 91token_time=long(decoded.split(DELIMITER)[-1])
- 92except(TypeError,ValueError):
- 93returnFalse
- 94ifcurrent_timeisNone:
- 95current_time=time.time()
- 96# If the token is too old it's not valid.
- 97ifcurrent_time-token_time>DEFAULT_TIMEOUT_SECS:
- 98returnFalse
- 99
-100# The given token should match the generated one with the same time.
-101expected_token=generate_token(key,user_id,action_id=action_id,
-102when=token_time)
-103iflen(token)!=len(expected_token):
-104returnFalse
-105
-106# Perform constant time comparison to avoid timing attacks
-107different=0
-108forx,yinzip(token,expected_token):
-109different|=ord(x)^ord(y)
-110ifdifferent:
-111returnFalse
-112
-113returnTrue
-
When javascript is enabled, this page will redirect URLs of
-the form redirect.html#dotted.name to the
-documentation for the object with the given fully-qualified
-dotted name.
- apiclient apiclient.channel apiclient.discovery apiclient.errors apiclient.http apiclient.mimeparse apiclient.model apiclient.sample_tools apiclient.schema oauth2client oauth2client.anyjson oauth2client.appengine oauth2client.client oauth2client.clientsecrets oauth2client.crypt oauth2client.django_orm oauth2client.file oauth2client.gce oauth2client.keyring_storage oauth2client.locked_file oauth2client.multistore_file oauth2client.old_run oauth2client.tools oauth2client.util oauth2client.xsrfutil
- [hide private]
-
-
-
-
diff --git a/docs/epy/uml_class_diagram_for_apiclien.gif b/docs/epy/uml_class_diagram_for_apiclien.gif
deleted file mode 100644
index 6e70617..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_10.gif b/docs/epy/uml_class_diagram_for_apiclien_10.gif
deleted file mode 100644
index e939751..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_10.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_11.gif b/docs/epy/uml_class_diagram_for_apiclien_11.gif
deleted file mode 100644
index 21f5e2d..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_11.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_12.gif b/docs/epy/uml_class_diagram_for_apiclien_12.gif
deleted file mode 100644
index 90589bb..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_12.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_13.gif b/docs/epy/uml_class_diagram_for_apiclien_13.gif
deleted file mode 100644
index 3781ebc..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_13.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_14.gif b/docs/epy/uml_class_diagram_for_apiclien_14.gif
deleted file mode 100644
index 4b2c56a..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_14.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_15.gif b/docs/epy/uml_class_diagram_for_apiclien_15.gif
deleted file mode 100644
index 627c6ff..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_15.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_16.gif b/docs/epy/uml_class_diagram_for_apiclien_16.gif
deleted file mode 100644
index 53a2609..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_16.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_17.gif b/docs/epy/uml_class_diagram_for_apiclien_17.gif
deleted file mode 100644
index 3d74ce8..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_17.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_18.gif b/docs/epy/uml_class_diagram_for_apiclien_18.gif
deleted file mode 100644
index e2df6e6..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_18.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_19.gif b/docs/epy/uml_class_diagram_for_apiclien_19.gif
deleted file mode 100644
index b91bbc4..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_19.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_2.gif b/docs/epy/uml_class_diagram_for_apiclien_2.gif
deleted file mode 100644
index f239baa..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_2.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_20.gif b/docs/epy/uml_class_diagram_for_apiclien_20.gif
deleted file mode 100644
index 4fe8e19..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_20.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_21.gif b/docs/epy/uml_class_diagram_for_apiclien_21.gif
deleted file mode 100644
index 2e8778b..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_21.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_22.gif b/docs/epy/uml_class_diagram_for_apiclien_22.gif
deleted file mode 100644
index f59e838..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_22.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_23.gif b/docs/epy/uml_class_diagram_for_apiclien_23.gif
deleted file mode 100644
index c99b292..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_23.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_24.gif b/docs/epy/uml_class_diagram_for_apiclien_24.gif
deleted file mode 100644
index 5fd734a..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_24.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_25.gif b/docs/epy/uml_class_diagram_for_apiclien_25.gif
deleted file mode 100644
index ca1ac7d..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_25.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_26.gif b/docs/epy/uml_class_diagram_for_apiclien_26.gif
deleted file mode 100644
index 3f933cf..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_26.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_27.gif b/docs/epy/uml_class_diagram_for_apiclien_27.gif
deleted file mode 100644
index 6b041be..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_27.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_28.gif b/docs/epy/uml_class_diagram_for_apiclien_28.gif
deleted file mode 100644
index 691facc..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_28.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_29.gif b/docs/epy/uml_class_diagram_for_apiclien_29.gif
deleted file mode 100644
index d9e0ba3..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_29.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_3.gif b/docs/epy/uml_class_diagram_for_apiclien_3.gif
deleted file mode 100644
index c3253b8..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_3.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_30.gif b/docs/epy/uml_class_diagram_for_apiclien_30.gif
deleted file mode 100644
index f720c1f..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_30.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_31.gif b/docs/epy/uml_class_diagram_for_apiclien_31.gif
deleted file mode 100644
index 0002c5a..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_31.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_32.gif b/docs/epy/uml_class_diagram_for_apiclien_32.gif
deleted file mode 100644
index 17d2253..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_32.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_33.gif b/docs/epy/uml_class_diagram_for_apiclien_33.gif
deleted file mode 100644
index fa04806..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_33.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_34.gif b/docs/epy/uml_class_diagram_for_apiclien_34.gif
deleted file mode 100644
index 709db46..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_34.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_35.gif b/docs/epy/uml_class_diagram_for_apiclien_35.gif
deleted file mode 100644
index ebb71d8..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_35.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_36.gif b/docs/epy/uml_class_diagram_for_apiclien_36.gif
deleted file mode 100644
index f234668..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_36.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_37.gif b/docs/epy/uml_class_diagram_for_apiclien_37.gif
deleted file mode 100644
index 4e5624b..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_37.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_38.gif b/docs/epy/uml_class_diagram_for_apiclien_38.gif
deleted file mode 100644
index d272edf..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_38.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_39.gif b/docs/epy/uml_class_diagram_for_apiclien_39.gif
deleted file mode 100644
index d7f7874..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_39.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_4.gif b/docs/epy/uml_class_diagram_for_apiclien_4.gif
deleted file mode 100644
index 5334b74..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_4.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_40.gif b/docs/epy/uml_class_diagram_for_apiclien_40.gif
deleted file mode 100644
index cb15403..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_40.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_5.gif b/docs/epy/uml_class_diagram_for_apiclien_5.gif
deleted file mode 100644
index df177ab..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_5.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_6.gif b/docs/epy/uml_class_diagram_for_apiclien_6.gif
deleted file mode 100644
index 44c7655..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_6.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_7.gif b/docs/epy/uml_class_diagram_for_apiclien_7.gif
deleted file mode 100644
index 357c6b4..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_7.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_8.gif b/docs/epy/uml_class_diagram_for_apiclien_8.gif
deleted file mode 100644
index 7d63380..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_8.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_apiclien_9.gif b/docs/epy/uml_class_diagram_for_apiclien_9.gif
deleted file mode 100644
index 6e9e6f0..0000000
Binary files a/docs/epy/uml_class_diagram_for_apiclien_9.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_google_a.gif b/docs/epy/uml_class_diagram_for_google_a.gif
deleted file mode 100644
index 61bee15..0000000
Binary files a/docs/epy/uml_class_diagram_for_google_a.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl.gif b/docs/epy/uml_class_diagram_for_oauth2cl.gif
deleted file mode 100644
index 83e5132..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_10.gif b/docs/epy/uml_class_diagram_for_oauth2cl_10.gif
deleted file mode 100644
index 802ec04..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_10.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_11.gif b/docs/epy/uml_class_diagram_for_oauth2cl_11.gif
deleted file mode 100644
index 1299f7a..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_11.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_12.gif b/docs/epy/uml_class_diagram_for_oauth2cl_12.gif
deleted file mode 100644
index 8f425ce..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_12.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_13.gif b/docs/epy/uml_class_diagram_for_oauth2cl_13.gif
deleted file mode 100644
index 6557931..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_13.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_14.gif b/docs/epy/uml_class_diagram_for_oauth2cl_14.gif
deleted file mode 100644
index c59dd4e..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_14.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_15.gif b/docs/epy/uml_class_diagram_for_oauth2cl_15.gif
deleted file mode 100644
index 7fed067..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_15.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_16.gif b/docs/epy/uml_class_diagram_for_oauth2cl_16.gif
deleted file mode 100644
index bf8ab19..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_16.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_17.gif b/docs/epy/uml_class_diagram_for_oauth2cl_17.gif
deleted file mode 100644
index b30a0a1..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_17.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_18.gif b/docs/epy/uml_class_diagram_for_oauth2cl_18.gif
deleted file mode 100644
index 7a1f6c3..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_18.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_19.gif b/docs/epy/uml_class_diagram_for_oauth2cl_19.gif
deleted file mode 100644
index 0b024d8..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_19.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_2.gif b/docs/epy/uml_class_diagram_for_oauth2cl_2.gif
deleted file mode 100644
index 527215c..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_2.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_20.gif b/docs/epy/uml_class_diagram_for_oauth2cl_20.gif
deleted file mode 100644
index 44c7655..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_20.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_21.gif b/docs/epy/uml_class_diagram_for_oauth2cl_21.gif
deleted file mode 100644
index 8aaa082..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_21.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_22.gif b/docs/epy/uml_class_diagram_for_oauth2cl_22.gif
deleted file mode 100644
index 21fa0f0..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_22.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_23.gif b/docs/epy/uml_class_diagram_for_oauth2cl_23.gif
deleted file mode 100644
index ebcfe18..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_23.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_24.gif b/docs/epy/uml_class_diagram_for_oauth2cl_24.gif
deleted file mode 100644
index a58a54b..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_24.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_25.gif b/docs/epy/uml_class_diagram_for_oauth2cl_25.gif
deleted file mode 100644
index ecc212d..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_25.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_26.gif b/docs/epy/uml_class_diagram_for_oauth2cl_26.gif
deleted file mode 100644
index aeb6016..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_26.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_27.gif b/docs/epy/uml_class_diagram_for_oauth2cl_27.gif
deleted file mode 100644
index 4e971a6..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_27.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_28.gif b/docs/epy/uml_class_diagram_for_oauth2cl_28.gif
deleted file mode 100644
index a9a321d..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_28.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_29.gif b/docs/epy/uml_class_diagram_for_oauth2cl_29.gif
deleted file mode 100644
index 786b702..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_29.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_3.gif b/docs/epy/uml_class_diagram_for_oauth2cl_3.gif
deleted file mode 100644
index 4079d8f..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_3.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_30.gif b/docs/epy/uml_class_diagram_for_oauth2cl_30.gif
deleted file mode 100644
index e906953..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_30.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_31.gif b/docs/epy/uml_class_diagram_for_oauth2cl_31.gif
deleted file mode 100644
index 617edc9..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_31.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_32.gif b/docs/epy/uml_class_diagram_for_oauth2cl_32.gif
deleted file mode 100644
index 44c7655..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_32.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_33.gif b/docs/epy/uml_class_diagram_for_oauth2cl_33.gif
deleted file mode 100644
index b741aff..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_33.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_34.gif b/docs/epy/uml_class_diagram_for_oauth2cl_34.gif
deleted file mode 100644
index 2480b84..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_34.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_35.gif b/docs/epy/uml_class_diagram_for_oauth2cl_35.gif
deleted file mode 100644
index 72370b3..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_35.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_36.gif b/docs/epy/uml_class_diagram_for_oauth2cl_36.gif
deleted file mode 100644
index 6d3d4e9..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_36.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_37.gif b/docs/epy/uml_class_diagram_for_oauth2cl_37.gif
deleted file mode 100644
index e0c1c7b..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_37.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_38.gif b/docs/epy/uml_class_diagram_for_oauth2cl_38.gif
deleted file mode 100644
index 580ca56..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_38.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_39.gif b/docs/epy/uml_class_diagram_for_oauth2cl_39.gif
deleted file mode 100644
index 1e5b5ad..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_39.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_4.gif b/docs/epy/uml_class_diagram_for_oauth2cl_4.gif
deleted file mode 100644
index bc14161..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_4.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_40.gif b/docs/epy/uml_class_diagram_for_oauth2cl_40.gif
deleted file mode 100644
index 83e5132..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_40.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_41.gif b/docs/epy/uml_class_diagram_for_oauth2cl_41.gif
deleted file mode 100644
index 02701a4..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_41.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_42.gif b/docs/epy/uml_class_diagram_for_oauth2cl_42.gif
deleted file mode 100644
index ea38d09..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_42.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_43.gif b/docs/epy/uml_class_diagram_for_oauth2cl_43.gif
deleted file mode 100644
index 580ca56..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_43.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_44.gif b/docs/epy/uml_class_diagram_for_oauth2cl_44.gif
deleted file mode 100644
index 7224f51..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_44.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_45.gif b/docs/epy/uml_class_diagram_for_oauth2cl_45.gif
deleted file mode 100644
index 3fa7a13..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_45.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_46.gif b/docs/epy/uml_class_diagram_for_oauth2cl_46.gif
deleted file mode 100644
index 511b513..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_46.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_47.gif b/docs/epy/uml_class_diagram_for_oauth2cl_47.gif
deleted file mode 100644
index 44c7655..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_47.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_48.gif b/docs/epy/uml_class_diagram_for_oauth2cl_48.gif
deleted file mode 100644
index 63f5114..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_48.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_49.gif b/docs/epy/uml_class_diagram_for_oauth2cl_49.gif
deleted file mode 100644
index be1beb7..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_49.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_5.gif b/docs/epy/uml_class_diagram_for_oauth2cl_5.gif
deleted file mode 100644
index 3d0bf47..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_5.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_50.gif b/docs/epy/uml_class_diagram_for_oauth2cl_50.gif
deleted file mode 100644
index 20bac77..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_50.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_51.gif b/docs/epy/uml_class_diagram_for_oauth2cl_51.gif
deleted file mode 100644
index 3bf8117..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_51.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_52.gif b/docs/epy/uml_class_diagram_for_oauth2cl_52.gif
deleted file mode 100644
index 2b8aaa7..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_52.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_6.gif b/docs/epy/uml_class_diagram_for_oauth2cl_6.gif
deleted file mode 100644
index f348239..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_6.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_7.gif b/docs/epy/uml_class_diagram_for_oauth2cl_7.gif
deleted file mode 100644
index 328de4f..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_7.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_8.gif b/docs/epy/uml_class_diagram_for_oauth2cl_8.gif
deleted file mode 100644
index 7f5b8ff..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_8.gif and /dev/null differ
diff --git a/docs/epy/uml_class_diagram_for_oauth2cl_9.gif b/docs/epy/uml_class_diagram_for_oauth2cl_9.gif
deleted file mode 100644
index 5226fb9..0000000
Binary files a/docs/epy/uml_class_diagram_for_oauth2cl_9.gif and /dev/null differ
diff --git a/expandsymlinks.py b/expandsymlinks.py
index 50967ae..30933d9 100644
--- a/expandsymlinks.py
+++ b/expandsymlinks.py
@@ -29,7 +29,7 @@ IGNORE = set(['.hg', 'httplib2', 'oauth2', 'simplejson', 'static'])
# In addition to the above files also ignore these files and directories when
# copying over samples into the snapshot.
-IGNORE_IN_SAMPLES = set(['apiclient', 'oauth2client', 'uritemplate'])
+IGNORE_IN_SAMPLES = set(['googleapiclient', 'oauth2client', 'uritemplate'])
parser = argparse.ArgumentParser(description=__doc__)
diff --git a/apiclient/__init__.py b/googleapiclient/__init__.py
similarity index 100%
rename from apiclient/__init__.py
rename to googleapiclient/__init__.py
diff --git a/apiclient/channel.py b/googleapiclient/channel.py
similarity index 99%
rename from apiclient/channel.py
rename to googleapiclient/channel.py
index 61a7ec4..265273e 100644
--- a/apiclient/channel.py
+++ b/googleapiclient/channel.py
@@ -59,7 +59,7 @@ Example of unsubscribing.
import datetime
import uuid
-from apiclient import errors
+from googleapiclient import errors
from oauth2client import util
diff --git a/apiclient/discovery.py b/googleapiclient/discovery.py
similarity index 97%
rename from apiclient/discovery.py
rename to googleapiclient/discovery.py
index 4c6cb60..1ed9921 100644
--- a/apiclient/discovery.py
+++ b/googleapiclient/discovery.py
@@ -49,19 +49,19 @@ import mimeparse
import uritemplate
# Local imports
-from apiclient.errors import HttpError
-from apiclient.errors import InvalidJsonError
-from apiclient.errors import MediaUploadSizeError
-from apiclient.errors import UnacceptableMimeTypeError
-from apiclient.errors import UnknownApiNameOrVersion
-from apiclient.errors import UnknownFileType
-from apiclient.http import HttpRequest
-from apiclient.http import MediaFileUpload
-from apiclient.http import MediaUpload
-from apiclient.model import JsonModel
-from apiclient.model import MediaModel
-from apiclient.model import RawModel
-from apiclient.schema import Schemas
+from googleapiclient.errors import HttpError
+from googleapiclient.errors import InvalidJsonError
+from googleapiclient.errors import MediaUploadSizeError
+from googleapiclient.errors import UnacceptableMimeTypeError
+from googleapiclient.errors import UnknownApiNameOrVersion
+from googleapiclient.errors import UnknownFileType
+from googleapiclient.http import HttpRequest
+from googleapiclient.http import MediaFileUpload
+from googleapiclient.http import MediaUpload
+from googleapiclient.model import JsonModel
+from googleapiclient.model import MediaModel
+from googleapiclient.model import RawModel
+from googleapiclient.schema import Schemas
from oauth2client.anyjson import simplejson
from oauth2client.util import _add_query_parameter
from oauth2client.util import positional
@@ -163,8 +163,8 @@ def build(serviceName,
document for that service.
developerKey: string, key obtained from
https://code.google.com/apis/console.
- model: apiclient.Model, converts to and from the wire format.
- requestBuilder: apiclient.http.HttpRequest, encapsulator for an HTTP
+ model: googleapiclient.Model, converts to and from the wire format.
+ requestBuilder: googleapiclient.http.HttpRequest, encapsulator for an HTTP
request.
Returns:
@@ -832,9 +832,9 @@ class Resource(object):
http: httplib2.Http, Object to make http requests with.
baseUrl: string, base URL for the API. All requests are relative to this
URI.
- model: apiclient.Model, converts to and from the wire format.
+ model: googleapiclient.Model, converts to and from the wire format.
requestBuilder: class or callable that instantiates an
- apiclient.HttpRequest object.
+ googleapiclient.HttpRequest object.
developerKey: string, key obtained from
https://code.google.com/apis/console
resourceDesc: object, section of deserialized discovery document that
diff --git a/apiclient/errors.py b/googleapiclient/errors.py
similarity index 100%
rename from apiclient/errors.py
rename to googleapiclient/errors.py
diff --git a/apiclient/http.py b/googleapiclient/http.py
similarity index 98%
rename from apiclient/http.py
rename to googleapiclient/http.py
index f518d87..2b65348 100644
--- a/apiclient/http.py
+++ b/googleapiclient/http.py
@@ -497,7 +497,7 @@ class MediaIoBaseDownload(object):
Args:
fd: io.Base or file object, The stream in which to write the downloaded
bytes.
- request: apiclient.http.HttpRequest, the media request to perform in
+ request: googleapiclient.http.HttpRequest, the media request to perform in
chunks.
chunksize: int, File will be downloaded in chunks of this many bytes.
"""
@@ -529,7 +529,7 @@ class MediaIoBaseDownload(object):
downloaded.
Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
+ googleapiclient.errors.HttpError if the response was not a 2xx.
httplib2.HttpLib2Error if a transport error has occured.
"""
headers = {
@@ -676,7 +676,7 @@ class HttpRequest(object):
by the postproc.
Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
+ googleapiclient.errors.HttpError if the response was not a 2xx.
httplib2.HttpLib2Error if a transport error has occured.
"""
if http is None:
@@ -771,7 +771,7 @@ class HttpRequest(object):
The body will be None until the resumable media is fully uploaded.
Raises:
- apiclient.errors.HttpError if the response was not a 2xx.
+ googleapiclient.errors.HttpError if the response was not a 2xx.
httplib2.HttpLib2Error if a transport error has occured.
"""
if http is None:
@@ -885,7 +885,7 @@ class HttpRequest(object):
The body will be None until the resumable media is fully uploaded.
Raises:
- apiclient.errors.HttpError if the response was not a 2xx or a 308.
+ googleapiclient.errors.HttpError if the response was not a 2xx or a 308.
"""
if resp.status in [200, 201]:
self._in_error_state = False
@@ -936,7 +936,7 @@ class BatchHttpRequest(object):
"""Batches multiple HttpRequest objects into a single HTTP request.
Example:
- from apiclient.http import BatchHttpRequest
+ from googleapiclient.http import BatchHttpRequest
def list_animals(request_id, response, exception):
\"\"\"Do something with the animals list response.\"\"\"
@@ -973,7 +973,7 @@ class BatchHttpRequest(object):
callback: callable, A callback to be called for each response, of the
form callback(id, response, exception). The first parameter is the
request id, and the second is the deserialized response object. The
- third is an apiclient.errors.HttpError exception object if an HTTP error
+ third is an googleapiclient.errors.HttpError exception object if an HTTP error
occurred while processing the request, or None if no error occurred.
batch_uri: string, URI to send batch requests to.
"""
@@ -1178,7 +1178,7 @@ class BatchHttpRequest(object):
callback: callable, A callback to be called for this response, of the
form callback(id, response, exception). The first parameter is the
request id, and the second is the deserialized response object. The
- third is an apiclient.errors.HttpError exception object if an HTTP error
+ third is an googleapiclient.errors.HttpError exception object if an HTTP error
occurred while processing the request, or None if no errors occurred.
request_id: string, A unique id for the request. The id will be passed to
the callback with the response.
@@ -1211,7 +1211,7 @@ class BatchHttpRequest(object):
Raises:
httplib2.HttpLib2Error if a transport error has occured.
- apiclient.errors.BatchError if the response is the wrong format.
+ googleapiclient.errors.BatchError if the response is the wrong format.
"""
message = MIMEMultipart('mixed')
# Message should not write out it's own headers.
@@ -1275,7 +1275,7 @@ class BatchHttpRequest(object):
Raises:
httplib2.HttpLib2Error if a transport error has occured.
- apiclient.errors.BatchError if the response is the wrong format.
+ googleapiclient.errors.BatchError if the response is the wrong format.
"""
# If http is not supplied use the first valid one given in the requests.
@@ -1381,7 +1381,7 @@ class RequestMockBuilder(object):
'plus.activities.get': (None, response),
}
)
- apiclient.discovery.build("plus", "v1", requestBuilder=requestBuilder)
+ googleapiclient.discovery.build("plus", "v1", requestBuilder=requestBuilder)
Methods that you do not supply a response for will return a
200 OK with an empty string as the response content or raise an excpetion
diff --git a/apiclient/mimeparse.py b/googleapiclient/mimeparse.py
similarity index 100%
rename from apiclient/mimeparse.py
rename to googleapiclient/mimeparse.py
diff --git a/apiclient/model.py b/googleapiclient/model.py
similarity index 98%
rename from apiclient/model.py
rename to googleapiclient/model.py
index 4c03a46..566a233 100644
--- a/apiclient/model.py
+++ b/googleapiclient/model.py
@@ -27,7 +27,7 @@ __author__ = 'jcgregorio@google.com (Joe Gregorio)'
import logging
import urllib
-from apiclient import __version__
+from googleapiclient import __version__
from errors import HttpError
from oauth2client.anyjson import simplejson
@@ -77,7 +77,7 @@ class Model(object):
The body de-serialized as a Python object.
Raises:
- apiclient.errors.HttpError if a non 2xx response is received.
+ googleapiclient.errors.HttpError if a non 2xx response is received.
"""
_abstract()
@@ -193,7 +193,7 @@ class BaseModel(Model):
The body de-serialized as a Python object.
Raises:
- apiclient.errors.HttpError if a non 2xx response is received.
+ googleapiclient.errors.HttpError if a non 2xx response is received.
"""
self._log_response(resp, content)
# Error handling is TBD, for example, do we retry
diff --git a/apiclient/sample_tools.py b/googleapiclient/sample_tools.py
similarity index 98%
rename from apiclient/sample_tools.py
rename to googleapiclient/sample_tools.py
index ba6d754..09f9057 100644
--- a/apiclient/sample_tools.py
+++ b/googleapiclient/sample_tools.py
@@ -25,7 +25,7 @@ import argparse
import httplib2
import os
-from apiclient import discovery
+from googleapiclient import discovery
from oauth2client import client
from oauth2client import file
from oauth2client import tools
diff --git a/apiclient/schema.py b/googleapiclient/schema.py
similarity index 100%
rename from apiclient/schema.py
rename to googleapiclient/schema.py
diff --git a/oauth2client/client.py b/oauth2client/client.py
index 4e8e616..99873e2 100644
--- a/oauth2client/client.py
+++ b/oauth2client/client.py
@@ -220,7 +220,7 @@ class Credentials(object):
m = __import__(module)
except ImportError:
# In case there's an object from the old package structure, update it
- module = module.replace('.apiclient', '')
+ module = module.replace('.googleapiclient', '')
m = __import__(module)
m = __import__(module, fromlist=module.split('.')[:-1])
diff --git a/samples-index.py b/samples-index.py
deleted file mode 100644
index a39364a..0000000
--- a/samples-index.py
+++ /dev/null
@@ -1,246 +0,0 @@
-#!/usr/bin/python
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Build wiki page with a list of all samples.
-
-The information for the wiki page is built from data found in all the README
-files in the samples. The format of the README file is:
-
-
- Description is everything up to the first blank line.
-
- api: plus (Used to look up the long name in discovery).
- keywords: appengine (such as appengine, oauth2, cmdline)
-
- The rest of the file is ignored when it comes to building the index.
-"""
-
-import httplib2
-import itertools
-import json
-import os
-import re
-
-BASE_HG_URI = ('http://code.google.com/p/google-api-python-client/source/'
- 'browse/#hg')
-
-http = httplib2.Http('.cache')
-r, c = http.request('https://www.googleapis.com/discovery/v1/apis')
-if r.status != 200:
- raise ValueError('Received non-200 response when retrieving Discovery.')
-
-# Dictionary mapping api names to their discovery description.
-DIRECTORY = {}
-for item in json.loads(c)['items']:
- if item['preferred']:
- DIRECTORY[item['name']] = item
-
-# A list of valid keywords. Should not be taken as complete, add to
-# this list as needed.
-KEYWORDS = {
- 'appengine': 'Google App Engine',
- 'oauth2': 'OAuth 2.0',
- 'cmdline': 'Command-line',
- 'django': 'Django',
- 'threading': 'Threading',
- 'pagination': 'Pagination',
- 'media': 'Media Upload and Download'
- }
-
-
-def get_lines(name, lines):
- """Return lines that begin with name.
-
- Lines are expected to look like:
-
- name: space separated values
-
- Args:
- name: string, parameter name.
- lines: iterable of string, lines in the file.
-
- Returns:
- List of values in the lines that match.
- """
- retval = []
- matches = itertools.ifilter(lambda x: x.startswith(name + ':'), lines)
- for line in matches:
- retval.extend(line[len(name)+1:].split())
- return retval
-
-
-def wiki_escape(s):
- """Detect WikiSyntax (i.e. InterCaps, a.k.a. CamelCase) and escape it."""
- ret = []
- for word in s.split():
- if re.match(r'[A-Z]+[a-z]+[A-Z]', word):
- word = '!%s' % word
- ret.append(word)
- return ' '.join(ret)
-
-
-def context_from_sample(api, keywords, dirname, desc, uri):
- """Return info for expanding a sample into a template.
-
- Args:
- api: string, name of api.
- keywords: list of string, list of keywords for the given api.
- dirname: string, directory name of the sample.
- desc: string, long description of the sample.
- uri: string, uri of the sample code if provided in the README.
-
- Returns:
- A dictionary of values useful for template expansion.
- """
- if uri is None:
- uri = BASE_HG_URI + dirname.replace('/', '%2F')
- else:
- uri = ''.join(uri)
- if api is None:
- return None
- else:
- entry = DIRECTORY[api]
- context = {
- 'api': api,
- 'version': entry['version'],
- 'api_name': wiki_escape(entry.get('title', entry.get('description'))),
- 'api_desc': wiki_escape(entry['description']),
- 'api_icon': entry['icons']['x32'],
- 'keywords': keywords,
- 'dir': dirname,
- 'uri': uri,
- 'desc': wiki_escape(desc),
- }
- return context
-
-
-def keyword_context_from_sample(keywords, dirname, desc, uri):
- """Return info for expanding a sample into a template.
-
- Sample may not be about a specific api.
-
- Args:
- keywords: list of string, list of keywords for the given api.
- dirname: string, directory name of the sample.
- desc: string, long description of the sample.
- uri: string, uri of the sample code if provided in the README.
-
- Returns:
- A dictionary of values useful for template expansion.
- """
- if uri is None:
- uri = BASE_HG_URI + dirname.replace('/', '%2F')
- else:
- uri = ''.join(uri)
- context = {
- 'keywords': keywords,
- 'dir': dirname,
- 'uri': uri,
- 'desc': wiki_escape(desc),
- }
- return context
-
-
-def scan_readme_files(dirname):
- """Scans all subdirs of dirname for README files.
-
- Args:
- dirname: string, name of directory to walk.
-
- Returns:
- (samples, keyword_set): list of information about all samples, the union
- of all keywords found.
- """
- samples = []
- keyword_set = set()
-
- for root, dirs, files in os.walk(dirname):
- if 'README' in files:
- filename = os.path.join(root, 'README')
- with open(filename, 'r') as f:
- content = f.read()
- lines = content.splitlines()
- desc = ' '.join(itertools.takewhile(lambda x: x, lines))
- api = get_lines('api', lines)
- keywords = get_lines('keywords', lines)
- uri = get_lines('uri', lines)
- if not uri:
- uri = None
-
- for k in keywords:
- if k not in KEYWORDS:
- raise ValueError(
- '%s is not a valid keyword in file %s' % (k, filename))
- keyword_set.update(keywords)
- if not api:
- api = [None]
- samples.append((api[0], keywords, root[1:], desc, uri))
-
- samples.sort()
-
- return samples, keyword_set
-
-
-def main():
- # Get all the information we need out of the README files in the samples.
- samples, keyword_set = scan_readme_files('./samples')
-
- # Now build a wiki page with all that information. Accumulate all the
- # information as string to be concatenated when were done.
- page = ['\n= Samples By API =\n']
-
- # All the samples, grouped by API.
- current_api = None
- for api, keywords, dirname, desc, uri in samples:
- context = context_from_sample(api, keywords, dirname, desc, uri)
- if context is None:
- continue
- if current_api != api:
- page.append("""
-=== %(api_icon)s %(api_name)s ===
-
-%(api_desc)s
-
-Documentation for the %(api_name)s in [https://google-api-client-libraries.appspot.com/documentation/%(api)s/%(version)s/python/latest/ PyDoc]
-
-""" % context)
- current_api = api
-
- page.append('|| [%(uri)s %(dir)s] || %(desc)s ||\n' % context)
-
- # Now group the samples by keywords.
- for keyword, keyword_name in KEYWORDS.iteritems():
- if keyword not in keyword_set:
- continue
- page.append('\n= %s Samples =\n\n' % keyword_name)
- page.append('
\n')
- for _, keywords, dirname, desc, uri in samples:
- context = keyword_context_from_sample(keywords, dirname, desc, uri)
- if keyword not in keywords:
- continue
- page.append("""
-
-
-
diff --git a/samples/appengine/index.yaml b/samples/appengine/index.yaml
deleted file mode 100644
index a3b9e05..0000000
--- a/samples/appengine/index.yaml
+++ /dev/null
@@ -1,11 +0,0 @@
-indexes:
-
-# AUTOGENERATED
-
-# This index.yaml is automatically updated whenever the dev_appserver
-# detects that a new type of query is run. If you want to manage the
-# index.yaml file manually, remove the above marker line (the line
-# saying "# AUTOGENERATED"). If you want to manage some indexes
-# manually, move them above the marker line. The index.yaml file is
-# automatically uploaded to the admin console when you next deploy
-# your application using appcfg.py.
diff --git a/samples/appengine/main.py b/samples/appengine/main.py
deleted file mode 100644
index 0255cd3..0000000
--- a/samples/appengine/main.py
+++ /dev/null
@@ -1,110 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2007 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-"""Starting template for Google App Engine applications.
-
-Use this project as a starting point if you are just beginning to build a Google
-App Engine project. Remember to download the OAuth 2.0 client secrets which can
-be obtained from the Developer Console
-and save them as 'client_secrets.json' in the project directory.
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-
-import httplib2
-import logging
-import os
-import pickle
-
-from apiclient import discovery
-from oauth2client import appengine
-from oauth2client import client
-from google.appengine.api import memcache
-
-import webapp2
-import jinja2
-
-
-JINJA_ENVIRONMENT = jinja2.Environment(
- loader=jinja2.FileSystemLoader(os.path.dirname(__file__)),
- autoescape=True,
- extensions=['jinja2.ext.autoescape'])
-
-# CLIENT_SECRETS, name of a file containing the OAuth 2.0 information for this
-# application, including client_id and client_secret, which are found
-# on the API Access tab on the Google APIs
-# Console
-CLIENT_SECRETS = os.path.join(os.path.dirname(__file__), 'client_secrets.json')
-
-# Helpful message to display in the browser if the CLIENT_SECRETS file
-# is missing.
-MISSING_CLIENT_SECRETS_MESSAGE = """
-
Warning: Please configure OAuth 2.0
-
-To make this sample run you will need to populate the client_secrets.json file
-found at:
-
-
-
diff --git a/samples/audit/README b/samples/audit/README
deleted file mode 100644
index 5fcb803..0000000
--- a/samples/audit/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Prints the activities for a domain using the Audit API.
-
-api: audit
-keywords: cmdline
diff --git a/samples/audit/audit.py b/samples/audit/audit.py
deleted file mode 100644
index eb43b40..0000000
--- a/samples/audit/audit.py
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2011 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for Audit API.
-
-Command-line application that retrieves events through the Audit API.
-This works only for Google Apps for Business, Education, and ISP accounts.
-It can not be used for the basic Google Apps product.
-
-Usage:
- $ python audit.py
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python audit.py --help
-
-To get detailed log output run:
-
- $ python audit.py --logging_level=DEBUG
-"""
-
-__author__ = 'rahulpaul@google.com (Rahul Paul)'
-
-import pprint
-import sys
-
-from oauth2client import client
-from apiclient import sample_tools
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'audit', 'v1', __doc__, __file__,
- scope='https://www.googleapis.com/auth/apps/reporting/audit.readonly')
-
- service = build('audit', 'v1', http=http)
-
- try:
- activities = service.activities()
-
- # Retrieve the first two activities
- print 'Retrieving the first 2 activities...'
- activity_list = activities.list(
- applicationId='207535951991', customerId='C01rv1wm7', maxResults='2',
- actorEmail='admin@enterprise-audit-clientlib.com').execute()
- pprint.pprint(activity_list)
-
- # Now retrieve the next 2 events
- match = re.search('(?<=continuationToken=).+$', activity_list['next'])
- if match is not None:
- next_token = match.group(0)
-
- print '\nRetrieving the next 2 activities...'
- activity_list = activities.list(
- applicationId='207535951991', customerId='C01rv1wm7',
- maxResults='2', actorEmail='admin@enterprise-audit-clientlib.com',
- continuationToken=next_token).execute()
- pprint.pprint(activity_list)
-
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run'
- 'the application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
-
diff --git a/samples/audit/client_secrets.json b/samples/audit/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/audit/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/blogger/README b/samples/blogger/README
deleted file mode 100644
index 3c6dda5..0000000
--- a/samples/blogger/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Retrieve the list of blogs and their posts for a user.
-
-api: blogger
-keywords: cmdline
diff --git a/samples/blogger/blogger.py b/samples/blogger/blogger.py
deleted file mode 100644
index 035f5cd..0000000
--- a/samples/blogger/blogger.py
+++ /dev/null
@@ -1,82 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for Blogger.
-
-Command-line application that retrieves the users blogs and posts.
-
-Usage:
- $ python blogger.py
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python blogger.py --help
-
-To get detailed log output run:
-
- $ python blogger.py --logging_level=DEBUG
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import sys
-
-from oauth2client import client
-from apiclient import sample_tools
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'plus', 'v1', __doc__, __file__,
- scope='https://www.googleapis.com/auth/blogger')
-
- service = build('blogger', 'v2', http=http)
-
- try:
-
- users = service.users()
-
- # Retrieve this user's profile information
- thisuser = users.get(userId='self').execute(http=http)
- print 'This user\'s display name is: %s' % thisuser['displayName']
-
- # Retrieve the list of Blogs this user has write privileges on
- thisusersblogs = users.blogs().list(userId='self').execute()
- for blog in thisusersblogs['items']:
- print 'The blog named \'%s\' is at: %s' % (blog['name'], blog['url'])
-
- posts = service.posts()
-
- # List the posts for each blog this user has
- for blog in thisusersblogs['items']:
- print 'The posts for %s:' % blog['name']
- request = posts.list(blogId=blog['id'])
- while request != None:
- posts_doc = request.execute(http=http)
- if 'items' in posts_doc and not (posts_doc['items'] is None):
- for post in posts_doc['items']:
- print ' %s (%s)' % (post['title'], post['url'])
- request = posts.list_next(request, posts_doc)
-
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run'
- 'the application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/blogger/client_secrets.json b/samples/blogger/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/blogger/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/coordinate/README b/samples/coordinate/README
deleted file mode 100644
index 69a1e63..0000000
--- a/samples/coordinate/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Demonstrates how to use the Google Coordinate API.
-
-api: coordinate
-keywords: cmdline
\ No newline at end of file
diff --git a/samples/coordinate/client_secrets.json b/samples/coordinate/client_secrets.json
deleted file mode 100644
index a797bf4..0000000
--- a/samples/coordinate/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
\ No newline at end of file
diff --git a/samples/coordinate/coordinate.py b/samples/coordinate/coordinate.py
deleted file mode 100644
index 289a2c8..0000000
--- a/samples/coordinate/coordinate.py
+++ /dev/null
@@ -1,100 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2012 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for Google Coordinate.
-
-Pulls a list of jobs, creates a job and marks a job complete for a given
-Coordinate team. Client IDs for installed applications are created in the
-Google API Console. See the documentation for more information:
-
- https://developers.google.com/console/help/#WhatIsKey
-
-Usage:
- $ python coordinate.py -t teamId
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python coordinate.py --help
-
-To get detailed log output run:
-
- $ python coordinate.py -t teamId --logging_level=DEBUG
-"""
-
-__author__ = 'zachn@google.com (Zach Newell)'
-
-import argparse
-import pprint
-import sys
-
-from oauth2client import client
-from apiclient import sample_tools
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('teamId', help='Coordinate Team ID')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'coordinate', 'v1', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/coordinate')
-
- service = build('coordinate', 'v1', http=http)
-
- try:
- # List all the jobs for a team
- jobs_result = service.jobs().list(teamId=FLAGS.teamId).execute(http=http)
-
- print('List of Jobs:')
- pprint.pprint(jobs_result)
-
- # Multiline note
- note = """
- These are notes...
- on different lines
- """
-
- # Insert a job and store the results
- insert_result = service.jobs().insert(body='',
- title='Google Campus',
- teamId=flags.teamId,
- address='1600 Amphitheatre Parkway Mountain View, CA 94043',
- lat='37.422120',
- lng='122.084429',
- assignee=None,
- note=note).execute()
-
- pprint.pprint(insert_result)
-
- # Close the job
- update_result = service.jobs().update(body='',
- teamId=flags.teamId,
- jobId=insert_result['id'],
- progress='COMPLETED').execute()
-
- pprint.pprint(update_result)
-
- except AccessTokenRefreshError, e:
- print ('The credentials have been revoked or expired, please re-run'
- 'the application to re-authorize')
-
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/customsearch/README b/samples/customsearch/README
deleted file mode 100644
index 144f598..0000000
--- a/samples/customsearch/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Search from the command-line.
-
-api: customsearch
-keywords: cmdline
diff --git a/samples/customsearch/main.py b/samples/customsearch/main.py
deleted file mode 100644
index d7b6ac5..0000000
--- a/samples/customsearch/main.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line example for Custom Search.
-
-Command-line application that does a search.
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import pprint
-
-from apiclient.discovery import build
-
-
-def main():
- # Build a service object for interacting with the API. Visit
- # the Google APIs Console
- # to get an API key for your own application.
- service = build("customsearch", "v1",
- developerKey="AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0")
-
- res = service.cse().list(
- q='lectures',
- cx='017576662512468239146:omuauf_lfve',
- ).execute()
- pprint.pprint(res)
-
-if __name__ == '__main__':
- main()
diff --git a/samples/dfareporting/README b/samples/dfareporting/README
deleted file mode 100644
index ca8f9e9..0000000
--- a/samples/dfareporting/README
+++ /dev/null
@@ -1,5 +0,0 @@
-A collection of command-line samples for the DFA Reporting REST API.
-
-api: dfareporting
-keywords: cmdline
-author: Jonathon Imperiosi (jimper@google.com)
\ No newline at end of file
diff --git a/samples/dfareporting/client_secrets.json b/samples/dfareporting/client_secrets.json
deleted file mode 100644
index f9cf7ff..0000000
--- a/samples/dfareporting/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "installed": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
\ No newline at end of file
diff --git a/samples/dfareporting/create_report.py b/samples/dfareporting/create_report.py
deleted file mode 100644
index f2c301f..0000000
--- a/samples/dfareporting/create_report.py
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to create a report.
-
-Tags: reports.insert
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to create a report for')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
-
- try:
- # Create a new report resource to insert
- report = {
- 'name': 'Example Standard Report',
- 'type': 'STANDARD',
- 'criteria': {
- 'dateRange': {'relativeDateRange': 'YESTERDAY'},
- 'dimensions': [{'name': 'dfa:campaign'}],
- 'metricNames': ['dfa:clicks']
- }
- }
-
- # Construct the request.
- request = service.reports().insert(profileId=profile_id, body=report)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/delete_report.py b/samples/dfareporting/delete_report.py
deleted file mode 100644
index 8d518a6..0000000
--- a/samples/dfareporting/delete_report.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to delete a report.
-
-Tags: reports.delete
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to delete a report for')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to delete')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Construct the request.
- request = service.reports().delete(profileId=profile_id, reportId=report_id)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/download_file.py b/samples/dfareporting/download_file.py
deleted file mode 100644
index af331f5..0000000
--- a/samples/dfareporting/download_file.py
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to download a file.
-
-Tags: files.get
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to get a file for')
-argparser.add_argument('file_id', type=int,
- help='The ID of the file to get')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- report_id = flags.report_id
- file_id = flags.file_id
-
- try:
- # Construct the request.
- request = service.files().get_media(reportId=report_id, fileId=file_id)
-
- # Execute request and print the file contents
- print request.execute()
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_all_dimension_values.py b/samples/dfareporting/get_all_dimension_values.py
deleted file mode 100644
index 78d4f9c..0000000
--- a/samples/dfareporting/get_all_dimension_values.py
+++ /dev/null
@@ -1,72 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get all dimension values for a dimension.
-
-Tags: dimensionValues.query
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to get a report for')
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
-
- try:
- # Create the dimension to query
- dimension = {
- 'dimensionName': 'dfa:advertiser',
- 'startDate': '2013-01-01',
- 'endDate': '2013-12-31'
- }
-
- # Construct the request.
- request = service.dimensionValues().query(profileId=profile_id,
- body=dimension)
-
- while request is not None:
- # Execute request and print response.
- response = request.execute()
- pprint.pprint(response)
-
- nextPageToken = response.get('nextPageToken')
-
- if nextPageToken and nextPageToken != '0':
- request = service.dimensionValues().query_next(request, response)
- else:
- request = None
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/dfareporting/get_all_files.py b/samples/dfareporting/get_all_files.py
deleted file mode 100644
index ca08698..0000000
--- a/samples/dfareporting/get_all_files.py
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a list of all the files for a profile.
-
-Tags: files.list
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to use')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
-
- try:
- # Construct a get request for the specified profile.
- request = service.files().list(profileId=profile_id, maxResults=10)
-
- while request is not None:
- # Execute request and print response.
- response = request.execute()
- pprint.pprint(response)
-
- nextPageToken = response.get('nextPageToken')
-
- if nextPageToken:
- request = service.files().list_next(request, response)
- else:
- request = None
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/dfareporting/get_all_report_files.py b/samples/dfareporting/get_all_report_files.py
deleted file mode 100644
index 9e27fed..0000000
--- a/samples/dfareporting/get_all_report_files.py
+++ /dev/null
@@ -1,69 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a list of all the files for a report.
-
-Tags: reports.files.list
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to use')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to list files for')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Construct a get request for the specified report.
- request = service.reports().files().list(profileId=profile_id,
- reportId=report_id)
-
- while request is not None:
- # Execute request and print response.
- response = request.execute()
- pprint.pprint(response)
-
- nextPageToken = response.get('nextPageToken')
-
- if nextPageToken:
- request = service.reports().files().list_next(request, response)
- else:
- request = None
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_all_reports.py b/samples/dfareporting/get_all_reports.py
deleted file mode 100644
index 901b3a1..0000000
--- a/samples/dfareporting/get_all_reports.py
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a list of all reports.
-
-Tags: reports.list
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to list reports for')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
-
- try:
- # Construct the request.
- request = service.reports().list(profileId=profile_id)
-
- while request is not None:
- # Execute request and print response.
- response = request.execute()
- pprint.pprint(response)
-
- nextPageToken = response.get('nextPageToken')
-
- if nextPageToken:
- request = service.reports().list_next(request, response)
- else:
- request = None
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_all_userprofiles.py b/samples/dfareporting/get_all_userprofiles.py
deleted file mode 100644
index 0be6258..0000000
--- a/samples/dfareporting/get_all_userprofiles.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a list of all user profiles.
-
-Tags: userProfiles.list
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__,
- scope='https://www.googleapis.com/auth/dfareporting')
-
- try:
- # Construct the request.
- request = service.userProfiles().list()
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_compatible_fields.py b/samples/dfareporting/get_compatible_fields.py
deleted file mode 100644
index 6fa77ce..0000000
--- a/samples/dfareporting/get_compatible_fields.py
+++ /dev/null
@@ -1,62 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get the compatible fields for a report.
-
-Tags: reports.compatibleFields.query
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to use')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to get compatible fields for')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Retrieve the specified report resource
- report = service.reports().get(profileId=profile_id,
- reportId=report_id).execute()
-
- # Execute request and print response.
- request = service.reports().compatibleFields().query(profileId=profile_id,
- body=report)
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_report.py b/samples/dfareporting/get_report.py
deleted file mode 100644
index dbcde4e..0000000
--- a/samples/dfareporting/get_report.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a report.
-
-Tags: reports.delete
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to get a report for')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to get')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Construct the request.
- request = service.reports().get(profileId=profile_id, reportId=report_id)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_report_file.py b/samples/dfareporting/get_report_file.py
deleted file mode 100644
index ad3ba8a..0000000
--- a/samples/dfareporting/get_report_file.py
+++ /dev/null
@@ -1,64 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a file for a report.
-
-Tags: reports.files.get
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to use')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to get a file for')
-argparser.add_argument('file_id', type=int,
- help='The ID of the file to get')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
- file_id = flags.file_id
-
- try:
- # Construct a get request for the specified report.
- request = service.reports().files().get(fileId=file_id,
- profileId=profile_id,
- reportId=report_id)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/get_userprofile.py b/samples/dfareporting/get_userprofile.py
deleted file mode 100644
index 391dd93..0000000
--- a/samples/dfareporting/get_userprofile.py
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to get a user profile.
-
-Tags: userProfiles.get
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to get a report for')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
-
- try:
- # Construct the request.
- request = service.userProfiles().get(profileId=profile_id)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/patch_report.py b/samples/dfareporting/patch_report.py
deleted file mode 100644
index 2098984..0000000
--- a/samples/dfareporting/patch_report.py
+++ /dev/null
@@ -1,67 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to patch a standard report.
-
-Tags: reports.patch
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to patch a report for')
-argparser.add_argument('report_id', type=int,
- help='The ID of the standard report to patch')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Create a report resource with the fields to patch
- report = {
- 'criteria': {
- 'dateRange': {'relativeDateRange': 'YESTERDAY'}
- }
- }
-
- # Construct the request.
- request = service.reports().patch(profileId=profile_id, reportId=report_id,
- body=report)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/run_report.py b/samples/dfareporting/run_report.py
deleted file mode 100644
index 2e12435..0000000
--- a/samples/dfareporting/run_report.py
+++ /dev/null
@@ -1,59 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to run a report.
-
-Tags: reports.run
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to use')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to run')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Construct a get request for the specified report.
- request = service.reports().run(profileId=profile_id, reportId=report_id)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/dfareporting/update_report.py b/samples/dfareporting/update_report.py
deleted file mode 100644
index c0aef95..0000000
--- a/samples/dfareporting/update_report.py
+++ /dev/null
@@ -1,76 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""This example illustrates how to update a report.
-
-Tags: reports.update
-"""
-
-__author__ = ('jimper@google.com (Jonathon Imperiosi)')
-
-import argparse
-import pprint
-import sys
-
-from apiclient import sample_tools
-from oauth2client import client
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('profile_id', type=int,
- help='The ID of the profile to update a report for')
-argparser.add_argument('report_id', type=int,
- help='The ID of the report to update')
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'dfareporting', 'v1.3', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/dfareporting')
-
- profile_id = flags.profile_id
- report_id = flags.report_id
-
- try:
- # Construct a get request for the specified report.
- request = service.reports().get(profileId=profile_id, reportId=report_id)
-
- # Execute request
- response = request.execute()
-
- # Create a report resource with the fields to update
- report = {
- 'accountId': response['accountId'],
- 'id': response['id'],
- 'lastModifiedTime': response['lastModifiedTime'],
- 'name': 'Example Standard Report (Updated)',
- 'ownerProfileId': response['ownerProfileId'],
- 'type': response['type']
- }
-
- # Create the update request
- request = service.reports().update(profileId=profile_id,
- reportId=report_id, body=report)
-
- # Execute request and print response.
- pprint.pprint(request.execute())
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run the '
- 'application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
\ No newline at end of file
diff --git a/samples/django_sample/README b/samples/django_sample/README
deleted file mode 100644
index 3aaeda8..0000000
--- a/samples/django_sample/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Sample app demonstrating using oauth2client and the Google+ API from Django.
-
-api: plus
-keywords: oauth2 django
diff --git a/samples/django_sample/__init__.py b/samples/django_sample/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/samples/django_sample/client_secrets.json b/samples/django_sample/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/django_sample/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/django_sample/manage.py b/samples/django_sample/manage.py
deleted file mode 100755
index 0b932da..0000000
--- a/samples/django_sample/manage.py
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/usr/bin/python
-from django.core.management import execute_manager
-try:
- import settings # Assumed to be in the same directory.
-except ImportError:
- import sys
- sys.stderr.write("""Error: Can't find the file 'settings.py' in the
-directory containing %r. It appears you've customized things. You'll
-have to run django-admin.py, passing it your settings module.
-(If the file settings.py does indeed exist, it's causing an ImportError
-somehow.)\n""" % __file__)
- sys.exit(1)
-
-if __name__ == "__main__":
- execute_manager(settings)
diff --git a/samples/django_sample/plus/__init__.py b/samples/django_sample/plus/__init__.py
deleted file mode 100644
index e69de29..0000000
diff --git a/samples/django_sample/plus/models.py b/samples/django_sample/plus/models.py
deleted file mode 100644
index 890b278..0000000
--- a/samples/django_sample/plus/models.py
+++ /dev/null
@@ -1,21 +0,0 @@
-import pickle
-import base64
-
-from django.contrib import admin
-from django.contrib.auth.models import User
-from django.db import models
-
-from oauth2client.django_orm import FlowField
-from oauth2client.django_orm import CredentialsField
-
-
-class CredentialsModel(models.Model):
- id = models.ForeignKey(User, primary_key=True)
- credential = CredentialsField()
-
-
-class CredentialsAdmin(admin.ModelAdmin):
- pass
-
-
-admin.site.register(CredentialsModel, CredentialsAdmin)
diff --git a/samples/django_sample/plus/tests.py b/samples/django_sample/plus/tests.py
deleted file mode 100644
index 927cadf..0000000
--- a/samples/django_sample/plus/tests.py
+++ /dev/null
@@ -1,24 +0,0 @@
-"""
-This file demonstrates two different styles of tests (one doctest and one
-unittest). These will both pass when you run "manage.py test".
-
-Replace these with more appropriate tests for your application.
-"""
-
-from django.test import TestCase
-
-
-class SimpleTest(TestCase):
-
- def test_basic_addition(self):
- """
- Tests that 1 + 1 always equals 2.
- """
- self.failUnlessEqual(1 + 1, 2)
-
-__test__ = {"doctest": """
-Another way to test that 1 + 1 is equal to 2.
-
->>> 1 + 1 == 2
-True
-"""}
diff --git a/samples/django_sample/plus/views.py b/samples/django_sample/plus/views.py
deleted file mode 100644
index f273b8d..0000000
--- a/samples/django_sample/plus/views.py
+++ /dev/null
@@ -1,61 +0,0 @@
-import os
-import logging
-import httplib2
-
-from apiclient.discovery import build
-from django.contrib.auth.decorators import login_required
-from django.core.urlresolvers import reverse
-from django.http import HttpResponse
-from django.http import HttpResponseBadRequest
-from django.http import HttpResponseRedirect
-from django.shortcuts import render_to_response
-from django_sample.plus.models import CredentialsModel
-from django_sample import settings
-from oauth2client import xsrfutil
-from oauth2client.client import flow_from_clientsecrets
-from oauth2client.django_orm import Storage
-
-# CLIENT_SECRETS, name of a file containing the OAuth 2.0 information for this
-# application, including client_id and client_secret, which are found
-# on the API Access tab on the Google APIs
-# Console
-CLIENT_SECRETS = os.path.join(os.path.dirname(__file__), '..', 'client_secrets.json')
-
-FLOW = flow_from_clientsecrets(
- CLIENT_SECRETS,
- scope='https://www.googleapis.com/auth/plus.me',
- redirect_uri='http://localhost:8000/oauth2callback')
-
-
-@login_required
-def index(request):
- storage = Storage(CredentialsModel, 'id', request.user, 'credential')
- credential = storage.get()
- if credential is None or credential.invalid == True:
- FLOW.params['state'] = xsrfutil.generate_token(settings.SECRET_KEY,
- request.user)
- authorize_url = FLOW.step1_get_authorize_url()
- return HttpResponseRedirect(authorize_url)
- else:
- http = httplib2.Http()
- http = credential.authorize(http)
- service = build("plus", "v1", http=http)
- activities = service.activities()
- activitylist = activities.list(collection='public',
- userId='me').execute()
- logging.info(activitylist)
-
- return render_to_response('plus/welcome.html', {
- 'activitylist': activitylist,
- })
-
-
-@login_required
-def auth_return(request):
- if not xsrfutil.validate_token(settings.SECRET_KEY, request.REQUEST['state'],
- request.user):
- return HttpResponseBadRequest()
- credential = FLOW.step2_exchange(request.REQUEST)
- storage = Storage(CredentialsModel, 'id', request.user, 'credential')
- storage.put(credential)
- return HttpResponseRedirect("/")
diff --git a/samples/django_sample/settings.py b/samples/django_sample/settings.py
deleted file mode 100644
index ceb4b29..0000000
--- a/samples/django_sample/settings.py
+++ /dev/null
@@ -1,83 +0,0 @@
-# Django settings for django_sample project.
-import os
-
-DEBUG = True
-TEMPLATE_DEBUG = DEBUG
-
-ADMINS = (
- # ('Your Name', 'your_email@domain.com'),
-)
-
-MANAGERS = ADMINS
-
-DATABASES = {
- 'default': {
- 'ENGINE': 'django.db.backends.sqlite3',
- 'NAME': 'mydatabase'
- }
- }
-
-# Local time zone for this installation. Choices can be found here:
-# http://en.wikipedia.org/wiki/List_of_tz_zones_by_name
-# although not all choices may be available on all operating systems.
-# If running in a Windows environment this must be set to the same as your
-# system time zone.
-TIME_ZONE = 'America/New_York'
-
-# Language code for this installation. All choices can be found here:
-# http://www.i18nguy.com/unicode/language-identifiers.html
-LANGUAGE_CODE = 'en-us'
-
-SITE_ID = 1
-
-# If you set this to False, Django will make some optimizations so as not
-# to load the internationalization machinery.
-USE_I18N = True
-
-# Absolute path to the directory that holds media.
-# Example: "/home/media/media.lawrence.com/"
-MEDIA_ROOT = ''
-
-# URL that handles the media served from MEDIA_ROOT. Make sure to use a
-# trailing slash if there is a path component (optional in other cases).
-# Examples: "http://media.lawrence.com", "http://example.com/media/"
-MEDIA_URL = ''
-
-# URL prefix for admin media -- CSS, JavaScript and images. Make sure to use a
-# trailing slash.
-# Examples: "http://foo.com/media/", "/media/".
-ADMIN_MEDIA_PREFIX = '/media/'
-
-# Make this unique, and don't share it with anybody.
-SECRET_KEY = '_=9hq-$t_uv1ckf&s!y2$9g$1dm*6p1cl%*!^mg=7gr)!zj32d'
-
-# List of callables that know how to import templates from various sources.
-TEMPLATE_LOADERS = (
- 'django.template.loaders.filesystem.Loader',
- 'django.template.loaders.app_directories.Loader',
-)
-
-MIDDLEWARE_CLASSES = (
- 'django.middleware.common.CommonMiddleware',
- 'django.contrib.sessions.middleware.SessionMiddleware',
- 'django.contrib.auth.middleware.AuthenticationMiddleware',
- 'django.middleware.csrf.CsrfViewMiddleware',
-)
-
-ROOT_URLCONF = 'django_sample.urls'
-
-TEMPLATE_DIRS = (
- # Put strings here, like "/home/html/django_templates"
- # Always use forward slashes, even on Windows.
- # Don't forget to use absolute paths, not relative paths.
- os.path.join(os.path.dirname(__file__), 'templates')
-)
-
-INSTALLED_APPS = (
- 'django.contrib.admin',
- 'django.contrib.auth',
- 'django.contrib.contenttypes',
- 'django.contrib.sessions',
- 'django.contrib.sites',
- 'django_sample.plus'
-)
diff --git a/samples/django_sample/static/go.png b/samples/django_sample/static/go.png
deleted file mode 100644
index e5aacda..0000000
Binary files a/samples/django_sample/static/go.png and /dev/null differ
diff --git a/samples/django_sample/templates/plus/login.html b/samples/django_sample/templates/plus/login.html
deleted file mode 100644
index 28a64f1..0000000
--- a/samples/django_sample/templates/plus/login.html
+++ /dev/null
@@ -1,23 +0,0 @@
-{% block content %}
-
-{% if form.errors %}
-
Your username and password didn't match. Please try again.
-
-
diff --git a/samples/django_sample/urls.py b/samples/django_sample/urls.py
deleted file mode 100644
index 4c67ff2..0000000
--- a/samples/django_sample/urls.py
+++ /dev/null
@@ -1,25 +0,0 @@
-import os
-from django.conf.urls.defaults import *
-
-# Uncomment the next two lines to enable the admin:
-from django.contrib import admin
-admin.autodiscover()
-
-urlpatterns = patterns('',
- # Example:
- (r'^$', 'django_sample.plus.views.index'),
- (r'^oauth2callback', 'django_sample.plus.views.auth_return'),
-
- # Uncomment the admin/doc line below and add 'django.contrib.admindocs'
- # to INSTALLED_APPS to enable admin documentation:
- # (r'^admin/doc/', include('django.contrib.admindocs.urls')),
-
- # Uncomment the next line to enable the admin:
- (r'^admin/', include(admin.site.urls)),
- (r'^accounts/login/$', 'django.contrib.auth.views.login',
- {'template_name': 'plus/login.html'}),
-
- (r'^static/(?P.*)$', 'django.views.static.serve',
- {'document_root': os.path.join(os.path.dirname(__file__), 'static')
-}),
-)
diff --git a/samples/groupssettings/README b/samples/groupssettings/README
deleted file mode 100644
index 432997a..0000000
--- a/samples/groupssettings/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Sample for the Groups Settings API.
-
-api: groupssettings
-keywords: cmdline
diff --git a/samples/groupssettings/client_secrets.json b/samples/groupssettings/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/groupssettings/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/groupssettings/groupsettings.py b/samples/groupssettings/groupsettings.py
deleted file mode 100644
index 0e91bac..0000000
--- a/samples/groupssettings/groupsettings.py
+++ /dev/null
@@ -1,169 +0,0 @@
-#!/usr/bin/python
-#
-# Copyright 2011 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Sample for the Group Settings API demonstrates get and update method.
-
-Usage:
- $ python groupsettings.py
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python groupsettings.py --help
-"""
-
-__author__ = 'Shraddha Gupta '
-
-from optparse import OptionParser
-import os
-
-import pprint
-import sys
-from apiclient.discovery import build
-import httplib2
-from oauth2client.client import flow_from_clientsecrets
-from oauth2client.file import Storage
-from oauth2client.tools import run
-
-
-# CLIENT_SECRETS, name of a file containing the OAuth 2.0 information for this
-# application, including client_id and client_secret, which are found
-# on the API Access tab on the Google APIs
-# Console
-CLIENT_SECRETS = 'client_secrets.json'
-
-# Helpful message to display in the browser if the CLIENT_SECRETS file
-# is missing.
-MISSING_CLIENT_SECRETS_MESSAGE = """
-WARNING: Please configure OAuth 2.0
-
-To make this sample run you will need to populate the client_secrets.json file
-found at:
-
- %s
-
-with information from the APIs Console .
-
-""" % os.path.join(os.path.dirname(__file__), CLIENT_SECRETS)
-
-
-def access_settings(service, groupId, settings):
- """Retrieves a group's settings and updates the access permissions to it.
-
- Args:
- service: object service for the Group Settings API.
- groupId: string identifier of the group@domain.
- settings: dictionary key-value pairs of properties of group.
- """
-
- # Get the resource 'group' from the set of resources of the API.
- # The Group Settings API has only one resource 'group'.
- group = service.groups()
-
- # Retrieve the group properties
- g = group.get(groupUniqueId=groupId).execute()
- print '\nGroup properties for group %s\n' % g['name']
- pprint.pprint(g)
-
- # If dictionary is empty, return without updating the properties.
- if not settings.keys():
- print '\nGive access parameters to update group access permissions\n'
- return
-
- body = {}
-
- # Settings might contain null value for some keys(properties).
- # Extract the properties with values and add to dictionary body.
- for key in settings.iterkeys():
- if settings[key] is not None:
- body[key] = settings[key]
-
- # Update the properties of group
- g1 = group.update(groupUniqueId=groupId, body=body).execute()
-
- print '\nUpdated Access Permissions to the group\n'
- pprint.pprint(g1)
-
-
-def main(argv):
- """Demos the setting of the access properties by the Groups Settings API."""
- usage = 'usage: %prog [options]'
- parser = OptionParser(usage=usage)
- parser.add_option('--groupId',
- help='Group email address')
- parser.add_option('--whoCanInvite',
- help='Possible values: ALL_MANAGERS_CAN_INVITE, '
- 'ALL_MEMBERS_CAN_INVITE')
- parser.add_option('--whoCanJoin',
- help='Possible values: ALL_IN_DOMAIN_CAN_JOIN, '
- 'ANYONE_CAN_JOIN, CAN_REQUEST_TO_JOIN, '
- 'CAN_REQUEST_TO_JOIN')
- parser.add_option('--whoCanPostMessage',
- help='Possible values: ALL_IN_DOMAIN_CAN_POST, '
- 'ALL_MANAGERS_CAN_POST, ALL_MEMBERS_CAN_POST, '
- 'ANYONE_CAN_POST, NONE_CAN_POST')
- parser.add_option('--whoCanViewGroup',
- help='Possible values: ALL_IN_DOMAIN_CAN_VIEW, '
- 'ALL_MANAGERS_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, '
- 'ANYONE_CAN_VIEW')
- parser.add_option('--whoCanViewMembership',
- help='Possible values: ALL_IN_DOMAIN_CAN_VIEW, '
- 'ALL_MANAGERS_CAN_VIEW, ALL_MEMBERS_CAN_VIEW, '
- 'ANYONE_CAN_VIEW')
- (options, args) = parser.parse_args()
-
- if options.groupId is None:
- print 'Give the groupId for the group'
- parser.print_help()
- return
-
- settings = {}
-
- if (options.whoCanInvite or options.whoCanJoin or options.whoCanPostMessage
- or options.whoCanPostMessage or options.whoCanViewMembership) is None:
- print 'No access parameters given in input to update access permissions'
- parser.print_help()
- else:
- settings = {'whoCanInvite': options.whoCanInvite,
- 'whoCanJoin': options.whoCanJoin,
- 'whoCanPostMessage': options.whoCanPostMessage,
- 'whoCanViewGroup': options.whoCanViewGroup,
- 'whoCanViewMembership': options.whoCanViewMembership}
-
- # Set up a Flow object to be used if we need to authenticate.
- FLOW = flow_from_clientsecrets(CLIENT_SECRETS,
- scope='https://www.googleapis.com/auth/apps.groups.settings',
- message=MISSING_CLIENT_SECRETS_MESSAGE)
-
- storage = Storage('groupsettings.dat')
- credentials = storage.get()
-
- if credentials is None or credentials.invalid:
- print 'invalid credentials'
- # Save the credentials in storage to be used in subsequent runs.
- credentials = run(FLOW, storage)
-
- # Create an httplib2.Http object to handle our HTTP requests and authorize it
- # with our good Credentials.
- http = httplib2.Http()
- http = credentials.authorize(http)
-
- service = build('groupssettings', 'v1', http=http)
-
- access_settings(service=service, groupId=options.groupId, settings=settings)
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/maps_engine/README b/samples/maps_engine/README
deleted file mode 100644
index 1bcab84..0000000
--- a/samples/maps_engine/README
+++ /dev/null
@@ -1,8 +0,0 @@
-This sample code demonstrates use of Google Maps Engine. These samples do not
-make use of the Discovery Service, but do use the the httplib2 library to make
-authenticated requests. For more information on Google Maps Engine, see
-developers.google.com/maps-engine/documentation/
-
-api: mapsengine
-keywords: cmdline
-author: Josh Livni
diff --git a/samples/maps_engine/maps_engine.py b/samples/maps_engine/maps_engine.py
deleted file mode 100644
index 978145f..0000000
--- a/samples/maps_engine/maps_engine.py
+++ /dev/null
@@ -1,210 +0,0 @@
-# -*- coding: utf-8 -*-
-#
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for Google Maps Engine.
-
-This sample code demonstrates use of Google Maps Engine. These samples do not
-make use of the Discovery Service, but do use the the httplib2 library to make
-authenticated requests. For more information on Google Maps Engine, see
-developers.google.com/maps-engine/documentation/
-
-These samples allow you to
-1) List projects you have access to, or
-2) List tables in a given project, and upload a shapefile.
-
-Usage:
- $ python maps_engine.py [-p project_id] [-s shapefile]
-
-If you do not enter a shapefile, it will upload the included "polygons".
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python maps_engine.py --help
-
-To get detailed log output run:
-
- $ python maps_engine.py -p 123456 --logging_level=DEBUG
-"""
-
-__author__ = "jlivni@google.com (Josh Livni)"
-
-import argparse
-import json
-import logging
-import sys
-import time
-
-import sample_tools
-
-logging.basicConfig(level=logging.INFO)
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument("-p", "--project_id", help="optional GME Project ID")
-argparser.add_argument("-s", "--shapefile", help="Shapefile (without the .shp)")
-
-BASE_URL = "https://www.googleapis.com/mapsengine/v1/tables/"
-SUCCESSFUL_STATUS = ["processed", "complete", "ready"]
-
-class MapsEngineSampleException(Exception):
- """Catch this for failures specific to this sample code."""
-
-
-def ListProjects(http):
- """List the projects available to the authorized account.
-
- Args:
- http: http, authorized http object.
- """
-
- url = "https://www.googleapis.com/mapsengine/v1/projects"
- resp, content = http.request(url, method="GET")
- RaiseBadResponse(resp, url)
- logging.info(content)
-
-
-def ListTables(http, project_id):
- """List the tables in a given project.
-
- Args:
- http: http, authenticated http object.
- project_id: string, id of the GME project.
- """
- table_url = "https://www.googleapis.com/mapsengine/v1/tables?projectId=%s"
- url = table_url % project_id
- resp, content = http.request(url, method="GET")
- RaiseBadResponse(resp, url)
- logging.info(content)
-
-
-def UploadShapefile(http, project_id, shapefile_prefix):
- """Upload a shapefile to a given project, and display status when complete.
-
- Args:
- http: http, authenticated http object.
- project_id: string, id of the GME project.
- shapefile_prefix: string, the shapefile without the .shp suffix.
- """
- # Note the different endpoint for uploading the actual data.
- upload_url = "https://www.googleapis.com/upload/mapsengine/v1/tables/"
-
- # Ensure json encoding for POST
- headers = {"Content-Type": "application/json"}
-
- # Upload a file containing info about your upload
- suffixes = ["shp", "dbf", "prj", "shx"]
- files = []
- for suffix in suffixes:
- files.append({
- "filename": "%s.%s" % (shapefile_prefix, suffix)
- })
- metadata = {
- "projectId": project_id,
- "name": shapefile_prefix,
- "description": "polygons that were uploaded by a script",
- "files": files,
- # You need the string value of a valid shared and published ACL
- # Check the "Access Lists" section of the Maps Engine UI for a list.
- "draftAccessList": "Map Editors",
- "tags": [shapefile_prefix, "auto_upload", "kittens"]
- }
-
- body = json.dumps(metadata)
- create_url = "".join([BASE_URL, "upload"])
-
- logging.info("Uploading metadata for %s", shapefile_prefix)
-
- resp, content = http.request(create_url,
- method="POST",
- headers=headers,
- body=body)
- RaiseBadResponse(resp, create_url)
- logging.debug(content)
-
- # We have now created an empty asset. Get Table ID to upload the actual files.
- result = json.loads(content)
- table_id = result["id"]
-
- # A shapefile is actually a bunch of files; GME requires these for suffixes.
- for suffix in suffixes:
- shapefile = "%s.%s" % (shapefile_prefix, suffix)
- url = "%s%s/files?filename=%s" % (upload_url, table_id, shapefile)
- logging.debug("upload url is %s", url)
-
- with open(shapefile, "rb") as opened:
- headers = {
- "Content-Type": "application/octet-stream"
- }
-
- logging.info("Uploading %s", shapefile)
- resp, content = http.request(url,
- method="POST",
- headers=headers,
- body=opened)
- RaiseBadResponse(resp, url)
- logging.debug(content)
-
- # Check everything completed.
- CheckTableStatus(http, table_id)
-
-
-def CheckTableStatus(http, table_id):
- url = BASE_URL + table_id
- resp, content = http.request(url)
- RaiseBadResponse(resp, url)
- status = json.loads(content)["processingStatus"]
- logging.info("Table Status: %s", status)
- if status in SUCCESSFUL_STATUS:
- logging.info("table successfully processed; the table id is %s\n", table_id)
- cid = table_id.split("_")[0]
- gme_url = "https://earthbuilder.google.com/admin/#RepositoryPlace:"
- gme_url += "cid=%s&v=DETAIL_INFO&aid=%s" % (cid, table_id)
- logging.info("See it at %s", gme_url)
- else:
- logging.info("Table %s; will check again in 5 seconds", status)
- time.sleep(5)
- CheckTableStatus(http, table_id)
-
-
-def RaiseBadResponse(response, url):
- """Tests GME API returned a valid 2xx response.
-
- Args:
- response: the JSON response from the API.
- url: the original request URL.
- Raises:
- MapsEngineSampleException: Custom exception in case of non 2xx response.
- """
- if not response["status"].startswith("2"):
- raise MapsEngineSampleException("request failed: %s", url)
-
-
-def main(argv):
- http, flags = sample_tools.init(
- argv, "mapsengine", "v1", __doc__, __file__, parents=[argparser],
- scope="https://www.googleapis.com/auth/mapsengine")
-
- if flags.project_id:
- ListTables(http, flags.project_id)
- UploadShapefile(http, flags.project_id, flags.shapefile or "polygons")
- else:
- ListProjects(http)
- return
-
-
-if __name__ == "__main__":
- main(sys.argv)
diff --git a/samples/maps_engine/polygons.prj b/samples/maps_engine/polygons.prj
deleted file mode 100644
index 8f73f48..0000000
--- a/samples/maps_engine/polygons.prj
+++ /dev/null
@@ -1 +0,0 @@
-GEOGCS["GCS_WGS_1984",DATUM["D_WGS_1984",SPHEROID["WGS_1984",6378137,298.257223563]],PRIMEM["Greenwich",0],UNIT["Degree",0.017453292519943295]]
diff --git a/samples/maps_engine/sample_tools.py b/samples/maps_engine/sample_tools.py
deleted file mode 100644
index a08bd71..0000000
--- a/samples/maps_engine/sample_tools.py
+++ /dev/null
@@ -1,96 +0,0 @@
-# Copyright 2013 Google Inc. All Rights Reserved.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Utilities for making samples.
-
-Consolidates a lot of code commonly repeated in sample applications.
-
-This modified version returns http instead of a built service. Originally
-https://google-api-python-client.googlecode.com/hg/apiclient/sample_tools.py
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-__all__ = ['init']
-
-
-import argparse
-import os
-
-import httplib2
-from oauth2client import client
-from oauth2client import file as oauth2client_file
-from oauth2client import tools
-
-
-def init(argv, name, version, doc, filename, scope=None, parents=[]):
- """A common initialization routine for samples.
-
- Many of the sample applications do the same initialization, which has now
- been consolidated into this function. This function uses common idioms found
- in almost all the samples, i.e. for an API with name 'apiname', the
- credentials are stored in a file named apiname.dat, and the
- client_secrets.json file is stored in the same directory as the application
- main file.
-
- Args:
- argv: list of string, the command-line parameters of the application.
- name: string, name of the API.
- version: string, version of the API.
- doc: string, description of the application. Usually set to __doc__.
- filename: string, filename of the application. Usually set to __file__.
- scope: string, The OAuth scope used.
- parents: list of argparse.ArgumentParser, additional command-line flags.
-
- Returns:
- A tuple of (http, flags), where http is the authenticated http object and
- flags is the parsed command-line flags.
- """
- if scope is None:
- scope = 'https://www.googleapis.com/auth/' + name
-
- # Parser command-line arguments.
- parent_parsers = [tools.argparser]
- parent_parsers.extend(parents)
- parser = argparse.ArgumentParser(
- description=doc,
- formatter_class=argparse.RawDescriptionHelpFormatter,
- parents=parent_parsers)
- flags = parser.parse_args(argv[1:])
-
- # Name of a file containing the OAuth 2.0 information for this
- # application, including client_id and client_secret, which are found
- # on the API Access tab on the Google APIs
- # Console .
- client_secrets = os.path.join(os.path.dirname(filename),
- 'client_secrets.json')
-
- # Set up a Flow object to be used if we need to authenticate.
- flow = client.flow_from_clientsecrets(
- client_secrets,
- scope=scope,
- message=tools.message_if_missing(client_secrets))
-
- # Prepare credentials, and authorize HTTP object with them.
- # If the credentials don't exist or are invalid run through the native client
- # flow. The Storage object will ensure that if successful the good
- # credentials will get written back to a file.
- storage = oauth2client_file.Storage(name + '.dat')
- credentials = storage.get()
- if credentials is None or credentials.invalid:
- credentials = tools.run_flow(flow, storage, flags)
- http = credentials.authorize(http=httplib2.Http())
-
- # GME does not publish a discovery document, so we return the auth'd http
- # instead of building a service using the discovery module.
- return (http, flags)
diff --git a/samples/plus/README b/samples/plus/README
deleted file mode 100644
index f9d59de..0000000
--- a/samples/plus/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Loop over all a user's activities and print a short snippet.
-
-api: plus
-keywords: cmdline pagination
diff --git a/samples/plus/client_secrets.json b/samples/plus/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/plus/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/plus/plus.py b/samples/plus/plus.py
deleted file mode 100755
index d8375ca..0000000
--- a/samples/plus/plus.py
+++ /dev/null
@@ -1,60 +0,0 @@
-#!/usr/bin/env python
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2013 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for the Google+ API.
-
-Command-line application that retrieves the list of the user's posts."""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import sys
-
-from oauth2client import client
-from apiclient import sample_tools
-
-
-def main(argv):
- # Authenticate and construct service.
- service, flags = sample_tools.init(
- argv, 'plus', 'v1', __doc__, __file__,
- scope='https://www.googleapis.com/auth/plus.me')
-
- try:
- person = service.people().get(userId='me').execute()
-
- print 'Got your ID: %s' % person['displayName']
- print
- print '%-040s -> %s' % ('[Activitity ID]', '[Content]')
-
- # Don't execute the request until we reach the paging loop below.
- request = service.activities().list(
- userId=person['id'], collection='public')
-
- # Loop over every activity and print the ID and a short snippet of content.
- while request is not None:
- activities_doc = request.execute()
- for item in activities_doc.get('items', []):
- print '%-040s -> %s' % (item['id'], item['object']['content'][:30])
-
- request = service.activities().list_next(request, activities_doc)
-
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run'
- 'the application to re-authorize.')
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/prediction/README b/samples/prediction/README
deleted file mode 100644
index b0a37b8..0000000
--- a/samples/prediction/README
+++ /dev/null
@@ -1,8 +0,0 @@
-Before you can run the prediction sample prediction.py, you must load some csv
-formatted data into Google Storage. You can do this by running setup.sh with a
-bucket/object name of your choice. You must first create the bucket you want
-to use. This can be done with the gsutil function or via the web UI (Storage
-Access) in the Google APIs Console.
-
-api: prediction
-keywords: cmdline
diff --git a/samples/prediction/client_secrets.json b/samples/prediction/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/prediction/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/prediction/language_id.txt b/samples/prediction/language_id.txt
deleted file mode 100644
index 1671b92..0000000
--- a/samples/prediction/language_id.txt
+++ /dev/null
@@ -1,451 +0,0 @@
-"French", "M. de Troisvilles, comme s'appelait encore sa famille en Gascogne, ou M. de Tréville, comme il avait fini par s'appeler lui-même à Paris, avait réellement commencé comme d'Artagnan, c'est-à-dire sans un sou vaillant, mais avec ce fonds d'audace, d'esprit et d'entendement qui fait que le plus pauvre gentillâtre gascon reçoit souvent plus en ses espérances de l'héritage paternel que le plus riche gentilhomme périgourdin ou berrichon ne reçoit en réalité. Sa bravoure insolente, son bonheur plus insolent encore dans un temps où les coups pleuvaient comme grêle, l'avaient hissé au sommet de cette échelle difficile qu'on appelle la faveur de cour, et dont il avait escaladé quatre à quatre les échelons."
-"Spanish", ""
-"English", "Et, saluant la dame d'un signe de tête, il s'élança sur son cheval, tandis que le cocher du carrosse fouettait vigoureusement son attelage. Les deux interlocuteurs partirent donc au galop, s'éloignant chacun par un côté opposé de la rue."
-"French", "Cette menace acheva d'intimider l'hôte. Après le roi et M. le cardinal, M. de Tréville était l'homme dont le nom peut-être était le plus souvent répété par les militaires et même par les bourgeois. Il y avait bien le père Joseph, c'est vrai; mais son nom à lui n'était jamais prononcé que tout bas, tant était grande la terreur qu'inspirait l'Éminence grise, comme on appelait le familier du cardinal."
-"English", "'Found IT,' the Mouse replied rather crossly: 'of course you know what 'it' means.'"
-"English", "'Only a thimble,' said Alice sadly."
-"French", "«Voyons, l'hôte, dit-il, est-ce que vous ne me débarrasserez pas de ce frénétique? En conscience, je ne puis le tuer, et cependant, ajouta-t-il avec une expression froidement menaçante, cependant il me gêne. Où est-il?"
-"English", "This was not an encouraging opening for a conversation. Alice replied, rather shyly, 'I--I hardly know, sir, just at present--at least I know who I WAS when I got up this morning, but I think I must have been changed several times since then.'"
-"English", "And she went on planning to herself how she would manage it. 'They must go by the carrier,' she thought; 'and how funny it'll seem, sending presents to one's own feet! And how odd the directions will look!"
-"Spanish", "En efeto, rematado ya su juicio, vino a dar en el más estraño pensamiento que jamás dio loco en el mundo; y fue que le pareció convenible y necesario, así para el aumento de su honra como para el servicio de su república, hacerse caballero andante, y irse por todo el mundo con sus armas y caballo a buscar las aventuras y a ejercitarse en todo aquello que él había leído que los caballeros andantes se ejercitaban, deshaciendo todo género de agravio, y poniéndose en ocasiones y peligros donde, acabándolos, cobrase eterno nombre y fama. Imaginábase el pobre ya coronado por el valor de su brazo, por lo menos, del imperio de Trapisonda; y así, con estos tan agradables pensamientos, llevado del estraño gusto que en ellos sentía, se dio priesa a poner en efeto lo que deseaba."
-"French", "L'hôte, qui n'était pas doué d'une grande perspicacité, ne remarqua point l'expression que ses paroles avaient donnée à la physionomie de l'inconnu. Celui-ci quitta le rebord de la croisée sur lequel il était toujours resté appuyé du bout du coude, et fronça le sourcil en homme inquiet."
-"English", "«Je ne vous parle pas, monsieur."
-"French", ""
-"Spanish", " B. ¿Cómo estáis, Rocinante, tan delgado? R. Porque nunca se come, y se trabaja. B. Pues, ¿qué es de la cebada y de la paja? R. No me deja mi amo ni un bocado. B. Andá, señor, que estáis muy mal criado, pues vuestra lengua de asno al amo ultraja. R. Asno se es de la cuna a la mortaja. ¿Queréislo ver? Miraldo enamorado. B. ¿Es necedad amar? R. No es gran prudencia. B. Metafísico estáis. R. Es que no como. B. Quejaos del escudero. R. No es bastante. ¿Cómo me he de quejar en mi dolencia, si el amo y escudero o mayordomo son tan rocines como Rocinante?"
-"French", "«Mon fils, avait dit le gentilhomme gascon -- dans ce pur patois de Béarn dont Henri IV n'avait jamais pu parvenir à se défaire --, mon fils, ce cheval est né dans la maison de votre père, il y a tantôt treize ans, et y est resté depuis ce temps-là, ce qui doit vous porter à l'aimer. Ne le vendez jamais, laissez-le mourir tranquillement et honorablement de vieillesse, et si vous faites campagne avec lui, ménagez-le comme vous ménageriez un vieux serviteur. À la cour, continua M. d'Artagnan père, si toutefois vous avez l'honneur d'y aller, honneur auquel, du reste, votre vieille noblesse vous donne des droits, soutenez dignement votre nom de gentilhomme, qui a été porté dignement par vos ancêtres depuis plus de cinq cents ans. Pour vous et pour les vôtres -- par les vôtres, j'entends vos parents et vos amis --, ne supportez jamais rien que de M. le cardinal et du roi. C'est par son courage, entendez-vous bien, par son courage seul, qu'un gentilhomme fait son chemin aujourd'hui. Quiconque tremble une seconde laisse peut-être échapper l'appât que, pendant cette seconde justement, la fortune lui tendait. Vous êtes jeune, vous devez être brave par deux raisons: la première, c'est que vous êtes Gascon, et la seconde, c'est que vous êtes mon fils. Ne craignez pas les occasions et cherchez les aventures. Je vous ai fait apprendre à manier l'épée; vous avez un jarret de fer, un poignet d'acier; battez-vous à tout propos; battez-vous d'autant plus que les duels sont défendus, et que, par conséquent, il y a deux fois du courage à se battre. Je n'ai, mon fils, à vous donner que quinze écus, mon cheval et les conseils que vous venez d'entendre. Votre mère y ajoutera la recette d'un certain baume qu'elle tient d'une bohémienne, et qui a une vertu miraculeuse pour guérir toute blessure qui n'atteint pas le coeur. Faites votre profit du tout, et vivez heureusement et longtemps. -- Je n'ai plus qu'un mot à ajouter, et c'est un exemple que je vous propose, non pas le mien, car je n'ai, moi, jamais paru à la cour et n'ai fait que les guerres de religion en volontaire; je veux parler de M. de Tréville, qui était mon voisin autrefois, et qui a eu l'honneur de jouer tout enfant avec notre roi Louis treizième, que Dieu conserve! Quelquefois leurs jeux dégénéraient en bataille et dans ces batailles le roi n'était pas toujours le plus fort. Les coups qu'il en reçut lui donnèrent beaucoup d'estime et d'amitié pour M. de Tréville. Plus tard, M. de Tréville se battit contre d'autres dans son premier voyage à Paris, cinq fois; depuis la mort du feu roi jusqu'à la majorité du jeune sans compter les guerres et les sièges, sept fois; et depuis cette majorité jusqu'aujourd'hui, cent fois peut-être! -- Aussi, malgré les édits, les ordonnances et les arrêts, le voilà capitaine des mousquetaires, c'est-à-dire chef d'une légion de Césars, dont le roi fait un très grand cas, et que M. le cardinal redoute, lui qui ne redoute pas grand-chose, comme chacun sait. De plus, M. de Tréville gagne dix mille écus par an; c'est donc un fort grand seigneur. -- Il a commencé comme vous, allez le voir avec cette lettre, et réglez-vous sur lui, afin de faire comme lui.»"
-"Spanish", "Soneto"
-"English", "She stretched herself up on tiptoe, and peeped over the edge of the mushroom, and her eyes immediately met those of a large caterpillar, that was sitting on the top with its arms folded, quietly smoking a long hookah, and taking not the smallest notice of her or of anything else."
-"Spanish", "Soneto"
-"English", "So she swallowed one of the cakes, and was delighted to find that she began shrinking directly. As soon as she was small enough to get through the door, she ran out of the house, and found quite a crowd of little animals and birds waiting outside. The poor little Lizard, Bill, was in the middle, being held up by two guinea-pigs, who were giving it something out of a bottle. They all made a rush at Alice the moment she appeared; but she ran off as hard as she could, and soon found herself safe in a thick wood."
-"English", ""
-"English", "«La peste soit des Gascons! Remettez-le sur son cheval orange, et qu'il s'en aille!"
-"French", "Le seul catalogue des livres que nous lûmes pour arriver à ce but remplirait un feuilleton tout entier, ce qui serait peut-être fort instructif, mais à coups sûr peu amusant pour nos lecteurs. Nous nous contenterons donc de leur dire qu'au moment où, découragé de tant d'investigations infructueuses, nous allions abandonner notre recherche, nous trouvâmes enfin, guidé par les conseils de notre illustre et savant ami Paulin Paris, un manuscrit in-folio, coté le n° 4772 ou 4773, nous ne nous le rappelons plus bien, ayant pour titre:"
-"French", "-- Qui, elle? demanda l'hôte."
-"English", ""
-"English", "She ate a little bit, and said anxiously to herself, 'Which way? Which way?', holding her hand on the top of her head to feel which way it was growing, and she was quite surprised to find that she remained the same size: to be sure, this generally happens when one eats cake, but Alice had got so much into the way of expecting nothing but out-of-the-way things to happen, that it seemed quite dull and stupid for life to go on in the common way."
-"English", "Hardly knowing what she did, she picked up a little bit of stick, and held it out to the puppy; whereupon the puppy jumped into the air off all its feet at once, with a yelp of delight, and rushed at the stick, and made believe to worry it; then Alice dodged behind a great thistle, to keep herself from being run over; and the moment she appeared on the other side, the puppy made another rush at the stick, and tumbled head over heels in its hurry to get hold of it; then Alice, thinking it was very like having a game of play with a cart-horse, and expecting every moment to be trampled under its feet, ran round the thistle again; then the puppy began a series of short charges at the stick, running a very little way forwards each time and a long way back, and barking hoarsely all the while, till at last it sat down a good way off, panting, with its tongue hanging out of its mouth, and its great eyes half shut."
-"Spanish", " ¡Oh, quién tuviera, hermosa Dulcinea, por más comodidad y más reposo, a Miraflores puesto en el Toboso, y trocara sus Londres con tu aldea! ¡Oh, quién de tus deseos y librea alma y cuerpo adornara, y del famoso caballero que hiciste venturoso mirara alguna desigual pelea! ¡Oh, quién tan castamente se escapara del señor Amadís como tú hiciste del comedido hidalgo don Quijote! Que así envidiada fuera, y no envidiara, y fuera alegre el tiempo que fue triste, y gozara los gustos sin escote."
-"French", "«Eh! votre dépense», vociféra l'hôte, dont l'affection pour son voyageur se changeait en un profond dédain en voyant qu'il s'éloignait sans solder ses comptes."
-"English", " * * * * * * *"
-"Spanish", " Pallida mors aequo pulsat pede pauperum tabernas, Regumque turres."
-"English", "'He took me for his housemaid,' she said to herself as she ran. 'How surprised he'll be when he finds out who I am! But I'd better take him his fan and gloves--that is, if I can find them.' As she said this, she came upon a neat little house, on the door of which was a bright brass plate with the name 'W. RABBIT' engraved upon it. She went in without knocking, and hurried upstairs, in great fear lest she should meet the real Mary Ann, and be turned out of the house before she had found the fan and gloves."
-"Spanish", "YO, EL REY."
-"English", "'Well, perhaps you haven't found it so yet,' said Alice; 'but when you have to turn into a chrysalis--you will some day, you know--and then after that into a butterfly, I should think you'll feel it a little queer, won't you?'"
-"Spanish", "Sólo quisiera dártela monda y desnuda, sin el ornato de prólogo, ni de la inumerabilidad y catálogo de los acostumbrados sonetos, epigramas y elogios que al principio de los libros suelen ponerse. Porque te sé decir que, aunque me costó algún trabajo componerla, ninguno tuve por mayor que hacer esta prefación que vas leyendo. Muchas veces tomé la pluma para escribille, y muchas la dejé, por no saber lo que escribiría; y, estando una suspenso, con el papel delante, la pluma en la oreja, el codo en el bufete y la mano en la mejilla, pensando lo que diría, entró a deshora un amigo mío, gracioso y bien entendido, el cual, viéndome tan imaginativo, me preguntó la causa; y, no encubriéndosela yo, le dije que pensaba en el prólogo que había de hacer a la historia de don Quijote, y que me tenía de suerte que ni quería hacerle, ni menos sacar a luz las hazañas de tan noble caballero."
-"English", "'Perhaps it doesn't understand English,' thought Alice; 'I daresay it's a French mouse, come over with William the Conqueror.' (For, with all her knowledge of history, Alice had no very clear notion how long ago anything had happened.) So she began again: 'Ou est ma chatte?' which was the first sentence in her French lesson-book. The Mouse gave a sudden leap out of the water, and seemed to quiver all over with fright. 'Oh, I beg your pardon!' cried Alice hastily, afraid that she had hurt the poor animal's feelings. 'I quite forgot you didn't like cats.'"
-"French", "-- Et quant à mes autres instructions? demanda la belle voyageuse."
-"Spanish", "Por cuanto por parte de vos, Miguel de Cervantes, nos fue fecha relación que habíades compuesto un libro intitulado El ingenioso hidalgo de la Mancha, el cual os había costado mucho trabajo y era muy útil y provechoso, nos pedistes y suplicastes os mandásemos dar licencia y facultad para le poder imprimir, y previlegio por el tiempo que fuésemos servidos, o como la nuestra merced fuese; lo cual visto por los del nuestro Consejo, por cuanto en el dicho libro se hicieron las diligencias que la premática últimamente por nos fecha sobre la impresión de los libros dispone, fue acordado que debíamos mandar dar esta nuestra cédula para vos, en la dicha razón; y nos tuvímoslo por bien. Por la cual, por os hacer bien y merced, os damos licencia y facultad para que vos, o la persona que vuestro poder hubiere, y no otra alguna, podáis imprimir el dicho libro, intitulado El ingenioso hidalgo de la Mancha, que desuso se hace mención, en todos estos nuestros reinos de Castilla, por tiempo y espacio de diez años, que corran y se cuenten desde el dicho día de la data desta nuestra cédula; so pena que la persona o personas que, sin tener vuestro poder, lo imprimiere o vendiere, o hiciere imprimir o vender, por el mesmo caso pierda la impresión que hiciere, con los moldes y aparejos della; y más, incurra en pena de cincuenta mil maravedís cada vez que lo contrario hiciere. La cual dicha pena sea la tercia parte para la persona que lo acusare, y la otra tercia parte para nuestra Cámara, y la otra tercia parte para el juez que lo sentenciare. Con tanto que todas las veces que hubiéredes de hacer imprimir el dicho libro, durante el tiempo de los dichos diez años, le traigáis al nuestro Consejo, juntamente con el original que en él fue visto, que va rubricado cada plana y firmado al fin dél de Juan Gallo de Andrada, nuestro Escribano de Cámara, de los que en él residen, para saber si la dicha impresión está conforme el original; o traigáis fe en pública forma de cómo por corretor nombrado por nuestro mandado, se vio y corrigió la dicha impresión por el original, y se imprimió conforme a él, y quedan impresas las erratas por él apuntadas, para cada un libro de los que así fueren impresos, para que se tase el precio que por cada volume hubiéredes de haber. Y mandamos al impresor que así imprimiere el dicho libro, no imprima el principio ni el primer pliego dél, ni entregue más de un solo libro con el original al autor, o persona a cuya costa lo imprimiere, ni otro alguno, para efeto de la dicha correción y tasa, hasta que antes y primero el dicho libro esté corregido y tasado por los del nuestro Consejo; y, estando hecho, y no de otra manera, pueda imprimir el dicho principio y primer pliego, y sucesivamente ponga esta nuestra cédula y la aprobación, tasa y erratas, so pena de caer e incurrir en las penas contenidas en las leyes y premáticas destos nuestros reinos. Y mandamos a los del nuestro Consejo, y a otras cualesquier justicias dellos, guarden y cumplan esta nuestra cédula y lo en ella contenido. Fecha en Valladolid, a veinte y seis días del mes de setiembre de mil y seiscientos y cuatro años."
-"English", "Oh dear, what nonsense I'm talking!'"
-"Spanish", "-Decid -le repliqué yo, oyendo lo que me decía-: ¿de qué modo pensáis llenar el vacío de mi temor y reducir a claridad el caos de mi confusión?"
-"French", "-- Ah! fit d'Artagnan."
-"French", "-- Me frapper, moi! dit l'autre en pivotant sur ses talons et en regardant le jeune homme avec autant d'étonnement que de mépris. Allons, allons donc, mon cher, vous êtes fou!»"
-"English", "It did so indeed, and much sooner than she had expected: before she had drunk half the bottle, she found her head pressing against the ceiling, and had to stoop to save her neck from being broken. She hastily put down the bottle, saying to herself 'That's quite enough--I hope I shan't grow any more--As it is, I can't get out at the door--I do wish I hadn't drunk quite so much!'"
-"English", "CHAPTER V. Advice from a Caterpillar"
-"French", "-- Vous croyez?» répondit d'Artagnan peu convaincu; car il savait mieux que personne l'importance toute personnelle de cette lettre, et n'y voyait rien qui pût tenter la cupidité. Le fait est qu'aucun des valets, aucun des voyageurs présents n'eût rien gagné à posséder ce papier."
-"English", " * * * * * * *"
-"English", "This seemed to Alice a good opportunity for making her escape; so she set off at once, and ran till she was quite tired and out of breath, and till the puppy's bark sounded quite faint in the distance."
-"Spanish", " Urganda la desconocida Si de llegarte a los bue-, libro, fueres con letu-, no te dirá el boquirru- que no pones bien los de-. Mas si el pan no se te cue- por ir a manos de idio-, verás de manos a bo-, aun no dar una en el cla-, si bien se comen las ma- por mostrar que son curio-. Y, pues la expiriencia ense- que el que a buen árbol se arri- buena sombra le cobi-, en Béjar tu buena estre- un árbol real te ofre- que da príncipes por fru-, en el cual floreció un du- que es nuevo Alejandro Ma-: llega a su sombra, que a osa- favorece la fortu-. De un noble hidalgo manche- contarás las aventu-, a quien ociosas letu-, trastornaron la cabe-: damas, armas, caballe-, le provocaron de mo-, que, cual Orlando furio-, templado a lo enamora-, alcanzó a fuerza de bra- a Dulcinea del Tobo-. No indiscretos hieroglí- estampes en el escu-, que, cuando es todo figu-, con ruines puntos se envi-. Si en la dirección te humi-,"
-"French", "-- Elles sont renfermées dans cette boîte, que vous n'ouvrirez que de l'autre côté de la Manche."
-"English", "Y con esto, Dios te dé salud, y a mí no olvide. Vale."
-"English", "Alice took up the fan and gloves, and, as the hall was very hot, she kept fanning herself all the time she went on talking: 'Dear, dear! How queer everything is to-day! And yesterday things went on just as usual. I wonder if I've been changed in the night? Let me think: was I the same when I got up this morning? I almost think I can remember feeling a little different. But if I'm not the same, the next question is, Who in the world am I? Ah, THAT'S the great puzzle!' And she began thinking over all the children she knew that were of the same age as herself, to see if she could have been changed for any of them."
-"English", "She waited for some time without hearing anything more: at last came a rumbling of little cartwheels, and the sound of a good many voices all talking together: she made out the words: 'Where's the other ladder?--Why, I hadn't to bring but one; Bill's got the other--Bill! fetch it here, lad!--Here, put 'em up at this corner--No, tie 'em together first--they don't reach half high enough yet--Oh! they'll do well enough; don't be particular--Here, Bill! catch hold of this rope--Will the roof bear?--Mind that loose slate--Oh, it's coming down! Heads below!' (a loud crash)--'Now, who did that?--It was Bill, I fancy--Who's to go down the chimney?--Nay, I shan't! YOU do it!--That I won't, then!--Bill's to go down--Here, Bill! the master says you're to go down the chimney!'"
-"French", "-- Vous avez raison, s'écria le gentilhomme; partez donc de votre côté, moi, je pars du mien.»"
-"English", "So she set to work, and very soon finished off the cake."
-"Spanish", "Las mozas, que no estaban hechas a oír semejantes retóricas, no respondían palabra; sólo le preguntaron si quería comer alguna cosa."
-"English", "'But she must have a prize herself, you know,' said the Mouse."
-"French", "En attendant, comme le parrain est un second père, nous invitons le lecteur à s'en prendre à nous, et non au comte de La Fère, de son plaisir ou de son ennui."
-"Spanish", ""
-"English", "'Would it be of any use, now,' thought Alice, 'to speak to this mouse? Everything is so out-of-the-way down here, that I should think very likely it can talk: at any rate, there's no harm in trying.' So she began: 'O Mouse, do you know the way out of this pool? I am very tired of swimming about here, O Mouse!' (Alice thought this must be the right way of speaking to a mouse: she had never done such a thing before, but she remembered having seen in her brother's Latin Grammar, 'A mouse--of a mouse--to a mouse--a mouse--O mouse!') The Mouse looked at her rather inquisitively, and seemed to her to wink with one of its little eyes, but it said nothing."
-"English", "-- Prise! et par qui?"
-"Spanish", "AMADÍS DE GAULA A DON QUIJOTE DE LA MANCHA"
-"Spanish", " Non bene pro toto libertas venditur auro."
-"Spanish", "Con estas razones perdía el pobre caballero el juicio, y desvelábase por entenderlas y desentrañarles el sentido, que no se lo sacara ni las entendiera el mesmo Aristóteles, si resucitara para sólo ello. No estaba muy bien con las heridas que don Belianís daba y recebía, porque se imaginaba que, por grandes maestros que le hubiesen curado, no dejaría de tener el rostro y todo el cuerpo lleno de cicatrices y señales. Pero, con todo, alababa en su autor aquel acabar su libro con la promesa de aquella inacabable aventura, y muchas veces le vino deseo de tomar la pluma y dalle fin al pie de la letra, como allí se promete; y sin duda alguna lo hiciera, y aun saliera con ello, si otros mayores y continuos pensamientos no se lo estorbaran. Tuvo muchas veces competencia con el cura de su lugar -que era hombre docto, graduado en Sigüenza-, sobre cuál había sido mejor caballero: Palmerín de Ingalaterra o Amadís de Gaula; mas maese Nicolás, barbero del mesmo pueblo, decía que ninguno llegaba al Caballero del Febo, y que si alguno se le podía comparar, era don Galaor, hermano de Amadís de Gaula, porque tenía muy acomodada condición para todo; que no era caballero melindroso, ni tan llorón como su hermano, y que en lo de la valentía no le iba en zaga."
-"English", "By this time she had found her way into a tidy little room with a table in the window, and on it (as she had hoped) a fan and two or three pairs of tiny white kid gloves: she took up the fan and a pair of the gloves, and was just going to leave the room, when her eye fell upon a little bottle that stood near the looking-glass. There was no label this time with the words 'DRINK ME,' but nevertheless she uncorked it and put it to her lips. 'I know SOMETHING interesting is sure to happen,' she said to herself, 'whenever I eat or drink anything; so I'll just see what this bottle does. I do hope it'll make me grow large again, for really I'm quite tired of being such a tiny little thing!'"
-"Spanish", "-No fuyan las vuestras mercedes ni teman desaguisado alguno; ca a la orden de caballería que profeso non toca ni atañe facerle a ninguno, cuanto más a tan altas doncellas como vuestras presencias demuestran."
-"English", "Alice replied eagerly, for she was always ready to talk about her pet: 'Dinah's our cat. And she's such a capital one for catching mice you can't think! And oh, I wish you could see her after the birds! Why, she'll eat a little bird as soon as look at it!'"
-"French", "-- Je ne ris pas souvent, monsieur, reprit l'inconnu, ainsi que vous pouvez le voir vous-même à l'air de mon visage; mais je tiens cependant à conserver le privilège de rire quand il me plaît."
-"French", ""
-"Spanish", " -Para mí, señor castellano, cualquiera cosa basta, porque mis arreos son las armas, mi descanso el pelear, etc."
-"English", "Il était l'ami du roi, lequel honorait fort, comme chacun sait, la mémoire de son père Henri IV. Le père de M. de Tréville l'avait si fidèlement servi dans ses guerres contre la Ligue, qu'à défaut d'argent comptant -- chose qui toute la vie manqua au Béarnais, lequel paya constamment ses dettes avec la seule chose qu'il n'eût jamais besoin d'emprunter, c'est-à-dire avec de l'esprit --, qu'à défaut d'argent comptant, disons-nous, il l'avait autorisé, après la reddition de Paris, à prendre pour armes un lion d'or passant sur gueules avec cette devise: _Fidelis et fortis_. C'était beaucoup pour l'honneur, mais c'était médiocre pour le bien-être. Aussi, quand l'illustre compagnon du grand Henri mourut, il laissa pour seul héritage à monsieur son fils son épée et sa devise. Grâce à ce double don et au nom sans tache qui l'accompagnait, M. de Tréville fut admis dans la maison du jeune prince, où il servit si bien de son épée et fut si fidèle à sa devise, que Louis XIII, une des bonnes lames du royaume, avait l'habitude de dire que, s'il avait un ami qui se battît, il lui donnerait le conseil de prendre pour second, lui d'abord, et Tréville après, et peut-être même avant lui."
-"English", "Poor Alice! It was as much as she could do, lying down on one side, to look through into the garden with one eye; but to get through was more hopeless than ever: she sat down and began to cry again."
-"Spanish", "-Por Dios, hermano, que agora me acabo de desengañar de un engaño en que he estado todo el mucho tiempo que ha que os conozco, en el cual siempre os he tenido por discreto y prudente en todas vuestras aciones. Pero agora veo que estáis tan lejos de serlo como lo está el cielo de la tierra. ¿Cómo que es posible que cosas de tan poco momento y tan fáciles de remediar puedan tener fuerzas de suspender y absortar un ingenio tan maduro como el vuestro, y tan hecho a romper y atropellar por otras dificultades mayores? A la fe, esto no nace de falta de habilidad, sino de sobra de pereza y penuria de discurso. ¿Queréis ver si es verdad lo que digo? Pues estadme atento y veréis cómo, en un abrir y cerrar de ojos, confundo todas vuestras dificultades y remedio todas las faltas que decís que os suspenden y acobardan para dejar de sacar a la luz del mundo la historia de vuestro famoso don Quijote, luz y espejo de toda la caballería andante."
-"English", "'You promised to tell me your history, you know,' said Alice, 'and why it is you hate--C and D,' she added in a whisper, half afraid that it would be offended again."
-"Spanish", " Donec eris felix, multos numerabis amicos, tempora si fuerint nubila, solus eris."
-"French", "Aussi Louis XIII avait-il un attachement réel pour Tréville, attachement royal, attachement égoïste, c'est vrai, mais qui n'en était pas moins un attachement. C'est que, dans ces temps malheureux, on cherchait fort à s'entourer d'hommes de la trempe de Tréville. Beaucoup pouvaient prendre pour devise l'épithète de fort, qui faisait la seconde partie de son exergue; mais peu de gentilshommes pouvaient réclamer l'épithète de fidèle, qui en formait la première. Tréville était un de ces derniers; c'était une de ces rares organisations, à l'intelligence obéissante comme celle du dogue, à la valeur aveugle, à l'oeil rapide, à la main prompte, à qui l'oeil n'avait été donné que pour voir si le roi était mécontent de quelqu'un et la main que pour frapper ce déplaisant quelqu'un, un Besme, un Maurevers, un Poltrot de Méré, un Vitry. Enfin à Tréville, il n'avait manqué jusque-là que l'occasion; mais il la guettait, et il se promettait bien de la saisir par ses trois cheveux si jamais elle passait à la portée de sa main. Aussi Louis XIII fit-il de Tréville le capitaine de ses mousquetaires, lesquels étaient à Louis XIII, pour le dévouement ou plutôt pour le fanatisme, ce que ses ordinaires étaient à Henri III et ce que sa garde écossaise était à Louis XI."
-"French", "«Ainsi, Son Éminence m'ordonne..., disait la dame."
-"Spanish", "El lenguaje, no entendido de las señoras, y el mal talle de nuestro caballero acrecentaba en ellas la risa y en él el enojo; y pasara muy adelante si a aquel punto no saliera el ventero, hombre que, por ser muy gordo, era muy pacífico, el cual, viendo aquella figura contrahecha, armada de armas tan desiguales como eran la brida, lanza, adarga y coselete, no estuvo en nada en acompañar a las doncellas en las muestras de su contento. Mas, en efeto, temiendo la máquina de tantos pertrechos, determinó de hablarle comedidamente; y así, le dijo:"
-"English", "CHAPTER II. The Pool of Tears"
-"English", "'Oh! So Bill's got to come down the chimney, has he?' said Alice to herself. 'Shy, they seem to put everything upon Bill! I wouldn't be in Bill's place for a good deal: this fireplace is narrow, to be sure; but I THINK I can kick a little!'"
-"Spanish", " Salve, varón famoso, a quien Fortuna, cuando en el trato escuderil te puso, tan blanda y cuerdamente lo dispuso, que lo pasaste sin desgracia alguna. Ya la azada o la hoz poco repugna al andante ejercicio; ya está en uso la llaneza escudera, con que acuso al soberbio que intenta hollar la luna. Envidio a tu jumento y a tu nombre, y a tus alforjas igualmente invidio, que mostraron tu cuerda providencia. Salve otra vez, ¡oh Sancho!, tan buen hombre, que a solo tú nuestro español Ovidio con buzcorona te hace reverencia."
-"French", "Après quoi, content de la façon dont il s'était conduit à Meung, sans remords dans le passé, confiant dans le présent et plein d'espérance dans l'avenir, il se coucha et s'endormit du sommeil du brave."
-"French", ""
-"English", "'I wish I had our Dinah here, I know I do!' said Alice aloud, addressing nobody in particular. 'She'd soon fetch it back!'"
-"French", "-- Par le gentilhomme d'hier. Il est descendu à la cuisine, où était votre pourpoint. Il y est resté seul. Je gagerais que c'est lui qui l'a volée."
-"French", "-- Vraiment? fit le gentilhomme."
-"French", "-- Je vous dis cela, mon gentilhomme, reprit l'hôte, afin que vous vous teniez sur vos gardes."
-"English", " * * * * * *"
-"English", "CHAPTER III. A Caucus-Race and a Long Tale"
-"English", "'What IS a Caucus-race?' said Alice; not that she wanted much to know, but the Dodo had paused as if it thought that SOMEBODY ought to speak, and no one else seemed inclined to say anything."
-"English", "'An arm, you goose! Who ever saw one that size? Why, it fills the whole window!'"
-"Spanish", "marqués de Gibraleón, conde de Benalcázar y Bañares, vizconde de La Puebla de Alcocer, señor de las villas de Capilla, Curiel y Burguillos"
-"English", "At last the Mouse, who seemed to be a person of authority among them, called out, 'Sit down, all of you, and listen to me! I'LL soon make you dry enough!' They all sat down at once, in a large ring, with the Mouse in the middle. Alice kept her eyes anxiously fixed on it, for she felt sure she would catch a bad cold if she did not get dry very soon."
-"French", "-- Mais je vous parle, moi!» s'écria le jeune homme exaspéré de ce mélange d'insolence et de bonnes manières, de convenances et de dédains."
-"English", ""
-"English", "'I beg your pardon,' said Alice very humbly: 'you had got to the fifth bend, I think?'"
-"Spanish", ""
-"Spanish", "Soneto"
-"English", "There were doors all round the hall, but they were all locked; and when Alice had been all the way down one side and up the other, trying every door, she walked sadly down the middle, wondering how she was ever to get out again."
-"French", "Et cette sensation avait été d'autant plus pénible au jeune d'Artagnan (ainsi s'appelait le don Quichotte de cette autre Rossinante), qu'il ne se cachait pas le côté ridicule que lui donnait, si bon cavalier qu'il fût, une pareille monture; aussi avait-il fort soupiré en acceptant le don que lui en avait fait M. d'Artagnan père. Il n'ignorait pas qu'une pareille bête valait au moins vingt livres: il est vrai que les paroles dont le présent avait été accompagné n'avaient pas de prix."
-"French", "«Ah! lâche, ah! misérable, ah! faux gentilhomme!» cria d'Artagnan s'élançant à son tour après le laquais."
-"English", ""
-"English", "'Curiouser and curiouser!' cried Alice (she was so much surprised, that for the moment she quite forgot how to speak good English); 'now I'm opening out like the largest telescope that ever was! Good-bye, feet!' (for when she looked down at her feet, they seemed to be almost out of sight, they were getting so far off). 'Oh, my poor little feet, I wonder who will put on your shoes and stockings for you now, dears? I'm sure _I_ shan't be able! I shall be a great deal too far off to trouble myself about you: you must manage the best way you can;--but I must be kind to them,' thought Alice, 'or perhaps they won't walk the way I want to go! Let me see: I'll give them a new pair of boots every Christmas.'"
-"Spanish", " A vuestra espada no igualó la mía, Febo español, curioso cortesano, ni a la alta gloria de valor mi mano, que rayo fue do nace y muere el día. Imperios desprecié; la monarquía que me ofreció el Oriente rojo en vano dejé, por ver el rostro soberano de Claridiana, aurora hermosa mía. Améla por milagro único y raro, y, ausente en su desgracia, el propio infierno temió mi brazo, que domó su rabia. Mas vos, godo Quijote, ilustre y claro, por Dulcinea sois al mundo eterno, y ella, por vos, famosa, honesta y sabia."
-"Spanish", "-Si vuestra merced, señor caballero, busca posada, amén del lecho (porque en esta venta no hay ninguno), todo lo demás se hallará en ella en mucha abundancia."
-"French", "«Paie, maroufle», s'écria le voyageur toujours galopant à son laquais, lequel jeta aux pieds de l'hôte deux ou trois pièces d'argent et se mit à galoper après son maître."
-"Spanish", " pasar de largo es cordu-. Que suelen en caperu- darles a los que grace-; mas tú quémate las ce- sólo en cobrar buena fa-; que el que imprime neceda- dalas a censo perpe-. Advierte que es desati-, siendo de vidrio el teja-, tomar piedras en las ma- para tirar al veci-. Deja que el hombre de jui-, en las obras que compo-, se vaya con pies de plo-; que el que saca a luz pape- para entretener donce- escribe a tontas y a lo-."
-"Spanish", ""
-"French", "-- De retourner à l'instant même en Angleterre, et de la prévenir directement si le duc quittait Londres."
-"French", "-- Quoi! Monsieur nous quitte déjà?"
-"French", "-- Tout cela, au contraire, est en bas dans la cuisine. Mais puisqu'il vous gêne, ce jeune fou..."
-"English", "'Sure, it does, yer honour: but it's an arm for all that.'"
-"English", "Either the well was very deep, or she fell very slowly, for she had plenty of time as she went down to look about her and to wonder what was going to happen next. First, she tried to look down and make out what she was coming to, but it was too dark to see anything; then she looked at the sides of the well, and noticed that they were filled with cupboards and book-shelves; here and there she saw maps and pictures hung upon pegs. She took down a jar from one of the shelves as she passed; it was labelled 'ORANGE MARMALADE', but to her great disappointment it was empty: she did not like to drop the jar for fear of killing somebody, so managed to put it into one of the cupboards as she fell past it."
-"French", "-- Mais il n'importe, continua d'Artagnan avec l'aplomb national, il n'importe, et l'argent n'est rien: -- cette lettre était tout. J'eusse mieux aimé perdre mille pistoles que de la perdre.»"
-"Spanish", "Es, pues, de saber que este sobredicho hidalgo, los ratos que estaba ocioso, que eran los más del año, se daba a leer libros de caballerías, con tanta afición y gusto, que olvidó casi de todo punto el ejercicio de la caza, y aun la administración de su hacienda. Y llegó a tanto su curiosidad y desatino en esto, que vendió muchas hanegas de tierra de sembradura para comprar libros de caballerías en que leer, y así, llevó a su casa todos cuantos pudo haber dellos; y de todos, ningunos le parecían tan bien como los que compuso el famoso Feliciano de Silva, porque la claridad de su prosa y aquellas entricadas razones suyas le parecían de perlas, y más cuando llegaba a leer aquellos requiebros y cartas de desafíos, donde en muchas partes hallaba escrito: La razón de la sinrazón que a mi razón se hace, de tal manera mi razón enflaquece, que con razón me quejo de la vuestra fermosura. Y también cuando leía: ...los altos cielos que de vuestra divinidad divinamente con las estrellas os fortifican, y os hacen merecedora del merecimiento que merece la vuestra grandeza."
-"Spanish", "»En lo que toca el poner anotaciones al fin del libro, seguramente lo podéis hacer desta manera: si nombráis algún gigante en vuestro libro, hacelde que sea el gigante Golías, y con sólo esto, que os costará casi nada, tenéis una grande anotación, pues podéis poner: El gigante Golías, o Goliat, fue un filisteo a quien el pastor David mató de una gran pedrada en el valle de Terebinto, según se cuenta en el Libro de los Reyes, en el capítulo que vos halláredes que se escribe. Tras esto, para mostraros hombre erudito en letras humanas y cosmógrafo, haced de modo como en vuestra historia se nombre el río Tajo, y veréisos luego con otra famosa anotación, poniendo: El río Tajo fue así dicho por un rey de las Españas; tiene su nacimiento en tal lugar y muere en el mar océano, besando los muros de la famosa ciudad de Lisboa; y es opinión que tiene las arenas de oro, etc. Si tratáredes de ladrones, yo os diré la historia de Caco, que la sé de coro; si de mujeres rameras, ahí está el obispo de Mondoñedo, que os prestará a Lamia, Laida y Flora, cuya anotación os dará gran crédito; si de crueles, Ovidio os entregará a Medea; si de encantadores y hechiceras, Homero tiene a Calipso, y Virgilio a Circe; si de capitanes valerosos, el mesmo Julio César os prestará a sí mismo en sus Comentarios, y Plutarco os dará mil Alejandros. Si tratáredes de amores, con dos onzas que sepáis de la lengua toscana, toparéis con León Hebreo, que os hincha las medidas. Y si no queréis andaros por tierras extrañas, en vuestra casa tenéis a Fonseca, Del amor de Dios, donde se cifra todo lo que vos y el más ingenioso acertare a desear en tal materia. En resolución, no hay más sino que vos procuréis nombrar estos nombres, o tocar estas historias en la vuestra, que aquí he dicho, y dejadme a mí el cargo de poner las anotaciones y acotaciones; que yo os voto a tal de llenaros las márgenes y de gastar cuatro pliegos en el fin del libro."
-"English", "'In that case,' said the Dodo solemnly, rising to its feet, 'I move that the meeting adjourn, for the immediate adoption of more energetic remedies--'"
-"Spanish", "Soneto"
-"French", "Mais là, comme il descendait de cheval à la porte du Franc Meunier sans que personne, hôte, garçon ou palefrenier, fût venu prendre l'étrier au montoir, d'Artagnan avisa à une fenêtre entrouverte du rez-de-chaussée un gentilhomme de belle taille et de haute mine, quoique au visage légèrement renfrogné, lequel causait avec deux personnes qui paraissaient l'écouter avec déférence. D'Artagnan crut tout naturellement, selon son habitude, être l'objet de la conversation et écouta. Cette fois, d'Artagnan ne s'était trompé qu'à moitié: ce n'était pas de lui qu'il était question, mais de son cheval. Le gentilhomme paraissait énumérer à ses auditeurs toutes ses qualités, et comme, ainsi que je l'ai dit, les auditeurs paraissaient avoir une grande déférence pour le narrateur, ils éclataient de rire à tout moment. Or, comme un demi-sourire suffisait pour éveiller l'irascibilité du jeune homme, on comprend quel effet produisit sur lui tant de bruyante hilarité."
-"English", "It was high time to go, for the pool was getting quite crowded with the birds and animals that had fallen into it: there were a Duck and a Dodo, a Lory and an Eaglet, and several other curious creatures. Alice led the way, and the whole party swam to the shore."
-"French", "-- Mais avant de s'évanouir il a rassemblé toutes ses forces pour vous appeler et vous défier en vous appelant."
-"French", "-- Ne lui échappera pas? reprit l'inconnu en fronçant le sourcil."
-"French", "«Oui, bien lâche, murmura d'Artagnan; mais elle, bien belle!"
-"English", "'Not a bit,' said the Caterpillar."
-"French", "-- En vérité, monsieur? continua l'inconnu plus calme que jamais, eh bien, c'est parfaitement juste.» Et tournant sur ses talons, il s'apprêta à rentrer dans l'hôtellerie par la grande porte, sous laquelle d'Artagnan en arrivant avait remarqué un cheval tout sellé."
-"English", " * * * * * * *"
-"French", "On devine si notre joie fut grande, lorsqu'en feuilletant ce manuscrit, notre dernier espoir, nous trouvâmes à la vingtième page le nom d'Athos, à la vingt-septième le nom de Porthos, et à la trente et unième le nom d'Aramis."
-"English", "Next came an angry voice--the Rabbit's--'Pat! Pat! Where are you?' And then a voice she had never heard before, 'Sure then I'm here! Digging for apples, yer honour!'"
-"French", "-- Milady», balbutia d'Artagnan."
-"French", "Mais, comme on le sait, ce qui frappe l'esprit capricieux du poète n'est pas toujours ce qui impressionne la masse des lecteurs. Or, tout en admirant, comme les autres admireront sans doute, les détails que nous avons signalés, la chose qui nous préoccupa le plus est une chose à laquelle bien certainement personne avant nous n'avait fait la moindre attention."
-"French", "-- Oui, parfaitement saine et sauve, mon cher hôtelier, et c'est moi qui vous demande ce qu'est devenu notre jeune homme."
-"English", "'Digging for apples, indeed!' said the Rabbit angrily. 'Here! Come and help me out of THIS!' (Sounds of more broken glass.)"
-"English", "'Not I!' said the Lory hastily."
-"French", "«Tournez, tournez donc, monsieur le railleur, que je ne vous frappe point par-derrière."
-"English", "'Sure, it's an arm, yer honour!' (He pronounced it 'arrum.')"
-"Spanish", "Estaban acaso a la puerta dos mujeres mozas, destas que llaman del partido, las cuales iban a Sevilla con unos arrieros que en la venta aquella noche acertaron a hacer jornada; y, como a nuestro aventurero todo cuanto pensaba, veía o imaginaba le parecía ser hecho y pasar al modo de lo que había leído, luego que vio la venta, se le representó que era un castillo con sus cuatro torres y chapiteles de luciente plata, sin faltarle su puente levadiza y honda cava, con todos aquellos adherentes que semejantes castillos se pintan. Fuese llegando a la venta, que a él le parecía castillo, y a poco trecho della detuvo las riendas a Rocinante, esperando que algún enano se pusiese entre las almenas a dar señal con alguna trompeta de que llegaba caballero al castillo. Pero, como vio que se tardaban y que Rocinante se daba priesa por llegar a la caballeriza, se llegó a la puerta de la venta, y vio a las dos destraídas mozas que allí estaban, que a él le parecieron dos hermosas doncellas o dos graciosas damas que delante de la puerta del castillo se estaban solazando. En esto, sucedió acaso que un porquero que andaba recogiendo de unos rastrojos una manada de puercos -que, sin perdón, así se llaman- tocó un cuerno, a cuya señal ellos se recogen, y al instante se le representó a don Quijote lo que deseaba, que era que algún enano hacía señal de su venida; y así, con estraño contento, llegó a la venta y a las damas, las cuales, como vieron venir un hombre de aquella suerte, armado y con lanza y adarga, llenas de miedo, se iban a entrar en la venta; pero don Quijote, coligiendo por su huida su miedo, alzándose la visera de papelón y descubriendo su seco y polvoroso rostro, con gentil talante y voz reposada, les dijo:"
-"French", "Et l'inconnu, tout en marmottant, se dirigea vers la cuisine."
-"English", " * * * * * *"
-"English", "The Caterpillar and Alice looked at each other for some time in silence: at last the Caterpillar took the hookah out of its mouth, and addressed her in a languid, sleepy voice."
-"Spanish", "Y, diciendo esto, fue a tener el estribo a don Quijote, el cual se apeó con mucha dificultad y trabajo, como aquel que en todo aquel día no se había desayunado."
-"English", ""
-"French", "-- Moi, je retourne à Paris."
-"English", "So she was considering in her own mind (as well as she could, for the hot day made her feel very sleepy and stupid), whether the pleasure of making a daisy-chain would be worth the trouble of getting up and picking the daisies, when suddenly a White Rabbit with pink eyes ran close by her."
-"French", "-- Oh! non, Votre Excellence, ce n'est pas le diable, reprit l'hôte avec une grimace de mépris, car pendant son évanouissement nous l'avons fouillé, et il n'a dans son paquet qu'une chemise et dans sa bourse que onze écus, ce qui ne l'a pas empêché de dire en s'évanouissant que si pareille chose était arrivée à Paris, vous vous en repentiriez tout de suite, tandis qu'ici vous ne vous en repentirez que plus tard."
-"English", "'Well!' thought Alice to herself, 'after such a fall as this, I shall think nothing of tumbling down stairs! How brave they'll all think me at home! Why, I wouldn't say anything about it, even if I fell off the top of the house!' (Which was very likely true.)"
-"Spanish", "Dijo luego al huésped que le tuviese mucho cuidado de su caballo, porque era la mejor pieza que comía pan en el mundo. Miróle el ventero, y no le pareció tan bueno como don Quijote decía, ni aun la mitad; y, acomodándole en la caballeriza, volvió a ver lo que su huésped mandaba, al cual estaban desarmando las doncellas, que ya se habían reconciliado con él; las cuales, aunque le habían quitado el peto y el espaldar, jamás supieron ni pudieron desencajarle la gola, ni quitalle la contrahecha celada, que traía atada con unas cintas verdes, y era menester cortarlas, por no poderse quitar los ñudos; mas él no lo quiso consentir en ninguna manera, y así, se quedó toda aquella noche con la celada puesta, que era la más graciosa y estraña figura que se pudiera pensar; y, al desarmarle, como él se imaginaba que aquellas traídas y llevadas que le desarmaban eran algunas principales señoras y damas de aquel castillo, les dijo con mucho donaire:"
-"English", "'Ugh!' said the Lory, with a shiver."
-"French", "Mais l'inconnu ne savait pas encore à quel genre d'entêté il avait affaire; d'Artagnan n'était pas homme à jamais demander merci. Le combat continua donc quelques secondes encore; enfin d'Artagnan, épuisé, laissa échapper son épée qu'un coup de bâton brisa en deux morceaux. Un autre coup, qui lui entama le front, le renversa presque en même temps tout sanglant et presque évanoui."
-"English", "'Now tell me, Pat, what's that in the window?'"
-"Spanish", "-Como haya muchas truchuelas -respondió don Quijote-, podrán servir de una trucha, porque eso se me da que me den ocho reales en sencillos que en una pieza de a ocho. Cuanto más, que podría ser que fuesen estas truchuelas como la ternera, que es mejor que la vaca, y el cabrito que el cabrón. Pero, sea lo que fuere, venga luego, que el trabajo y peso de las armas no se puede llevar sin el gobierno de las tripas."
-"Spanish", ""
-"Spanish", "-¡Oh princesa Dulcinea, señora deste cautivo corazón!, mucho agravio me habedes fecho en despedirme y reprocharme con el riguroso afincamiento de mandarme no parecer ante la vuestra fermosura. Plégaos, señora, de membraros deste vuestro sujeto corazón, que tantas cuitas por vuestro amor padece."
-"Spanish", "A lo cual él dijo:"
-"French", "-- Tel rit du cheval qui n'oserait pas rire du maître! s'écria l'émule de Tréville, furieux."
-"Spanish", "-Según eso, las camas de vuestra merced serán duras peñas, y su dormir, siempre velar; y siendo así, bien se puede apear, con seguridad de hallar en esta choza ocasión y ocasiones para no dormir en todo un año, cuanto más en una noche."
-"French", "«Ce cheval est décidément ou plutôt a été dans sa jeunesse bouton d'or, reprit l'inconnu continuant les investigations commencées et s'adressant à ses auditeurs de la fenêtre, sans paraître aucunement remarquer l'exaspération de d'Artagnan, qui cependant se redressait entre lui et eux. C'est une couleur fort connue en botanique, mais jusqu'à présent fort rare chez les chevaux."
-"Spanish", "Hechas, pues, estas prevenciones, no quiso aguardar más tiempo a poner en efeto su pensamiento, apretándole a ello la falta que él pensaba que hacía en el mundo su tardanza, según eran los agravios que pensaba deshacer, tuertos que enderezar, sinrazones que emendar, y abusos que mejorar y deudas que satisfacer. Y así, sin dar parte a persona alguna de su intención, y sin que nadie le viese, una mañana, antes del día, que era uno de los calurosos del mes de julio, se armó de todas sus armas, subió sobre Rocinante, puesta su mal compuesta celada, embrazó su adarga, tomó su lanza, y, por la puerta falsa de un corral, salió al campo con grandísimo contento y alborozo de ver con cuánta facilidad había dado principio a su buen deseo. Mas, apenas se vio en el campo, cuando le asaltó un pensamiento terrible, y tal, que por poco le hiciera dejar la comenzada empresa; y fue que le vino a la memoria que no era armado caballero, y que, conforme a ley de caballería, ni podía ni debía tomar armas con ningún caballero; y, puesto que lo fuera, había de llevar armas blancas, como novel caballero, sin empresa en el escudo, hasta que por su esfuerzo la ganase. Estos pensamientos le hicieron titubear en su propósito; mas, pudiendo más su locura que otra razón alguna, propuso de hacerse armar caballero del primero que topase, a imitación de otros muchos que así lo hicieron, según él había leído en los libros que tal le tenían. En lo de las armas blancas, pensaba limpiarlas de manera, en teniendo lugar, que lo fuesen más que un armiño; y con esto se quietó y prosiguió su camino, sin llevar otro que aquel que su caballo quería, creyendo que en aquello consistía la fuerza de las aventuras."
-"Spanish", "Por mandado del Rey nuestro señor:"
-"English", "The first question of course was, how to get dry again: they had a consultation about this, and after a few minutes it seemed quite natural to Alice to find herself talking familiarly with them, as if she had known them all her life. Indeed, she had quite a long argument with the Lory, who at last turned sulky, and would only say, 'I am older than you, and must know better'; and this Alice would not allow without knowing how old it was, and, as the Lory positively refused to tell its age, there was no more to be said."
-"English", "'What I was going to say,' said the Dodo in an offended tone, 'was, that the best thing to get us dry would be a Caucus-race.'"
-"English", "'I wish I hadn't mentioned Dinah!' she said to herself in a melancholy tone. 'Nobody seems to like her, down here, and I'm sure she's the best cat in the world! Oh, my dear Dinah! I wonder if I shall ever see you any more!' And here poor Alice began to cry again, for she felt very lonely and low-spirited. In a little while, however, she again heard a little pattering of footsteps in the distance, and she looked up eagerly, half hoping that the Mouse had changed his mind, and was coming back to finish his story."
-"French", "Mon intention n'est pas de faire ici une analyse de ce curieux ouvrage, et je me contenterai d'y renvoyer ceux de mes lecteurs qui apprécient les tableaux d'époques. Ils y trouveront des portraits crayonnés de main de maître; et, quoique les esquisses soient, pour la plupart du temps, tracées sur des portes de caserne et sur des murs de cabaret, ils n'y reconnaîtront pas moins, aussi ressemblantes que dans l'histoire de M. Anquetil, les images de Louis XIII, d'Anne d'Autriche, de Richelieu, de Mazarin et de la plupart des courtisans de l'époque."
-"French", "-- C'est comme j'ai l'honneur de vous le dire, Excellence.»"
-"French", "-- Si fait, il frappait sur sa poche, et il disait: «Nous verrons ce que M. de Tréville pensera de cette insulte faite à son protégé."
-"French", "On sait que onze écus faisaient juste la somme qui restait dans la bourse de d'Artagnan."
-"Spanish", "Pensó el huésped que el haberle llamado castellano había sido por haberle parecido de los sanos de Castilla, aunque él era andaluz, y de los de la playa de Sanlúcar, no menos ladrón que Caco, ni menos maleante que estudiantado paje; y así, le respondió:"
-"English", "'What a curious feeling!' said Alice; 'I must be shutting up like a telescope.'"
-"English", "Soneto"
-"English", "It was all very well to say 'Drink me,' but the wise little Alice was not going to do THAT in a hurry. 'No, I'll look first,' she said, 'and see whether it's marked 'poison' or not'; for she had read several nice little histories about children who had got burnt, and eaten up by wild beasts and other unpleasant things, all because they WOULD not remember the simple rules their friends had taught them: such as, that a red-hot poker will burn you if you hold it too long; and that if you cut your finger VERY deeply with a knife, it usually bleeds; and she had never forgotten that, if you drink much from a bottle marked 'poison,' it is almost certain to disagree with you, sooner or later."
-"Spanish", "TESTIMONIO DE LAS ERRATAS"
-"French", "-- Sans châtier cet insolent petit garçon?» demanda la dame."
-"English", "'Well, it's got no business there, at any rate: go and take it away!'"
-"English", " 'Fury said to a mouse, That he met in the house, 'Let us both go to law: I will prosecute YOU.--Come, I'll take no denial; We must have a trial: For really this morning I've nothing to do.' Said the mouse to the cur, 'Such a trial, dear Sir, With no jury or judge, would be wasting our breath.' 'I'll be judge, I'll be jury,' Said cunning old Fury: 'I'll try the whole cause, and condemn you to death.''"
-"English", "However, this bottle was NOT marked 'poison,' so Alice ventured to taste it, and finding it very nice, (it had, in fact, a sort of mixed flavour of cherry-tart, custard, pine-apple, roast turkey, toffee, and hot buttered toast,) she very soon finished it off."
-"English", "'So you did, old fellow!' said the others."
-"Spanish", "Con éstos iba ensartando otros disparates, todos al modo de los que sus libros le habían enseñado, imitando en cuanto podía su lenguaje. Con esto, caminaba tan despacio, y el sol entraba tan apriesa y con tanto ardor, que fuera bastante a derretirle los sesos, si algunos tuviera."
-"English", "Alice was beginning to get very tired of sitting by her sister on the bank, and of having nothing to do: once or twice she had peeped into the book her sister was reading, but it had no pictures or conversations in it, 'and what is the use of a book,' thought Alice 'without pictures or conversation?'"
-"English", "Puis, à demi-voix, et comme s'il se fût parlé à lui-même:"
-"English", "'Come, there's no use in crying like that!' said Alice to herself, rather sharply; 'I advise you to leave off this minute!' She generally gave herself very good advice, (though she very seldom followed it), and sometimes she scolded herself so severely as to bring tears into her eyes; and once she remembered trying to box her own ears for having cheated herself in a game of croquet she was playing against herself, for this curious child was very fond of pretending to be two people. 'But it's no use now,' thought poor Alice, 'to pretend to be two people! Why, there's hardly enough of me left to make ONE respectable person!'"
-"Spanish", "ORLANDO FURIOSO A DON QUIJOTE DE LA MANCHA"
-"Spanish", "»Vengamos ahora a la citación de los autores que los otros libros tienen, que en el vuestro os faltan. El remedio que esto tiene es muy fácil, porque no habéis de hacer otra cosa que buscar un libro que los acote todos, desde la A hasta la Z, como vos decís. Pues ese mismo abecedario pondréis vos en vuestro libro; que, puesto que a la clara se vea la mentira, por la poca necesidad que vos teníades de aprovecharos dellos, no importa nada; y quizá alguno habrá tan simple, que crea que de todos os habéis aprovechado en la simple y sencilla historia vuestra; y, cuando no sirva de otra cosa, por lo menos servirá aquel largo catálogo de autores a dar de improviso autoridad al libro. Y más, que no habrá quien se ponga a averiguar si los seguistes o no los seguistes, no yéndole nada en ello. Cuanto más que, si bien caigo en la cuenta, este vuestro libro no tiene necesidad de ninguna cosa de aquellas que vos decís que le falta, porque todo él es una invectiva contra los libros de caballerías, de quien nunca se acordó Aristóteles, ni dijo nada San Basilio, ni alcanzó Cicerón; ni caen debajo de la cuenta de sus fabulosos disparates las puntualidades de la verdad, ni las observaciones de la astrología; ni le son de importancia las medidas geométricas, ni la confutación de los argumentos de quien se sirve la retórica; ni tiene para qué predicar a ninguno, mezclando lo humano con lo divino, que es un género de mezcla de quien no se ha de vestir ningún cristiano entendimiento. Sólo tiene que aprovecharse de la imitación en lo que fuere escribiendo; que, cuanto ella fuere más perfecta, tanto mejor será lo que se escribiere. Y, pues esta vuestra escritura no mira a más que a deshacer la autoridad y cabida que en el mundo y en el vulgo tienen los libros de caballerías, no hay para qué andéis mendigando sentencias de filósofos, consejos de la Divina Escritura, fábulas de poetas, oraciones de retóricos, milagros de santos, sino procurar que a la llana, con palabras significantes, honestas y bien colocadas, salga vuestra oración y período sonoro y festivo; pintando, en todo lo que alcanzáredes y fuere posible, vuestra intención, dando a entender vuestros conceptos sin intricarlos y escurecerlos. Procurad también que, leyendo vuestra historia, el melancólico se mueva a risa, el risueño la acreciente, el simple no se enfade, el discreto se admire de la invención, el grave no la desprecie, ni el prudente deje de alabarla. En efecto, llevad la mira puesta a derribar la máquina mal fundada destos caballerescos libros, aborrecidos de tantos y alabados de muchos más; que si esto alcanzásedes, no habríades alcanzado poco."
-"English", "'I wish I hadn't cried so much!' said Alice, as she swam about, trying to find her way out. 'I shall be punished for it now, I suppose, by being drowned in my own tears! That WILL be a queer thing, to be sure! However, everything is queer to-day.'"
-"English", "There seemed to be no use in waiting by the little door, so she went back to the table, half hoping she might find another key on it, or at any rate a book of rules for shutting people up like telescopes: this time she found a little bottle on it, ('which certainly was not here before,' said Alice,) and round the neck of the bottle was a paper label, with the words 'DRINK ME' beautifully printed on it in large letters."
-"English", "The next thing was to eat the comfits: this caused some noise and confusion, as the large birds complained that they could not taste theirs, and the small ones choked and had to be patted on the back. However, it was over at last, and they sat down again in a ring, and begged the Mouse to tell them something more."
-"Spanish", "Mirábanle las mozas, y andaban con los ojos buscándole el rostro, que la mala visera le encubría; mas, como se oyeron llamar doncellas, cosa tan fuera de su profesión, no pudieron tener la risa, y fue de manera que don Quijote vino a correrse y a decirles:"
-"Spanish", "AL LIBRO DE DON QUIJOTE DE LA MANCHA"
-"Spanish", "Este libro no tiene cosa digna que no corresponda a su original; en testimonio de lo haber correcto, di esta fee. En el Colegio de la Madre de Dios de los Teólogos de la , en primero de diciembre"
-"English", "'I'm sure those are not the right words,' said poor Alice, and her eyes filled with tears again as she went on, 'I must be Mabel after all, and I shall have to go and live in that poky little house, and have next to no toys to play with, and oh! ever so many lessons to learn! No, I've made up my mind about it; if I'm Mabel, I'll stay down here! It'll be no use their putting their heads down and saying 'Come up again, dear!' I shall only look up and say 'Who am I then? Tell me that first, and then, if I like being that person, I'll come up: if not, I'll stay down here till I'm somebody else'--but, oh dear!' cried Alice, with a sudden burst of tears, 'I do wish they WOULD put their heads down! I am so VERY tired of being all alone here!'"
-"Spanish", "EL CABALLERO DEL FEBO A DON QUIJOTE DE LA MANCHA"
-"French", "L'inconnu allait répondre: mais, au moment où il ouvrait la bouche, d'Artagnan, qui avait tout entendu, s'élança sur le seuil de la porte."
-"English", "En fe del buen acogimiento y honra que hace Vuestra Excelencia a toda suerte de libros, como príncipe tan inclinado a favorecer las buenas artes, mayormente las que por su nobleza no se abaten al servicio y granjerías del vulgo, he determinado de sacar a luz al Ingenioso hidalgo don Quijote de la Mancha, al abrigo del clarísimo nombre de Vuestra Excelencia, a quien, con el acatamiento que debo a tanta grandeza, suplico le reciba agradablemente en su protección, para que a su sombra, aunque desnudo de aquel precioso ornamento de elegancia y erudición de que suelen andar vestidas las obras que se componen en las casas de los hombres que saben, ose parecer seguramente en el juicio de algunos que, continiéndose en los límites de su ignorancia, suelen condenar con más rigor y menos justicia los trabajos ajenos; que, poniendo los ojos la prudencia de Vuestra Excelencia en mi buen deseo, fío que no desdeñará la cortedad de tan humilde servicio."
-"French", "-- Une lettre adressée à M. de Tréville, capitaine des mousquetaires."
-"English", "Luckily for Alice, the little magic bottle had now had its full effect, and she grew no larger: still it was very uncomfortable, and, as there seemed to be no sort of chance of her ever getting out of the room again, no wonder she felt unhappy."
-"English", "'It IS a long tail, certainly,' said Alice, looking down with wonder at the Mouse's tail; 'but why do you call it sad?' And she kept on puzzling about it while the Mouse was speaking, so that her idea of the tale was something like this:--"
-"Spanish", " -Nunca fuera caballero de damas tan bien servido como fuera don Quijote cuando de su aldea vino: doncellas curaban dél; princesas, del su rocino,"
-"English", "The first thing she heard was a general chorus of 'There goes Bill!' then the Rabbit's voice along--'Catch him, you by the hedge!' then silence, and then another confusion of voices--'Hold up his head--Brandy now--Don't choke him--How was it, old fellow? What happened to you? Tell us all about it!'"
-"English", " 'How doth the little crocodile Improve his shining tail, And pour the waters of the Nile On every golden scale!"
-"French", "-- Songez, s'écria Milady en voyant le gentilhomme porter la main à son épée, songez que le moindre retard peut tout perdre."
-"English", "'Well, perhaps your feelings may be different,' said Alice; 'all I know is, it would feel very queer to ME.'"
-"English", "As she said this she looked down at her hands, and was surprised to see that she had put on one of the Rabbit's little white kid gloves while she was talking. 'How CAN I have done that?' she thought. 'I must be growing small again.' She got up and went to the table to measure herself by it, and found that, as nearly as she could guess, she was now about two feet high, and was going on shrinking rapidly: she soon found out that the cause of this was the fan she was holding, and she dropped it hastily, just in time to avoid shrinking away altogether."
-"French", "-- Sandis! je le crois bien! s'écria le Gascon qui comptait sur cette lettre pour faire son chemin à la cour; elle contenait ma fortune."
-"Spanish", "Estando en esto, llegó acaso a la venta un castrador de puercos; y, así como llegó, sonó su silbato de cañas cuatro o cinco veces, con lo cual acabó de confirmar don Quijote que estaba en algún famoso castillo, y que le servían con música, y que el abadejo eran truchas; el pan, candeal; y las rameras, damas; y el ventero, castellano del castillo, y con esto daba por bien empleada su determinación y salida. Mas lo que más le fatigaba era el no verse armado caballero, por parecerle que no se podría poner legítimamente en aventura alguna sin recebir la orden de caballería."
-"Spanish", " Soy Sancho Panza, escude- del manchego don Quijo-. Puse pies en polvoro-, por vivir a lo discre-; que el tácito Villadie- toda su razón de esta- cifró en una retira-, según siente Celesti-, libro, en mi opinión, divi- si encubriera más lo huma-. A Rocinante Soy Rocinante, el famo- bisnieto del gran Babie-. Por pecados de flaque-, fui a poder de un don Quijo-. Parejas corrí a lo flo-; mas, por uña de caba-, no se me escapó ceba-; que esto saqué a Lazari- cuando, para hurtar el vi- al ciego, le di la pa-."
-"French", "Car notre jeune homme avait une monture, et cette monture était même si remarquable, qu'elle fut remarquée: c'était un bidet du Béarn, âgé de douze ou quatorze ans, jaune de robe, sans crins à la queue, mais non pas sans javarts aux jambes, et qui, tout en marchant la tête plus bas que les genoux, ce qui rendait inutile l'application de la martingale, faisait encore également ses huit lieues par jour. Malheureusement les qualités de ce cheval étaient si bien cachées sous son poil étrange et son allure incongrue, que dans un temps où tout le monde se connaissait en chevaux, l'apparition du susdit bidet à Meung, où il était entré il y avait un quart d'heure à peu près par la porte de Beaugency, produisit une sensation dont la défaveur rejaillit jusqu'à son cavalier."
-"English", ""
-"English", "'I can't explain MYSELF, I'm afraid, sir' said Alice, 'because I'm not myself, you see.'"
-"English", " * * * * * * *"
-"Spanish", "Si de la amistad y amor que Dios manda que se tenga al enemigo, entraros luego al punto por la Escritura Divina, que lo podéis hacer con tantico de curiosidad, y decir las palabras, por lo menos, del mismo Dios: Ego autem dico vobis: diligite inimicos vestros. Si tratáredes de malos pensamientos, acudid con el Evangelio: De corde exeunt cogitationes malae. Si de la instabilidad de los amigos, ahí está Catón, que os dará su dístico:"
-"French", "-- Il va mieux, dit l'hôte: il s'est évanoui tout à fait."
-"English", ""
-"English", "'Hand it over here,' said the Dodo."
-"Spanish", "DON BELIANÍS DE GRECIA A DON QUIJOTE DE LA MANCHA"
-"English", "After a while, finding that nothing more happened, she decided on going into the garden at once; but, alas for poor Alice! when she got to the door, she found she had forgotten the little golden key, and when she went back to the table for it, she found she could not possibly reach it: she could see it quite plainly through the glass, and she tried her best to climb up one of the legs of the table, but it was too slippery; and when she had tired herself out with trying, the poor little thing sat down and cried."
-"English", "'A barrowful of WHAT?' thought Alice; but she had not long to doubt, for the next moment a shower of little pebbles came rattling in at the window, and some of them hit her in the face. 'I'll put a stop to this,' she said to herself, and shouted out, 'You'd better not do that again!' which produced another dead silence."
-"English", "AL DUQUE DE BÉJAR,"
-"French", "«Diable! fit l'hôte tout à fait désespéré."
-"French", "Malheureusement une circonstance s'opposait à ce que le jeune homme accomplît sa menace: c'est que, comme nous l'avons dit, son épée avait été, dans sa première lutte, brisée en deux morceaux, ce qu'il avait parfaitement oublié. Il en résulta que, lorsque d'Artagnan voulut en effet dégainer, il se trouva purement et simplement armé d'un tronçon d'épée de huit ou dix pouces à peu près, que l'hôte avait soigneusement renfoncé dans le fourreau. Quant au reste de la lame, le chef l'avait adroitement détourné pour s'en faire une lardoire."
-"French", "Le même jour le jeune homme se mit en route, muni des trois présents paternels et qui se composaient, comme nous l'avons dit, de quinze écus, du cheval et de la lettre pour M. de Tréville; comme on le pense bien, les conseils avaient été donnés par-dessus le marché."
-"French", "Un trait de lumière frappa tout à coup l'esprit de l'hôte qui se donnait au diable en ne trouvant rien."
-"English", "Oyendo lo cual mi amigo, dándose una palmada en la frente y disparando en una carga de risa, me dijo:"
-"English", "As she said these words her foot slipped, and in another moment, splash! she was up to her chin in salt water. Her first idea was that she had somehow fallen into the sea, 'and in that case I can go back by railway,' she said to herself. (Alice had been to the seaside once in her life, and had come to the general conclusion, that wherever you go to on the English coast you find a number of bathing machines in the sea, some children digging in the sand with wooden spades, then a row of lodging houses, and behind them a railway station.) However, she soon made out that she was in the pool of tears which she had wept when she was nine feet high."
-"Spanish", "Soneto"
-"English", "There was nothing so VERY remarkable in that; nor did Alice think it so VERY much out of the way to hear the Rabbit say to itself, 'Oh dear! Oh dear! I shall be late!' (when she thought it over afterwards, it occurred to her that she ought to have wondered at this, but at the time it all seemed quite natural); but when the Rabbit actually TOOK A WATCH OUT OF ITS WAISTCOAT-POCKET, and looked at it, and then hurried on, Alice started to her feet, for it flashed across her mind that she had never before seen a rabbit with either a waistcoat-pocket, or a watch to take out of it, and burning with curiosity, she ran across the field after it, and fortunately was just in time to see it pop down a large rabbit-hole under the hedge."
-"English", "'It isn't,' said the Caterpillar."
-"Spanish", "DE SOLISDÁN A DON QUIJOTE DE LA MANCHA"
-"French", "Et l'inconnu tomba dans une réflexion qui dura quelques minutes."
-"Spanish", ""
-"English", "Alice was not a bit hurt, and she jumped up on to her feet in a moment: she looked up, but it was all dark overhead; before her was another long passage, and the White Rabbit was still in sight, hurrying down it. There was not a moment to be lost: away went Alice like the wind, and was just in time to hear it say, as it turned a corner, 'Oh my ears and whiskers, how late it's getting!' She was close behind it when she turned the corner, but the Rabbit was no longer to be seen: she found herself in a long, low hall, which was lit up by a row of lamps hanging from the roof."
-"English", "'And who is Dinah, if I might venture to ask the question?' said the Lory."
-"English", "Down, down, down. Would the fall NEVER come to an end! 'I wonder how many miles I've fallen by this time?' she said aloud. 'I must be getting somewhere near the centre of the earth. Let me see: that would be four thousand miles down, I think--' (for, you see, Alice had learnt several things of this sort in her lessons in the schoolroom, and though this was not a VERY good opportunity for showing off her knowledge, as there was no one to listen to her, still it was good practice to say it over) '--yes, that's about the right distance--but then I wonder what Latitude or Longitude I've got to?' (Alice had no idea what Latitude was, or Longitude either, but thought they were nice grand words to say.)"
-"English", "'THAT you won't' thought Alice, and, after waiting till she fancied she heard the Rabbit just under the window, she suddenly spread out her hand, and made a snatch in the air. She did not get hold of anything, but she heard a little shriek and a fall, and a crash of broken glass, from which she concluded that it was just possible it had fallen into a cucumber-frame, or something of the sort."
-"English", "'The first thing I've got to do,' said Alice to herself, as she wandered about in the wood, 'is to grow to my right size again; and the second thing is to find my way into that lovely garden. I think that will be the best plan.'"
-"French", "Dès lors nous n'eûmes plus de repos que nous n'eussions retrouvé, dans les ouvrages contemporains, une trace quelconque de ces noms extraordinaires qui avaient fort éveillé notre curiosité."
-"English", "'Well, perhaps not,' said Alice in a soothing tone: 'don't be angry about it. And yet I wish I could show you our cat Dinah: I think you'd take a fancy to cats if you could only see her. She is such a dear quiet thing,' Alice went on, half to herself, as she swam lazily about in the pool, 'and she sits purring so nicely by the fire, licking her paws and washing her face--and she is such a nice soft thing to nurse--and she's such a capital one for catching mice--oh, I beg your pardon!' cried Alice again, for this time the Mouse was bristling all over, and she felt certain it must be really offended. 'We won't talk about her any more if you'd rather not.'"
-"French", "-- Et il n'a nommé personne dans sa colère?"
-"Spanish", "DEL DONOSO, POETA ENTREVERADO, A SANCHO PANZA Y ROCINANTE"
-"French", "«C'est cet insolent petit garçon qui châtie les autres, s'écria-t- il, et j'espère bien que cette fois-ci celui qu'il doit châtier ne lui échappera pas comme la première."
-"Spanish", "Limpias, pues, sus armas, hecho del morrión celada, puesto nombre a su rocín y confirmándose a sí mismo, se dio a entender que no le faltaba otra cosa sino buscar una dama de quien enamorarse; porque el caballero andante sin amores era árbol sin hojas y sin fruto y cuerpo sin alma. Decíase él a sí:"
-"French", "CHAPITRE II L'ANTICHAMBRE DE M. DE TRÉVILLE"
-"Spanish", "Fue luego a ver su rocín, y, aunque tenía más cuartos que un real y más tachas que el caballo de Gonela, que tantum pellis et ossa fuit, le pareció que ni el Bucéfalo de Alejandro ni Babieca el del Cid con él se igualaban. Cuatro días se le pasaron en imaginar qué nombre le pondría; porque, según se decía él a sí mesmo, no era razón que caballo de caballero tan famoso, y tan bueno él por sí, estuviese sin nombre conocido; y ansí, procuraba acomodársele de manera que declarase quién había sido, antes que fuese de caballero andante, y lo que era entonces; pues estaba muy puesto en razón que, mudando su señor estado, mudase él también el nombre, y le cobrase famoso y de estruendo, como convenía a la nueva orden y al nuevo ejercicio que ya profesaba. Y así, después de muchos nombres que formó, borró y quitó, añadió, deshizo y tornó a hacer en su memoria e imaginación, al fin le vino a llamar Rocinante: nombre, a su parecer, alto, sonoro y significativo de lo que había sido cuando fue rocín, antes de lo que ahora era, que era antes y primero de todos los rocines del mundo."
-"French", "«Mémoires de M. le comte de La Fère, concernant quelques-uns des événements qui se passèrent en France vers la fin du règne du roi Louis XIII et le commencement du règne du roi Louis XIV.»"
-"French", "Cependant d'Artagnan voulut d'abord se rendre compte de la physionomie de l'impertinent qui se moquait de lui. Il fixa son regard fier sur l'étranger et reconnut un homme de quarante à quarante-cinq ans, aux yeux noirs et perçants, au teint pâle, au nez fortement accentué, à la moustache noire et parfaitement taillée; il était vêtu d'un pourpoint et d'un haut-de-chausses violet avec des aiguillettes de même couleur, sans aucun ornement que les crevés habituels par lesquels passait la chemise. Ce haut- de-chausses et ce pourpoint, quoique neufs, paraissaient froissés comme des habits de voyage longtemps renfermés dans un portemanteau. D'Artagnan fit toutes ces remarques avec la rapidité de l'observateur le plus minutieux, et sans doute par un sentiment instinctif qui lui disait que cet inconnu devait avoir une grande influence sur sa vie à venir."
-"French", "Pendant ce temps, l'hôte, qui ne doutait pas que ce ne fût la présence du jeune garçon qui chassât l'inconnu de son hôtellerie, était remonté chez sa femme et avait trouvé d'Artagnan maître enfin de ses esprits. Alors, tout en lui faisant comprendre que la police pourrait bien lui faire un mauvais parti pour avoir été chercher querelle à un grand seigneur -- car, à l'avis de l'hôte, l'inconnu ne pouvait être qu'un grand seigneur --, il le détermina, malgré sa faiblesse, à se lever et à continuer son chemin. D'Artagnan à moitié abasourdi, sans pourpoint et la tête tout emmaillotée de linges, se leva donc et, poussé par l'hôte, commença de descendre; mais, en arrivant à la cuisine, la première chose qu'il aperçut fut son provocateur qui causait tranquillement au marchepied d'un lourd carrosse attelé de deux gros chevaux normands."
-"Spanish", "-Dichosa edad, y siglo dichoso aquel adonde saldrán a luz las famosas hazañas mías, dignas de entallarse en bronces, esculpirse en mármoles y pintarse en tablas para memoria en lo futuro. ¡Oh tú, sabio encantador, quienquiera que seas, a quien ha de tocar el ser coronista desta peregrina historia, ruégote que no te olvides de mi buen Rocinante, compañero eterno mío en todos mis caminos y carreras!"
-"French", "Nous l'avouons, ces trois noms étrangers nous frappèrent, et il nous vint aussitôt à l'esprit qu'ils n'étaient que des pseudonymes à l'aide desquels d'Artagnan avait déguisé des noms peut-être illustres, si toutefois les porteurs de ces noms d'emprunt ne les avaient pas choisis eux-mêmes le jour où, par caprice, par mécontentement ou par défaut de fortune, ils avaient endossé la simple casaque de mousquetaire."
-"French", "Cela posé, passons à notre histoire."
-"English", "Il achevait à peine, que d'Artagnan lui allongea un si furieux coup de pointe, que, s'il n'eût fait vivement un bond en arrière, il est probable qu'il eût plaisanté pour la dernière fois. L'inconnu vit alors que la chose passait la raillerie, tira son épée, salua son adversaire et se mit gravement en garde. Mais au même moment ses deux auditeurs, accompagnés de l'hôte, tombèrent sur d'Artagnan à grands coups de bâtons, de pelles et de pincettes. Cela fit une diversion si rapide et si complète à l'attaque, que l'adversaire de d'Artagnan, pendant que celui-ci se retournait pour faire face à cette grêle de coups, rengainait avec la même précision, et, d'acteur qu'il avait manqué d'être, redevenait spectateur du combat, rôle dont il s'acquitta avec son impassibilité ordinaire, tout en marmottant néanmoins:"
-"Spanish", "-Porque, ¿cómo queréis vos que no me tenga confuso el qué dirá el antiguo legislador que llaman vulgo cuando vea que, al cabo de tantos años como ha que duermo en el silencio del olvido, salgo ahora, con todos mis años a cuestas, con una leyenda seca como un esparto, ajena de invención, menguada de estilo, pobre de concetos y falta de toda erudición y doctrina; sin acotaciones en las márgenes y sin anotaciones en el fin del libro, como veo que están otros libros, aunque sean fabulosos y profanos, tan llenos de sentencias de Aristóteles, de Platón y de toda la caterva de filósofos, que admiran a los leyentes y tienen a sus autores por hombres leídos, eruditos y elocuentes? ¡Pues qué, cuando citan la Divina Escritura! No dirán sino que son unos santos Tomases y otros doctores de la Iglesia; guardando en esto un decoro tan ingenioso, que en un renglón han pintado un enamorado destraído y en otro hacen un sermoncico cristiano, que es un contento y un regalo oílle o leelle. De todo esto ha de carecer mi libro, porque ni tengo qué acotar en el margen, ni qué anotar en el fin, ni menos sé qué autores sigo en él, para ponerlos al principio, como hacen todos, por las letras del A.B.C., comenzando en Aristóteles y acabando en Xenofonte y en Zoílo o Zeuxis, aunque fue maldiciente el uno y pintor el otro. También ha de carecer mi libro de sonetos al principio, a lo menos de sonetos cuyos autores sean duques, marqueses, condes, obispos, damas o poetas celebérrimos; aunque, si yo los pidiese a dos o tres oficiales amigos, yo sé que me los darían, y tales, que no les igualasen los de aquellos que tienen más nombre en nuestra España. En fin, señor y amigo mío -proseguí-, yo determino que el señor don Quijote se quede sepultado en sus archivos en la Mancha, hasta que el cielo depare quien le adorne de tantas cosas como le faltan; porque yo me hallo incapaz de remediarlas, por mi insuficiencia y pocas letras, y porque naturalmente soy poltrón y perezoso de andarme buscando autores que digan lo que yo me sé decir sin ellos. De aquí nace la suspensión y elevamiento, amigo, en que me hallastes; bastante causa para ponerme en ella la que de mí habéis oído."
-"English", "And so she went on, taking first one side and then the other, and making quite a conversation of it altogether; but after a few minutes she heard a voice outside, and stopped to listen."
-"French", "«Eh bien, comment va cet enragé? reprit-il en se retournant au bruit de la porte qui s'ouvrit et en s'adressant à l'hôte qui venait s'informer de sa santé."
-"French", "Le premier lundi du mois d'avril 1625, le bourg de Meung, où naquit l'auteur du Roman de la Rose, semblait être dans une révolution aussi entière que si les huguenots en fussent venus faire une seconde Rochelle. Plusieurs bourgeois, voyant s'enfuir les femmes du côté de la Grande-Rue, entendant les enfants crier sur le seuil des portes, se hâtaient d'endosser la cuirasse et, appuyant leur contenance quelque peu incertaine d'un mousquet ou d'une pertuisane, se dirigeaient vers l'hôtellerie du Franc Meunier, devant laquelle s'empressait, en grossissant de minute en minute, un groupe compact, bruyant et plein de curiosité."
-"English", "An enormous puppy was looking down at her with large round eyes, and feebly stretching out one paw, trying to touch her. 'Poor little thing!' said Alice, in a coaxing tone, and she tried hard to whistle to it; but she was terribly frightened all the time at the thought that it might be hungry, in which case it would be very likely to eat her up in spite of all her coaxing."
-"English", "There was a long silence after this, and Alice could only hear whispers now and then; such as, 'Sure, I don't like it, yer honour, at all, at all!' 'Do as I tell you, you coward!' and at last she spread out her hand again, and made another snatch in the air. This time there were TWO little shrieks, and more sounds of broken glass. 'What a number of cucumber-frames there must be!' thought Alice. 'I wonder what they'll do next! As for pulling me out of the window, I only wish they COULD! I'm sure I don't want to stay in here any longer!'"
-"English", "«Eh! Monsieur, s'écria-t-il, monsieur, qui vous cachez derrière ce volet! oui, vous, dites-moi donc un peu de quoi vous riez, et nous rirons ensemble.»"
-"English", "Very soon the Rabbit noticed Alice, as she went hunting about, and called out to her in an angry tone, 'Why, Mary Ann, what ARE you doing out here? Run home this moment, and fetch me a pair of gloves and a fan! Quick, now!' And Alice was so much frightened that she ran off at once in the direction it pointed to, without trying to explain the mistake it had made."
-"English", "'I had NOT!' cried the Mouse, sharply and very angrily."
-"Spanish", "Casi todo aquel día caminó sin acontecerle cosa que de contar fuese, de lo cual se desesperaba, porque quisiera topar luego luego con quien hacer experiencia del valor de su fuerte brazo. Autores hay que dicen que la primera aventura que le avino fue la del Puerto Lápice; otros dicen que la de los molinos de viento; pero, lo que yo he podido averiguar en este caso, y lo que he hallado escrito en los Anales de la Mancha, es que él anduvo todo aquel día, y, al anochecer, su rocín y él se hallaron cansados y muertos de hambre; y que, mirando a todas partes por ver si descubriría algún castillo o alguna majada de pastores donde recogerse y adonde pudiese remediar su mucha hambre y necesidad, vio, no lejos del camino por donde iba, una venta, que fue como si viera una estrella que, no a los portales, sino a los alcázares de su redención le encaminaba. Diose priesa a caminar, y llegó a ella a tiempo que anochecía."
-"French", "«Lâche! lâche! lâche!"
-"English", ""
-"Spanish", "LA SEÑORA ORIANA A DULCINEA DEL TOBOSO"
-"English", ""
-"English", "'What do you mean by that?' said the Caterpillar sternly. 'Explain yourself!'"
-"English", "'I don't see,' said the Caterpillar."
-"English", "'Found WHAT?' said the Duck."
-"Spanish", "Pusiéronle la mesa a la puerta de la venta, por el fresco, y trújole el huésped una porción del mal remojado y peor cocido bacallao, y un pan tan negro y mugriento como sus armas; pero era materia de grande risa verle comer, porque, como tenía puesta la celada y alzada la visera, no podía poner nada en la boca con sus manos si otro no se lo daba y ponía; y ansí, una de aquellas señoras servía deste menester. Mas, al darle de beber, no fue posible, ni lo fuera si el ventero no horadara una caña, y puesto el un cabo en la boca, por el otro le iba echando el vino; y todo esto lo recebía en paciencia, a trueco de no romper las cintas de la celada."
-"English", "First it marked out a race-course, in a sort of circle, ('the exact shape doesn't matter,' it said,) and then all the party were placed along the course, here and there. There was no 'One, two, three, and away,' but they began running when they liked, and left off when they liked, so that it was not easy to know when the race was over. However, when they had been running half an hour or so, and were quite dry again, the Dodo suddenly called out 'The race is over!' and they all crowded round it, panting, and asking, 'But who has won?'"
-"Spanish", "En un lugar de la Mancha, de cuyo nombre no quiero acordarme, no ha mucho tiempo que vivía un hidalgo de los de lanza en astillero, adarga antigua, rocín flaco y galgo corredor. Una olla de algo más vaca que carnero, salpicón las más noches, duelos y quebrantos los sábados, lantejas los viernes, algún palomino de añadidura los domingos, consumían las tres partes de su hacienda. El resto della concluían sayo de velarte, calzas de velludo para las fiestas, con sus pantuflos de lo mesmo, y los días de entresemana se honraba con su vellorí de lo más fino. Tenía en su casa una ama que pasaba de los cuarenta, y una sobrina que no llegaba a los veinte, y un mozo de campo y plaza, que así ensillaba el rocín como tomaba la podadera. Frisaba la edad de nuestro hidalgo con los cincuenta años; era de complexión recia, seco de carnes, enjuto de rostro, gran madrugador y amigo de la caza. Quieren decir que tenía el sobrenombre de Quijada, o Quesada, que en esto hay alguna diferencia en los autores que deste caso escriben; aunque, por conjeturas verosímiles, se deja entender que se llamaba Quejana. Pero esto importa poco a nuestro cuento; basta que en la narración dél no se salga un punto de la verdad."
-"English", "'I beg your pardon!' said the Mouse, frowning, but very politely: 'Did you speak?'"
-"English", "Down, down, down. There was nothing else to do, so Alice soon began talking again. 'Dinah'll miss me very much to-night, I should think!' (Dinah was the cat.) 'I hope they'll remember her saucer of milk at tea-time. Dinah my dear! I wish you were down here with me! There are no mice in the air, I'm afraid, but you might catch a bat, and that's very like a mouse, you know. But do cats eat bats, I wonder?' And here Alice began to get rather sleepy, and went on saying to herself, in a dreamy sort of way, 'Do cats eat bats? Do cats eat bats?' and sometimes, 'Do bats eat cats?' for, you see, as she couldn't answer either question, it didn't much matter which way she put it. She felt that she was dozing off, and had just begun to dream that she was walking hand in hand with Dinah, and saying to her very earnestly, 'Now, Dinah, tell me the truth: did you ever eat a bat?' when suddenly, thump! thump! down she came upon a heap of sticks and dry leaves, and the fall was over."
-"English", "'I'm afraid I can't put it more clearly,' Alice replied very politely, 'for I can't understand it myself to begin with; and being so many different sizes in a day is very confusing.'"
-"English", "It sounded an excellent plan, no doubt, and very neatly and simply arranged; the only difficulty was, that she had not the smallest idea how to set about it; and while she was peering about anxiously among the trees, a little sharp bark just over her head made her look up in a great hurry."
-"French", "Or, comme au moment où d'Artagnan fixait son regard sur le gentilhomme au pourpoint violet, le gentilhomme faisait à l'endroit du bidet béarnais une de ses plus savantes et de ses plus profondes démonstrations, ses deux auditeurs éclatèrent de rire, et lui-même laissa visiblement, contre son habitude, errer, si l'on peut parler ainsi, un pâle sourire sur son visage. Cette fois, il n'y avait plus de doute, d'Artagnan était réellement insulté. Aussi, plein de cette conviction, enfonça-t-il son béret sur ses yeux, et, tâchant de copier quelques-uns des airs de cour qu'il avait surpris en Gascogne chez des seigneurs en voyage, il s'avança, une main sur la garde de son épée et l'autre appuyée sur la hanche. Malheureusement, au fur et à mesure qu'il avançait, la colère l'aveuglant de plus en plus, au lieu du discours digne et hautain qu'il avait préparé pour formuler sa provocation, il ne trouva plus au bout de sa langue qu'une personnalité grossière qu'il accompagna d'un geste furieux."
-"English", ""
-"Spanish", "Y con estos latinicos y otros tales os tendrán siquiera por gramático, que el serlo no es de poca honra y provecho el día de hoy."
-"French", "«Ma lettre de recommandation! s'écria d'Artagnan, ma lettre de recommandation, sangdieu! ou je vous embroche tous comme des ortolans!»"
-"English", "'Who are YOU?' said the Caterpillar."
-"English", "The great question certainly was, what? Alice looked all round her at the flowers and the blades of grass, but she did not see anything that looked like the right thing to eat or drink under the circumstances. There was a large mushroom growing near her, about the same height as herself; and when she had looked under it, and on both sides of it, and behind it, it occurred to her that she might as well look and see what was on the top of it."
-"English", "Suddenly she came upon a little three-legged table, all made of solid glass; there was nothing on it except a tiny golden key, and Alice's first thought was that it might belong to one of the doors of the hall; but, alas! either the locks were too large, or the key was too small, but at any rate it would not open any of them. However, on the second time round, she came upon a low curtain she had not noticed before, and behind it was a little door about fifteen inches high: she tried the little golden key in the lock, and to her great delight it fitted!"
-"French", "«C'est égal, dit l'hôte, j'en perds deux, mais il me reste celui- là, que je suis sûr de conserver au moins quelques jours. C'est toujours onze écus de gagnés.»"
-"English", "'I thought you did,' said the Mouse. '--I proceed. 'Edwin and Morcar, the earls of Mercia and Northumbria, declared for him: and even Stigand, the patriotic archbishop of Canterbury, found it advisable--''"
-"French", "Mais, au moment de payer ce romarin, cette huile et ce vin, seule dépense du maître qui avait gardé une diète absolue, tandis qu'au contraire le cheval jaune, au dire de l'hôtelier du moins, avait mangé trois fois plus qu'on n'eût raisonnablement pu le supposer pour sa taille, d'Artagnan ne trouva dans sa poche que sa petite bourse de velours râpé ainsi que les onze écus qu'elle contenait; mais quant à la lettre adressée à M. de Tréville, elle avait disparu."
-"French", "-- M. de Tréville? dit l'inconnu en devenant attentif; il frappait sur sa poche en prononçant le nom de M. de Tréville?... Voyons, mon cher hôte, pendant que votre jeune homme était évanoui, vous n'avez pas été, j'en suis bien sûr, sans regarder aussi cette poche-là. Qu'y avait-il?"
-"English", "'You ought to be ashamed of yourself,' said Alice, 'a great girl like you,' (she might well say this), 'to go on crying in this way! Stop this moment, I tell you!' But she went on all the same, shedding gallons of tears, until there was a large pool all round her, about four inches deep and reaching half down the hall."
-"French", "Le gentilhomme ramena lentement les yeux de la monture au cavalier, comme s'il lui eût fallu un certain temps pour comprendre que c'était à lui que s'adressaient de si étranges reproches; puis, lorsqu'il ne put plus conserver aucun doute, ses sourcils se froncèrent légèrement, et après une assez longue pause, avec un accent d'ironie et d'insolence impossible à décrire, il répondit à d'Artagnan:"
-"French", "-- Je vous dis que j'en suis sûr, continua l'hôte; lorsque je lui ai annoncé que Votre Seigneurie était le protégé de M. de Tréville, et que vous aviez même une lettre pour cet illustre gentilhomme, il a paru fort inquiet, m'a demandé où était cette lettre, et est descendu immédiatement à la cuisine où il savait qu'était votre pourpoint."
-"Spanish", "A dicha, acertó a ser viernes aquel día, y no había en toda la venta sino unas raciones de un pescado que en Castilla llaman abadejo, y en Andalucía bacallao, y en otras partes curadillo, y en otras truchuela. Preguntáronle si por ventura comería su merced truchuela, que no había otro pescado que dalle a comer."
-"English", "'We indeed!' cried the Mouse, who was trembling down to the end of his tail. 'As if I would talk on such a subject! Our family always HATED cats: nasty, low, vulgar things! Don't let me hear the name again!'"
-"English", "'I'm sure I'm not Ada,' she said, 'for her hair goes in such long ringlets, and mine doesn't go in ringlets at all; and I'm sure I can't be Mabel, for I know all sorts of things, and she, oh! she knows such a very little! Besides, SHE'S she, and I'm I, and--oh dear, how puzzling it all is! I'll try if I know all the things I used to know. Let me see: four times five is twelve, and four times six is thirteen, and four times seven is--oh dear! I shall never get to twenty at that rate! However, the Multiplication Table doesn't signify: let's try Geography. London is the capital of Paris, and Paris is the capital of Rome, and Rome--no, THAT'S all wrong, I'm certain! I must have been changed for Mabel! I'll try and say 'How doth the little--'' and she crossed her hands on her lap as if she were saying lessons, and began to repeat it, but her voice sounded hoarse and strange, and the words did not come the same as they used to do:--"
-"Spanish", "Yo, Juan Gallo de Andrada, escribano de Cámara del Rey nuestro señor, de los que residen en su Consejo, certifico y doy fe que, habiendo visto por los señores dél un libro intitulado El ingenioso hidalgo de la Mancha, compuesto por Miguel de Cervantes Saavedra, tasaron cada pliego del dicho libro a tres maravedís y medio; el cual tiene ochenta y tres pliegos, que al dicho precio monta el dicho libro docientos y noventa maravedís y medio, en que se ha de vender en papel; y dieron licencia para que a este precio se pueda vender, y mandaron que esta tasa se ponga al principio del dicho libro, y no se pueda vender sin ella. Y, para que dello conste, di la presente en Valladolid, a veinte días del mes de deciembre de mil y seiscientos y cuatro años."
-"French", "En ce temps-là les paniques étaient fréquentes, et peu de jours se passaient sans qu'une ville ou l'autre enregistrât sur ses archives quelque événement de ce genre. Il y avait les seigneurs qui guerroyaient entre eux; il y avait le roi qui faisait la guerre au cardinal; il y avait l'Espagnol qui faisait la guerre au roi. Puis, outre ces guerres sourdes ou publiques, secrètes ou patentes, il y avait encore les voleurs, les mendiants, les huguenots, les loups et les laquais, qui faisaient la guerre à tout le monde. Les bourgeois s'armaient toujours contre les voleurs, contre les loups, contre les laquais, -- souvent contre les seigneurs et les huguenots, -- quelquefois contre le roi, -- mais jamais contre le cardinal et l'Espagnol. Il résulta donc de cette habitude prise, que, ce susdit premier lundi du mois d'avril 1625, les bourgeois, entendant du bruit, et ne voyant ni le guidon jaune et rouge, ni la livrée du duc de Richelieu, se précipitèrent du côté de l'hôtel du Franc Meunier."
-"Spanish", " Rompí, corté, abollé, y dije y hice más que en el orbe caballero andante; fui diestro, fui valiente, fui arrogante; mil agravios vengué, cien mil deshice. Hazañas di a la Fama que eternice; fui comedido y regalado amante; fue enano para mí todo gigante, y al duelo en cualquier punto satisfice. Tuve a mis pies postrada la Fortuna, y trajo del copete mi cordura a la calva Ocasión al estricote. Más, aunque sobre el cuerno de la luna siempre se vio encumbrada mi ventura, tus proezas envidio, ¡oh gran Quijote!"
-"French", "-- Non; elle vous a été prise."
-"French", "-- Alors c'est mon voleur, répondit d'Artagnan; je m'en plaindrai à M. de Tréville, et M. de Tréville s'en plaindra au roi.» Puis il tira majestueusement deux écus de sa poche, les donna à l'hôte, qui l'accompagna, le chapeau à la main, jusqu'à la porte, remonta sur son cheval jaune, qui le conduisit sans autre incident jusqu'à la porte Saint-Antoine à Paris, où son propriétaire le vendit trois écus, ce qui était fort bien payé, attendu que d'Artagnan l'avait fort surmené pendant la dernière étape. Aussi le maquignon auquel d'Artagnan le céda moyennant les neuf livres susdites ne cacha-t-il point au jeune homme qu'il n'en donnait cette somme exorbitante qu'à cause de l'originalité de sa couleur."
-"Spanish", "-Cualquiera yantaría yo -respondió don Quijote-, porque, a lo que entiendo, me haría mucho al caso."
-"French", "-- Mais c'est donc le diable en personne que ce gaillard-là! s'écria l'inconnu."
-"English", "«Encore une gasconnade, murmura le gentilhomme. Sur mon honneur, ces Gascons sont incorrigibles! Continuez donc la danse, puisqu'il le veut absolument. Quand il sera las, il dira qu'il en a assez.»"
-"English", "D'Artagnan raconte qu'à sa première visite à M. de Tréville, le capitaine des mousquetaires du roi, il rencontra dans son antichambre trois jeunes gens servant dans l'illustre corps où il sollicitait l'honneur d'être reçu, et ayant nom Athos, Porthos et Aramis."
-"Spanish", "En resolución, él se enfrascó tanto en su letura, que se le pasaban las noches leyendo de claro en claro, y los días de turbio en turbio; y así, del poco dormir y del mucho leer, se le secó el celebro, de manera que vino a perder el juicio. Llenósele la fantasía de todo aquello que leía en los libros, así de encantamentos como de pendencias, batallas, desafíos, heridas, requiebros, amores, tormentas y disparates imposibles; y asentósele de tal modo en la imaginación que era verdad toda aquella máquina de aquellas sonadas soñadas invenciones que leía, que para él no había otra historia más cierta en el mundo. Decía él que el Cid Ruy Díaz había sido muy buen caballero, pero que no tenía que ver con el Caballero de la Ardiente Espada, que de sólo un revés había partido por medio dos fieros y descomunales gigantes. Mejor estaba con Bernardo del Carpio, porque en Roncesvalles había muerto a Roldán el encantado, valiéndose de la industria de Hércules, cuando ahogó a Anteo, el hijo de la Tierra, entre los brazos. Decía mucho bien del gigante Morgante, porque, con ser de aquella generación gigantea, que todos son soberbios y descomedidos, él solo era afable y bien criado. Pero, sobre todos, estaba bien con Reinaldos de Montalbán, y más cuando le veía salir de su castillo y robar cuantos topaba, y cuando en allende robó aquel ídolo de Mahoma que era todo de oro, según dice su historia. Diera él, por dar una mano de coces al traidor de Galalón, al ama que tenía, y aun a su sobrina de añadidura."
-"English", "Alice thought the whole thing very absurd, but they all looked so grave that she did not dare to laugh; and, as she could not think of anything to say, she simply bowed, and took the thimble, looking as solemn as she could."
-"French", "-- Sans doute. Il cause dans votre hôtellerie un scandale auquel d'honnêtes gens ne sauraient résister. Montez chez vous, faites mon compte et avertissez mon laquais."
-"English", "Avec un pareil _vade-mecum_, d'Artagnan se trouva, au moral comme au physique, une copie exacte du héros de Cervantes, auquel nous l'avons si heureusement comparé lorsque nos devoirs d'historien nous ont fait une nécessité de tracer son portrait. Don Quichotte prenait les moulins à vent pour des géants et les moutons pour des armées, d'Artagnan prit chaque sourire pour une insulte et chaque regard pour une provocation. Il en résulta qu'il eut toujours le poing fermé depuis Tarbes jusqu'à Meung, et que l'un dans l'autre il porta la main au pommeau de son épée dix fois par jour; toutefois le poing ne descendit sur aucune mâchoire, et l'épée ne sortit point de son fourreau. Ce n'est pas que la vue du malencontreux bidet jaune n'épanouît bien des sourires sur les visages des passants; mais, comme au-dessus du bidet sonnait une épée de taille respectable et qu'au-dessus de cette épée brillait un oeil plutôt féroce que fier, les passants réprimaient leur hilarité, ou, si l'hilarité l'emportait sur la prudence, ils tâchaient au moins de ne rire que d'un seul côté, comme les masques antiques. D'Artagnan demeura donc majestueux et intact dans sa susceptibilité jusqu'à cette malheureuse ville de Meung."
-"French", "«Vous dites donc, reprit d'Artagnan, que vous soupçonnez cet impertinent gentilhomme."
-"English", "'Why,' said the Dodo, 'the best way to explain it is to do it.' (And, as you might like to try the thing yourself, some winter day, I will tell you how the Dodo managed it.)"
-"English", "De son côté, et sous ce rapport, le cardinal n'était pas en reste avec le roi. Quand il avait vu la formidable élite dont Louis XIII s'entourait, ce second ou plutôt ce premier roi de France avait voulu, lui aussi, avoir sa garde. Il eut donc ses mousquetaires comme Louis XIII avait les siens et l'on voyait ces deux puissances rivales trier pour leur service, dans toutes les provinces de France et même dans tous les États étrangers, les hommes célèbres pour les grands coups d'épée. Aussi Richelieu et Louis XIII se disputaient souvent, en faisant leur partie d'échecs, le soir, au sujet du mérite de leurs serviteurs. Chacun vantait la tenue et le courage des siens, et tout en se prononçant tout haut contre les duels et contre les rixes, ils les excitaient tout bas à en venir aux mains, et concevaient un véritable chagrin ou une joie immodérée de la défaite ou de la victoire des leurs. Ainsi, du moins, le disent les mémoires d'un homme qui fut dans quelques-unes de ces défaites et dans beaucoup de ces victoires."
-"English", "Just then her head struck against the roof of the hall: in fact she was now more than nine feet high, and she at once took up the little golden key and hurried off to the garden door."
-"English", ""
-"French", "Arrivé là, chacun put voir et reconnaître la cause de cette rumeur."
-"English", "The Mouse did not notice this question, but hurriedly went on, ''--found it advisable to go with Edgar Atheling to meet William and offer him the crown. William's conduct at first was moderate. But the insolence of his Normans--' How are you getting on now, my dear?' it continued, turning to Alice as it spoke."
-"English", "She drew her foot as far down the chimney as she could, and waited till she heard a little animal (she couldn't guess of what sort it was) scratching and scrambling about in the chimney close above her: then, saying to herself 'This is Bill,' she gave one sharp kick, and waited to see what would happen next."
-"Spanish", "Yendo, pues, caminando nuestro flamante aventurero, iba hablando consigo mesmo y diciendo:"
-"French", "-- Il est en effet bien lâche», murmura l'hôte en s'approchant de d'Artagnan, et essayant par cette flatterie de se raccommoder avec le pauvre garçon, comme le héron de la fable avec son limaçon du soir."
-"Spanish", ""
-"English", ""
-"French", "Mais d'Artagnan n'était pas de caractère à lâcher ainsi un homme qui avait eu l'insolence de se moquer de lui. Il tira son épée entièrement du fourreau et se mit à sa poursuite en criant:"
-"Spanish", "Puesto nombre, y tan a su gusto, a su caballo, quiso ponérsele a sí mismo, y en este pensamiento duró otros ocho días, y al cabo se vino a llamar don Quijote; de donde -como queda dicho- tomaron ocasión los autores desta tan verdadera historia que, sin duda, se debía de llamar Quijada, y no Quesada, como otros quisieron decir. Pero, acordándose que el valeroso Amadís no sólo se había contentado con llamarse Amadís a secas, sino que añadió el nombre de su reino y patria, por Hepila famosa, y se llamó Amadís de Gaula, así quiso, como buen caballero, añadir al suyo el nombre de la suya y llamarse don Quijote de la Mancha, con que, a su parecer, declaraba muy al vivo su linaje y patria, y la honraba con tomar el sobrenombre della."
-"English", "'You are not attending!' said the Mouse to Alice severely. 'What are you thinking of?'"
-"Spanish", "de 1604 años."
-"English", "»En lo de citar en las márgenes los libros y autores de donde sacáredes las sentencias y dichos que pusiéredes en vuestra historia, no hay más sino hacer, de manera que venga a pelo, algunas sentencias o latines que vos sepáis de memoria, o, a lo menos, que os cuesten poco trabajo el buscalle; como será poner, tratando de libertad y cautiverio:"
-"English", "'Oh, you foolish Alice!' she answered herself. 'How can you learn lessons in here? Why, there's hardly room for YOU, and no room at all for any lesson-books!'"
-"Spanish", "¡Oh, cómo se holgó nuestro buen caballero cuando hubo hecho este discurso, y más cuando halló a quien dar nombre de su dama! Y fue, a lo que se cree, que en un lugar cerca del suyo había una moza labradora de muy buen parecer, de quien él un tiempo anduvo enamorado, aunque, según se entiende, ella jamás lo supo, ni le dio cata dello. Llamábase Aldonza Lorenzo, y a ésta le pareció ser bien darle título de señora de sus pensamientos; y, buscándole nombre que no desdijese mucho del suyo, y que tirase y se encaminase al de princesa y gran señora, vino a llamarla Dulcinea del Toboso, porque era natural del Toboso; nombre, a su parecer, músico y peregrino y significativo, como todos los demás que a él y a sus cosas había puesto."
-"Spanish", ""
-"French", "Il ne risquait pas davantage à dire vingt mille, mais une certaine pudeur juvénile le retint."
-"French", "-- C'est bien, faites ce que je vous ai dit alors.»"
-"English", "'A knot!' said Alice, always ready to make herself useful, and looking anxiously about her. 'Oh, do let me help to undo it!'"
-"French", "Quant au gentilhomme, il était revenu prendre sa place à la fenêtre et regardait avec une certaine impatience toute cette foule, qui semblait en demeurant là lui causer une vive contrariété."
-"Spanish", "Desocupado lector: sin juramento me podrás creer que quisiera que este libro, como hijo del entendimiento, fuera el más hermoso, el más gallardo y más discreto que pudiera imaginarse. Pero no he podido yo contravenir al orden de naturaleza; que en ella cada cosa engendra su semejante. Y así, ¿qué podrá engendrar el estéril y mal cultivado ingenio mío, sino la historia de un hijo seco, avellanado, antojadizo y lleno de pensamientos varios y nunca imaginados de otro alguno, bien como quien se engendró en una cárcel, donde toda incomodidad tiene su asiento y donde todo triste ruido hace su habitación? El sosiego, el lugar apacible, la amenidad de los campos, la serenidad de los cielos, el murmurar de las fuentes, la quietud del espíritu son grande parte para que las musas más estériles se muestren fecundas y ofrezcan partos al mundo que le colmen de maravilla y de contento. Acontece tener un padre un hijo feo y sin gracia alguna, y el amor que le tiene le pone una venda en los ojos para que no vea sus faltas, antes las juzga por discreciones y lindezas y las cuenta a sus amigos por agudezas y donaires. Pero yo, que, aunque parezco padre, soy padrastro de Don Quijote, no quiero irme con la corriente del uso, ni suplicarte, casi con las lágrimas en los ojos, como otros hacen, lector carísimo, que perdones o disimules las faltas que en este mi hijo vieres; y ni eres su pariente ni su amigo, y tienes tu alma en tu cuerpo y tu libre albedrío como el más pintado, y estás en tu casa, donde eres señor della, como el rey de sus alcabalas, y sabes lo que comúnmente se dice: que debajo de mi manto, al rey mato. Todo lo cual te esenta y hace libre de todo respecto y obligación; y así, puedes decir de la historia todo aquello que te pareciere, sin temor que te calunien por el mal ni te premien por el bien que dijeres della."
-"Spanish", "Luego volvía diciendo, como si verdaderamente fuera enamorado:"
-"Spanish", " no dirá, mofante, algu-: ''¡Qué don Álvaro de Lu-, qué Anibal el de Carta-, qué rey Francisco en Espa- se queja de la Fortu-!'' Pues al cielo no le plu- que salieses tan ladi- como el negro Juan Lati-, hablar latines rehú-. No me despuntes de agu-, ni me alegues con filó-, porque, torciendo la bo-, dirá el que entiende la le-, no un palmo de las ore-: ''¿Para qué conmigo flo-?'' No te metas en dibu-, ni en saber vidas aje-, que, en lo que no va ni vie-,"
-"French", "CHAPITRE II L'ANTICHAMBRE DE M. DE TRÉVILLE CHAPITRE III L'AUDIENCE CHAPITRE IV L'ÉPAULE D'ATHOS, LE BAUDRIER DE PORTHOS ET LE MOUCHOIR D'ARAMIS CHAPITRE V LES MOUSQUETAIRES DU ROI ET LES GARDES DE M. LE CARDINAL CHAPITRE VI SA MAJESTÉ LE ROI LOUIS TREIZIÈME CHAPITRE VII L'INTÉRIEUR DES MOUSQUETAIRES CHAPITRE VIII UNE INTRIGUE DE COEUR CHAPITRE IX D'ARTAGNAN SE DESSINE CHAPITRE X UNE SOURICIÈRE AU XVIIe SIÈCLE CHAPITRE XI L'INTRIGUE SE NOUE CHAPITRE XII GEORGES VILLIERS, DUC DE BUCKINGHAM CHAPITRE XIII MONSIEUR BONACIEUX CHAPITRE XIV L'HOMME DE MEUNG CHAPITRE XV GENS DE ROBE ET GENS D'ÉPÉE CHAPITRE XVI OÙ M. LE GARDE DES SCEAUX SÉGUIER CHERCHA PLUS D'UNE FOIS LA CLOCHE POUR LA SONNER, COMME IL LE FAISAIT AUTREFOIS CHAPITRE XVII LE MÉNAGE BONACIEUX CHAPITRE XVIII L'AMANT ET LE MARI CHAPITRE XIX PLAN DE CAMPAGNE CHAPITRE XX VOYAGE CHAPITRE XXI LA COMTESSE DE WINTER CHAPITRE XXII LE BALLET DE LA MERLAISON CHAPITRE XXIII LE RENDEZ-VOUS CHAPITRE XXIV LE PAVILLON CHAPITRE XXV PORTHOS CHAPITRE XXVI LA THÈSE D'ARAMIS CHAPITRE XXVII LA FEMME D'ATHOS CHAPITRE XXVIII RETOUR CHAPITRE XXIX LA CHASSE À L'ÉQUIPEMENT CHAPITRE XXX MILADY CHAPITRE XXXI ANGLAIS ET FRANÇAIS CHAPITRE XXXII UN DÎNER DE PROCUREUR CHAPITRE XXXIII SOUBRETTE ET MAÎTRESSE CHAPITRE XXXIV OÙ IL EST TRAITÉ DE L'ÉQUIPEMENT D'ARAMIS ET DE PORTHOS CHAPITRE XXXV LA NUIT TOUS LES CHATS SONT GRIS CHAPITRE XXXVI RÊVE DE VENGEANCE CHAPITRE XXXVII LE SECRET DE MILADY CHAPITRE XXXVIII COMMENT, SANS SE DÉRANGER, ATHOS TROUVA SON ÉQUIPEMENT CHAPITRE XXXIX UNE VISION CHAPITRE XL LE CARDINAL CHAPITRE XLI LE SIÈGE DE LA ROCHELLE CHAPITRE XLII LE VIN D'ANJOU CHAPITRE XLIII L'AUBERGE DU COLOMBIER-ROUGE CHAPITRE XLIV DE L'UTILITÉ DES TUYAUX DE POÊLE CHAPITRE XLV SCÈNE CONJUGALE CHAPITRE XLVI LE BASTION SAINT-GERVAIS CHAPITRE XLVII LE CONSEIL DES MOUSQUETAIRES CHAPITRE XLVIII AFFAIRE DE FAMILLE CHAPITRE XLIX FATALITÉ CHAPITRE L CAUSERIE D'UN FRÈRE AVEC SA SOEUR CHAPITRE LI OFFICIER CHAPITRE LII PREMIERE JOURNÉE DE CAPTIVITÉ CHAPITRE LIII DEUXIÈME JOURNÉE DE CAPTIVITÉ CHAPITRE LIV TROISIÈME JOURNÉE DE CAPTIVITÉ CHAPITRE LV QUATRIÈME JOURNÉE DE CAPTIVITÉ CHAPITRE LVI CINQUIÈME JOURNÉE DE CAPTIVITÉ CHAPITRE LVII UN MOYEN DE TRAGÉDIE CLASSIQUE CHAPITRE LVIII ÉVASION CHAPITRE LIX CE QUI SE PASSAIT À PORTSMOUTH LE 23 AOÛT 1628 CHAPITRE LX EN FRANCE CHAPITRE LXI LE COUVENT DES CARMÉLITES DE BÉTHUNE CHAPITRE LXII DEUX VARIÉTÉS DE DÉMONS CHAPITRE LXIII UNE GOUTTE D'EAU CHAPITRE LXIV L'HOMME AU MANTEAU ROUGE CHAPITRE LXV LE JUGEMENT CHAPITRE LXVI L'EXÉCUTION CHAPITRE LXVII CONCLUSION ÉPILOGUE"
-"French", "«Ouais! se dit l'hôte, aurait-il peur du petit garçon?»"
-"English", "'You!' said the Caterpillar contemptuously. 'Who are YOU?'"
-"English", "'Mine is a long and a sad tale!' said the Mouse, turning to Alice, and sighing."
-"Spanish", " Tú, que imitaste la llorosa vida que tuve, ausente y desdeñado sobre el gran ribazo de la Peña Pobre, de alegre a penitencia reducida; tú, a quien los ojos dieron la bebida de abundante licor, aunque salobre, y alzándote la plata, estaño y cobre, te dio la tierra en tierra la comida, vive seguro de que eternamente, en tanto, al menos, que en la cuarta esfera, sus caballos aguije el rubio Apolo, tendrás claro renombre de valiente; tu patria será en todas la primera; tu sabio autor, al mundo único y solo."
-"French", "Tréville avait pris le côté faible de son maître, et c'est à cette adresse qu'il devait la longue et constante faveur d'un roi qui n'a pas laissé la réputation d'avoir été très fidèle à ses amitiés. Il faisait parader ses mousquetaires devant le cardinal Armand Duplessis avec un air narquois qui hérissait de colère la moustache grise de Son Éminence. Tréville entendait admirablement bien la guerre de cette époque, où, quand on ne vivait pas aux dépens de l'ennemi, on vivait aux dépens de ses compatriotes: ses soldats formaient une légion de diables à quatre, indisciplinée pour tout autre que pour lui."
-"English", "Last came a little feeble, squeaking voice, ('That's Bill,' thought Alice,) 'Well, I hardly know--No more, thank ye; I'm better now--but I'm a deal too flustered to tell you--all I know is, something comes at me like a Jack-in-the-box, and up I goes like a sky-rocket!'"
-"French", "-- Dans la chambre de ma femme, où on le panse, au premier étage."
-"English", "-Bien parece la mesura en las fermosas, y es mucha sandez además la risa que de leve causa procede; pero no vos lo digo porque os acuitedes ni mostredes mal talante; que el mío non es de ál que de serviros."
-"English", "This question the Dodo could not answer without a great deal of thought, and it sat for a long time with one finger pressed upon its forehead (the position in which you usually see Shakespeare, in the pictures of him), while the rest waited in silence. At last the Dodo said, 'EVERYBODY has won, and all must have prizes.'"
-"English", "'I didn't mean it!' pleaded poor Alice. 'But you're so easily offended, you know!'"
-"Spanish", "Miguel de Cervantes Saavedra."
-"English", "After a time she heard a little pattering of feet in the distance, and she hastily dried her eyes to see what was coming. It was the White Rabbit returning, splendidly dressed, with a pair of white kid gloves in one hand and a large fan in the other: he came trotting along in a great hurry, muttering to himself as he came, 'Oh! the Duchess, the Duchess! Oh! won't she be savage if I've kept her waiting!' Alice felt so desperate that she was ready to ask help of any one; so, when the Rabbit came near her, she began, in a low, timid voice, 'If you please, sir--' The Rabbit started violently, dropped the white kid gloves and the fan, and skurried away into the darkness as hard as he could go."
-"Spanish", "Y lo primero que hizo fue limpiar unas armas que habían sido de sus bisabuelos, que, tomadas de orín y llenas de moho, luengos siglos había que estaban puestas y olvidadas en un rincón. Limpiólas y aderezólas lo mejor que pudo, pero vio que tenían una gran falta, y era que no tenían celada de encaje, sino morrión simple; mas a esto suplió su industria, porque de cartones hizo un modo de media celada, que, encajada con el morrión, hacían una apariencia de celada entera. Es verdad que para probar si era fuerte y podía estar al riesgo de una cuchillada, sacó su espada y le dio dos golpes, y con el primero y en un punto deshizo lo que había hecho en una semana; y no dejó de parecerle mal la facilidad con que la había hecho pedazos, y, por asegurarse deste peligro, la tornó a hacer de nuevo, poniéndole unas barras de hierro por de dentro, de tal manera que él quedó satisfecho de su fortaleza; y, sin querer hacer nueva experiencia della, la diputó y tuvo por celada finísima de encaje."
-"French", "-- Oui, où est cette lettre? cria d'Artagnan. D'abord, je vous en préviens, cette lettre est pour M. de Tréville, et il faut qu'elle se retrouve; ou si elle ne se retrouve pas, il saura bien la faire retrouver, lui!»"
-"French", "INTRODUCTION"
-"English", ""
-"French", "Aussi, jetant son épieu loin de lui, et ordonnant à sa femme d'en faire autant de son manche à balai et à ses valets de leurs bâtons, il donna le premier l'exemple en se mettant lui-même à la recherche de la lettre perdue."
-"Spanish", ""
-"English", ""
-"French", "-- Vous le savez bien, puisque je vous avais donné l'ordre de seller mon cheval. Ne m'a-t-on point obéi?"
-"English", "'Not like cats!' cried the Mouse, in a shrill, passionate voice. 'Would YOU like cats if you were me?'"
-"English", "o Rocinante, que éste es el nombre, señoras mías, de mi caballo, y don Quijote de la Mancha el mío; que, puesto que no quisiera descubrirme fasta que las fazañas fechas en vuestro servicio y pro me descubrieran, la fuerza de acomodar al propósito presente este romance viejo de Lanzarote ha sido causa que sepáis mi nombre antes de toda sazón; pero, tiempo vendrá en que las vuestras señorías me manden y yo obedezca, y el valor de mi brazo descubra el deseo que tengo de serviros."
-"French", "-- Non, devant une femme, vous n'oseriez pas fuir, je présume."
-"English", "Just then she heard something splashing about in the pool a little way off, and she swam nearer to make out what it was: at first she thought it must be a walrus or hippopotamus, but then she remembered how small she was now, and she soon made out that it was only a mouse that had slipped in like herself."
-"Spanish", "-¿Quién duda sino que en los venideros tiempos, cuando salga a luz la verdadera historia de mis famosos hechos, que el sabio que los escribiere no ponga, cuando llegue a contar esta mi primera salidad tan de mañana, desta manera?: «Apenas había el rubicundo Apolo tendido por la faz de la ancha y espaciosa tierra las doradas hebras de sus hermosos cabellos, y apenas los pequeños y pintados pajarillos con sus arpadas lenguas habían saludado con dulce y meliflua armonía la venida de la rosada aurora, que, dejando la blanda cama del celoso marido, por las puertas y balcones del manchego horizonte a los mortales se mostraba, cuando el famoso caballero don Quijote de la Mancha, dejando las ociosas plumas, subió sobre su famoso caballo Rocinante, y comenzó a caminar por el antiguo y conocido campo de Montiel»."
-"Spanish", "Capítulo primero. Que trata de la condición y ejercicio del famoso hidalgo don Quijote de la Mancha"
-"English", "Alice had no idea what to do, and in despair she put her hand in her pocket, and pulled out a box of comfits, (luckily the salt water had not got into it), and handed them round as prizes. There was exactly one a-piece all round."
-"French", ""
-"English", "The Mouse only growled in reply."
-"Spanish", "El licenciado Francisco Murcia de la Llana."
-"Spanish", "-Si yo, por malos de mis pecados, o por mi buena suerte, me encuentro por ahí con algún gigante, como de ordinario les acontece a los caballeros andantes, y le derribo de un encuentro, o le parto por mitad del cuerpo, o, finalmente, le venzo y le rindo, ¿no será bien tener a quien enviarle presentado y que entre y se hinque de rodillas ante mi dulce señora, y diga con voz humilde y rendido: ''Yo, señora, soy el gigante Caraculiambro, señor de la ínsula Malindrania, a quien venció en singular batalla el jamás como se debe alabado caballero don Quijote de la Mancha, el cual me mandó que me presentase ante vuestra merced, para que la vuestra grandeza disponga de mí a su talante''?"
-"Spanish", "Soneto"
-"French", "Mais un coup d'oeil impératif de l'inconnu vint l'arrêter court. Il salua humblement et sortit."
-"English", "In another moment down went Alice after it, never once considering how in the world she was to get out again."
-"French", "L'inconnu le regarda encore un instant avec son léger sourire, et, se retirant de la fenêtre, sortit lentement de l'hôtellerie pour venir à deux pas de d'Artagnan se planter en face du cheval. Sa contenance tranquille et sa physionomie railleuse avaient redoublé l'hilarité de ceux avec lesquels il causait et qui, eux, étaient restés à la fenêtre."
-"English", "Et il s'évanouit une seconde fois."
-"English", "'I know what 'it' means well enough, when I find a thing,' said the Duck: 'it's generally a frog or a worm. The question is, what did the archbishop find?'"
-"English", "'But then,' thought Alice, 'shall I NEVER get any older than I am now? That'll be a comfort, one way--never to be an old woman--but then--always to have lessons to learn! Oh, I shouldn't like THAT!'"
-"English", "This speech caused a remarkable sensation among the party. Some of the birds hurried off at once: one old Magpie began wrapping itself up very carefully, remarking, 'I really must be getting home; the night-air doesn't suit my throat!' and a Canary called out in a trembling voice to its children, 'Come away, my dears! It's high time you were all in bed!' On various pretexts they all moved off, and Alice was soon left alone."
-"French", "Il y a un an à peu près, qu'en faisant à la Bibliothèque royale des recherches pour mon histoire de Louis XIV, je tombai par hasard sur les Mémoires de M. d'Artagnan, imprimés -- comme la plus grande partie des ouvrages de cette époque, où les auteurs tenaient à dire la vérité sans aller faire un tour plus ou moins long à la Bastille -- à Amsterdam, chez Pierre Rouge. Le titre me séduisit: je les emportai chez moi, avec la permission de M. le conservateur; bien entendu, je les dévorai."
-"English", "They were indeed a queer-looking party that assembled on the bank--the birds with draggled feathers, the animals with their fur clinging close to them, and all dripping wet, cross, and uncomfortable."
-"Spanish", "Capítulo II. Que trata de la primera salida que de su tierra hizo el ingenioso don Quijote"
-"English", "'I won't indeed!' said Alice, in a great hurry to change the subject of conversation. 'Are you--are you fond--of--of dogs?' The Mouse did not answer, so Alice went on eagerly: 'There is such a nice little dog near our house I should like to show you! A little bright-eyed terrier, you know, with oh, such long curly brown hair! And it'll fetch things when you throw them, and it'll sit up and beg for its dinner, and all sorts of things--I can't remember half of them--and it belongs to a farmer, you know, and he says it's so useful, it's worth a hundred pounds! He says it kills all the rats and--oh dear!' cried Alice in a sorrowful tone, 'I'm afraid I've offended it again!' For the Mouse was swimming away from her as hard as it could go, and making quite a commotion in the pool as it went."
-"French", "-- En vérité!"
-"English", "Presently she began again. 'I wonder if I shall fall right THROUGH the earth! How funny it'll seem to come out among the people that walk with their heads downward! The Antipathies, I think--' (she was rather glad there WAS no one listening, this time, as it didn't sound at all the right word) '--but I shall have to ask them what the name of the country is, you know. Please, Ma'am, is this New Zealand or Australia?' (and she tried to curtsey as she spoke--fancy CURTSEYING as you're falling through the air! Do you think you could manage it?) 'And what an ignorant little girl she'll think me for asking! No, it'll never do to ask: perhaps I shall see it written up somewhere.'"
-"French", "Cependant cette déception n'eût probablement pas arrêté notre fougueux jeune homme, si l'hôte n'avait réfléchi que la réclamation que lui adressait son voyageur était parfaitement juste."
-"French", "-- Ses hardes et son sac sont avec lui? il n'a pas quitté son pourpoint?"
-"Spanish", ""
-"Spanish", "Juan Gallo de Andrada."
-"English", "'We must burn the house down!' said the Rabbit's voice; and Alice called out as loud as she could, 'If you do. I'll set Dinah at you!'"
-"English", "'And yet what a dear little puppy it was!' said Alice, as she leant against a buttercup to rest herself, and fanned herself with one of the leaves: 'I should have liked teaching it tricks very much, if--if I'd only been the right size to do it! Oh dear! I'd nearly forgotten that I've got to grow up again! Let me see--how IS it to be managed? I suppose I ought to eat or drink something or other; but the great question is, what?'"
-"English", "The rabbit-hole went straight on like a tunnel for some way, and then dipped suddenly down, so suddenly that Alice had not a moment to think about stopping herself before she found herself falling down a very deep well."
-"English", "'Of course,' the Dodo replied very gravely. 'What else have you got in your pocket?' he went on, turning to Alice."
-"English", "CHAPTER IV. The Rabbit Sends in a Little Bill"
-"French", "«Diable! murmura-t-il entre ses dents, Tréville m'aurait-il envoyé ce Gascon? il est bien jeune! Mais un coup d'épée est un coup d'épée, quel que soit l'âge de celui qui le donne, et l'on se défie moins d'un enfant que de tout autre; il suffit parfois d'un faible obstacle pour contrarier un grand dessein.»"
-"English", "Alice opened the door and found that it led into a small passage, not much larger than a rat-hole: she knelt down and looked along the passage into the loveliest garden you ever saw. How she longed to get out of that dark hall, and wander about among those beds of bright flowers and those cool fountains, but she could not even get her head through the doorway; 'and even if my head would go through,' thought poor Alice, 'it would be of very little use without my shoulders. Oh, how I wish I could shut up like a telescope! I think I could, if I only know how to begin.' For, you see, so many out-of-the-way things had happened lately, that Alice had begun to think that very few things indeed were really impossible."
-"English", "There was a dead silence instantly, and Alice thought to herself, 'I wonder what they WILL do next! If they had any sense, they'd take the roof off.' After a minute or two, they began moving about again, and Alice heard the Rabbit say, 'A barrowful will do, to begin with.'"
-"English", "'How queer it seems,' Alice said to herself, 'to be going messages for a rabbit! I suppose Dinah'll be sending me on messages next!' And she began fancying the sort of thing that would happen: ''Miss Alice! Come here directly, and get ready for your walk!' 'Coming in a minute, nurse! But I've got to see that the mouse doesn't get out.' Only I don't think,' Alice went on, 'that they'd let Dinah stop in the house if it began ordering people about like that!'"
-"Spanish", "Y era la verdad que por él caminaba. Y añadió diciendo:"
-"Spanish", ""
-"Spanish", " Maguer, señor Quijote, que sandeces vos tengan el cerbelo derrumbado, nunca seréis de alguno reprochado por home de obras viles y soeces. Serán vuesas fazañas los joeces, pues tuertos desfaciendo habéis andado, siendo vegadas mil apaleado por follones cautivos y raheces. Y si la vuesa linda Dulcinea desaguisado contra vos comete, ni a vuesas cuitas muestra buen talante, en tal desmán, vueso conorte sea que Sancho Panza fue mal alcagüete, necio él, dura ella, y vos no amante."
-"English", "It was the White Rabbit, trotting slowly back again, and looking anxiously about as it went, as if it had lost something; and she heard it muttering to itself 'The Duchess! The Duchess! Oh my dear paws! Oh my fur and whiskers! She'll get me executed, as sure as ferrets are ferrets! Where CAN I have dropped them, I wonder?' Alice guessed in a moment that it was looking for the fan and the pair of white kid gloves, and she very good-naturedly began hunting about for them, but they were nowhere to be seen--everything seemed to have changed since her swim in the pool, and the great hall, with the glass table and the little door, had vanished completely."
-"English", "'As wet as ever,' said Alice in a melancholy tone: 'it doesn't seem to dry me at all.'"
-"English", "'I shall do nothing of the sort,' said the Mouse, getting up and walking away. 'You insult me by talking such nonsense!'"
-"Spanish", "Viendo don Quijote la humildad del alcaide de la fortaleza, que tal le pareció a él el ventero y la venta, respondió:"
-"English", "«Est-ce que cette lettre renfermait quelque chose de précieux? demanda l'hôte au bout d'un instant d'investigations inutiles."
-"French", "Le jeune homme commença par chercher cette lettre avec une grande patience, tournant et retournant vingt fois ses poches et ses goussets, fouillant et refouillant dans son sac, ouvrant et refermant sa bourse; mais lorsqu'il eut acquis la conviction que la lettre était introuvable, il entra dans un troisième accès de rage, qui faillit lui occasionner une nouvelle consommation de vin et d'huile aromatisés: car, en voyant cette jeune mauvaise tête s'échauffer et menacer de tout casser dans l'établissement si l'on ne retrouvait pas sa lettre, l'hôte s'était déjà saisi d'un épieu, sa femme d'un manche à balai, et ses garçons des mêmes bâtons qui avaient servi la surveille."
-"English", "So she called softly after it, 'Mouse dear! Do come back again, and we won't talk about cats or dogs either, if you don't like them!' When the Mouse heard this, it turned round and swam slowly back to her: its face was quite pale (with passion, Alice thought), and it said in a low trembling voice, 'Let us get to the shore, and then I'll tell you my history, and you'll understand why it is I hate cats and dogs.'"
-"French", "Aussitôt le denier à Dieu donné, d'Artagnan prit possession de son logement, passa le reste de la journée à coudre à son pourpoint et à ses chausses des passementeries que sa mère avait détachées d'un pourpoint presque neuf de M. d'Artagnan père, et qu'elle lui avait données en cachette; puis il alla quai de la Ferraille, faire remettre une lame à son épée; puis il revint au Louvre s'informer, au premier mousquetaire qu'il rencontra, de la situation de l'hôtel de M. de Tréville, lequel était situé rue du Vieux- Colombier, c'est-à-dire justement dans le voisinage de la chambre arrêtée par d'Artagnan: circonstance qui lui parut d'un heureux augure pour le succès de son voyage."
-"Spanish", "EL REY"
-"French", "-- Si fait, et comme Votre Excellence a pu le voir, son cheval est sous la grande porte, tout appareillé pour partir."
-"French", "Or, c'est la première partie de ce précieux manuscrit que nous offrons aujourd'hui à nos lecteurs, en lui restituant le titre qui lui convient, prenant l'engagement, si, comme nous n'en doutons pas, cette première partie obtient le succès qu'elle mérite, de publier incessamment la seconde."
-"French", "D'Artagnan entra donc dans Paris à pied, portant son petit paquet sous son bras, et marcha tant qu'il trouvât à louer une chambre qui convînt à l'exiguïté de ses ressources. Cette chambre fut une espèce de mansarde, sise rue des Fossoyeurs, près du Luxembourg."
-"English", "Soon her eye fell on a little glass box that was lying under the table: she opened it, and found in it a very small cake, on which the words 'EAT ME' were beautifully marked in currants. 'Well, I'll eat it,' said Alice, 'and if it makes me grow larger, I can reach the key; and if it makes me grow smaller, I can creep under the door; so either way I'll get into the garden, and I don't care which happens!'"
-"Spanish", "GANDALÍN, ESCUDERO DE AMADÍS DE GAULA, A SANCHO PANZA, ESCUDERO DE DON QUIJOTE"
-"English", "'Ahem!' said the Mouse with an important air, 'are you all ready? This is the driest thing I know. Silence all round, if you please! 'William the Conqueror, whose cause was favoured by the pope, was soon submitted to by the English, who wanted leaders, and had been of late much accustomed to usurpation and conquest. Edwin and Morcar, the earls of Mercia and Northumbria--''"
-"French", "L'hôte avait compté sur onze jours de maladie à un écu par jour; mais il avait compté sans son voyageur. Le lendemain, dès cinq heures du matin, d'Artagnan se leva, descendit lui-même à la cuisine, demanda, outre quelques autres ingrédients dont la liste n'est pas parvenue jusqu'à nous, du vin, de l'huile, du romarin, et, la recette de sa mère à la main, se composa un baume dont il oignit ses nombreuses blessures, renouvelant ses compresses lui- même et ne voulant admettre l'adjonction d'aucun médecin. Grâce sans doute à l'efficacité du baume de Bohême, et peut-être aussi grâce à l'absence de tout docteur, d'Artagnan se trouva sur pied dès le soir même, et à peu près guéri le lendemain."
-"French", "CHAPITRE PREMIER LES TROIS PRÉSENTS DE M. D'ARTAGNAN PÈRE"
-"English", "'Why, SHE, of course,' said the Dodo, pointing to Alice with one finger; and the whole party at once crowded round her, calling out in a confused way, 'Prizes! Prizes!'"
-"French", "Mais le blessé était trop faible encore pour supporter une pareille secousse. À peine eut-il fait dix pas, que ses oreilles tintèrent, qu'un éblouissement le prit, qu'un nuage de sang passa sur ses yeux et qu'il tomba au milieu de la rue, en criant encore:"
-"English", " 'How cheerfully he seems to grin, How neatly spread his claws, And welcome little fishes in With gently smiling jaws!'"
-"French", "D'Artagnan, le voyant arriver, tira son épée d'un pied hors du fourreau."
-"English", "'Please come back and finish your story!' Alice called after it; and the others all joined in chorus, 'Yes, please do!' but the Mouse only shook its head impatiently, and walked a little quicker."
-"French", "-- Et moi, s'écria d'Artagnan, je ne veux pas qu'on rie quand il me déplaît!"
-"French", "C'est à ce moment que de tous côtés on accourut sur le lieu de la scène. L'hôte, craignant du scandale, emporta, avec l'aide de ses garçons, le blessé dans la cuisine où quelques soins lui furent accordés."
-"English", "'Speak English!' said the Eaglet. 'I don't know the meaning of half those long words, and, what's more, I don't believe you do either!' And the Eaglet bent down its head to hide a smile: some of the other birds tittered audibly."
-"English", "'What a pity it wouldn't stay!' sighed the Lory, as soon as it was quite out of sight; and an old Crab took the opportunity of saying to her daughter 'Ah, my dear! Let this be a lesson to you never to lose YOUR temper!' 'Hold your tongue, Ma!' said the young Crab, a little snappishly. 'You're enough to try the patience of an oyster!'"
-"Spanish", "Soneto"
-"English", "And so it was indeed: she was now only ten inches high, and her face brightened up at the thought that she was now the right size for going through the little door into that lovely garden. First, however, she waited for a few minutes to see if she was going to shrink any further: she felt a little nervous about this; 'for it might end, you know,' said Alice to herself, 'in my going out altogether, like a candle. I wonder what I should be like then?' And she tried to fancy what the flame of a candle is like after the candle is blown out, for she could not remember ever having seen such a thing."
-"French", "-- Très bien; et vous, que faites-vous?"
-"French", "«Il ne faut pas que Milady soit aperçue de ce drôle, continua l'étranger: elle ne doit pas tarder à passer: déjà même elle est en retard. Décidément, mieux vaut que je monte à cheval et que j'aille au-devant d'elle... Si seulement je pouvais savoir ce que contient cette lettre adressée à Tréville!»"
-"Spanish", ""
-"English", "'Mary Ann! Mary Ann!' said the voice. 'Fetch me my gloves this moment!' Then came a little pattering of feet on the stairs. Alice knew it was the Rabbit coming to look for her, and she trembled till she shook the house, quite forgetting that she was now about a thousand times as large as the Rabbit, and had no reason to be afraid of it."
-"French", "-- Des bons sur l'épargne? demanda l'hôte inquiet."
-"English", "'But who is to give the prizes?' quite a chorus of voices asked."
-"French", "-- Votre Excellence est saine et sauve? demanda l'hôte."
-"Spanish", "DIÁLOGO ENTRE BABIECA Y ROCINANTE"
-"English", ""
-"French", "La découverte d'un manuscrit complètement inconnu, dans une époque où la science historique est poussée à un si haut degré, nous parut presque miraculeuse. Aussi nous hâtâmes-nous de solliciter la permission de le faire imprimer, dans le but de nous présenter un jour avec le bagage des autres à l'Académie des inscriptions et belles-lettres, si nous n'arrivions, chose fort probable, à entrer à l'Académie française avec notre propre bagage. Cette permission, nous devons le dire, nous fut gracieusement accordée; ce que nous consignons ici pour donner un démenti public aux malveillants qui prétendent que nous vivons sous un gouvernement assez médiocrement disposé à l'endroit des gens de lettres."
-"English", "'It was much pleasanter at home,' thought poor Alice, 'when one wasn't always growing larger and smaller, and being ordered about by mice and rabbits. I almost wish I hadn't gone down that rabbit-hole--and yet--and yet--it's rather curious, you know, this sort of life! I do wonder what CAN have happened to me! When I used to read fairy-tales, I fancied that kind of thing never happened, and now here I am in the middle of one! There ought to be a book written about me, that there ought! And when I grow up, I'll write one--but I'm grown up now,' she added in a sorrowful tone; 'at least there's no room to grow up any more HERE.'"
-"English", "Alas! it was too late to wish that! She went on growing, and growing, and very soon had to kneel down on the floor: in another minute there was not even room for this, and she tried the effect of lying down with one elbow against the door, and the other arm curled round her head. Still she went on growing, and, as a last resource, she put one arm out of the window, and one foot up the chimney, and said to herself 'Now I can do no more, whatever happens. What WILL become of me?'"
-"English", "Presently the Rabbit came up to the door, and tried to open it; but, as the door opened inwards, and Alice's elbow was pressed hard against it, that attempt proved a failure. Alice heard it say to itself 'Then I'll go round and get in at the window.'"
-"French", "Ce sommeil, tout provincial encore, le conduisit jusqu'à neuf heures du matin, heure à laquelle il se leva pour se rendre chez ce fameux M. de Tréville, le troisième personnage du royaume d'après l'estimation paternelle."
-"English", "'That WAS a narrow escape!' said Alice, a good deal frightened at the sudden change, but very glad to find herself still in existence; 'and now for the garden!' and she ran with all speed back to the little door: but, alas! the little door was shut again, and the little golden key was lying on the glass table as before, 'and things are worse than ever,' thought the poor child, 'for I never was so small as this before, never! And I declare it's too bad, that it is!'"
-"French", "Un jeune homme... -- traçons son portrait d'un seul trait de plume: figurez-vous don Quichotte à dix-huit ans, don Quichotte décorcelé, sans haubert et sans cuissards, don Quichotte revêtu d'un pourpoint de laine dont la couleur bleue s'était transformée en une nuance insaisissable de lie-de-vin et d'azur céleste. Visage long et brun; la pommette des joues saillante, signe d'astuce; les muscles maxillaires énormément développés, indice infaillible auquel on reconnaît le Gascon, même sans béret, et notre jeune homme portait un béret orné d'une espèce de plume; l'oeil ouvert et intelligent; le nez crochu, mais finement dessiné; trop grand pour un adolescent, trop petit pour un homme fait, et qu'un oeil peu exercé eût pris pour un fils de fermier en voyage, sans sa longue épée qui, pendue à un baudrier de peau, battait les mollets de son propriétaire quand il était à pied, et le poil hérissé de sa monture quand il était à cheval."
-"Spanish", "-Lo primero en que reparáis de los sonetos, epigramas o elogios que os faltan para el principio, y que sean de personajes graves y de título, se puede remediar en que vos mesmo toméis algún trabajo en hacerlos, y después los podéis bautizar y poner el nombre que quisiéredes, ahijándolos al Preste Juan de las Indias o al Emperador de Trapisonda, de quien yo sé que hay noticia que fueron famosos poetas; y cuando no lo hayan sido y hubiere algunos pedantes y bachilleres que por detrás os muerdan y murmuren desta verdad, no se os dé dos maravedís; porque, ya que os averigüen la mentira, no os han de cortar la mano con que lo escribistes."
-"French", "-- Alors, dit froidement l'inconnu, c'est quelque prince du sang déguisé."
-"Spanish", " Si no eres par, tampoco le has tenido: que par pudieras ser entre mil pares; ni puede haberle donde tú te hallares, invito vencedor, jamás vencido. Orlando soy, Quijote, que, perdido por Angélica, vi remotos mares, ofreciendo a la Fama en sus altares aquel valor que respetó el olvido. No puedo ser tu igual; que este decoro se debe a tus proezas y a tu fama, puesto que, como yo, perdiste el seso. Mas serlo has mío, si al soberbio moro y cita fiero domas, que hoy nos llama iguales en amor con mal suceso."
-"French", "Son interlocutrice, dont la tête apparaissait encadrée par la portière, était une femme de vingt à vingt-deux ans. Nous avons déjà dit avec quelle rapidité d'investigation d'Artagnan embrassait toute une physionomie; il vit donc du premier coup d'oeil que la femme était jeune et belle. Or cette beauté le frappa d'autant plus qu'elle était parfaitement étrangère aux pays méridionaux que jusque-là d'Artagnan avait habités. C'était une pâle et blonde personne, aux longs cheveux bouclés tombant sur ses épaules, aux grands yeux bleus languissants, aux lèvres rosées et aux mains d'albâtre. Elle causait très vivement avec l'inconnu."
-"Spanish", "Con silencio grande estuve escuchando lo que mi amigo me decía, y de tal manera se imprimieron en mí sus razones que, sin ponerlas en disputa, las aprobé por buenas y de ellas mismas quise hacer este prólogo; en el cual verás, lector suave, la discreción de mi amigo, la buena ventura mía en hallar en tiempo tan necesitado tal consejero, y el alivio tuyo en hallar tan sincera y tan sin revueltas la historia del famoso don Quijote de la Mancha, de quien hay opinión, por todos los habitadores del distrito del campo de Montiel, que fue el más casto enamorado y el más valiente caballero que de muchos años a esta parte se vio en aquellos contornos. Yo no quiero encarecerte el servicio que te hago en darte a conocer tan noble y tan honrado caballero, pero quiero que me agradezcas el conocimiento que tendrás del famoso Sancho Panza, su escudero, en quien, a mi parecer, te doy cifradas todas las gracias escuderiles que en la caterva de los libros vanos de caballerías están esparcidas."
-"English", " ALICE'S RIGHT FOOT, ESQ. HEARTHRUG, NEAR THE FENDER, (WITH ALICE'S LOVE)."
-"English", "Then they all crowded round her once more, while the Dodo solemnly presented the thimble, saying 'We beg your acceptance of this elegant thimble'; and, when it had finished this short speech, they all cheered."
-"French", "«Cette lettre n'est point perdue, s'écria-t-il."
-"French", "Sur quoi, M. d'Artagnan père ceignit à son fils sa propre épée, l'embrassa tendrement sur les deux joues et lui donna sa bénédiction."
-"French", "«Mais, au fait, dit-il en abaissant son épieu, où est cette lettre?"
-"Spanish", "Juan de Amezqueta."
-"Spanish", "PRÓLOGO"
-"English", "Alice noticed with some surprise that the pebbles were all turning into little cakes as they lay on the floor, and a bright idea came into her head. 'If I eat one of these cakes,' she thought, 'it's sure to make SOME change in my size; and as it can't possibly make me larger, it must make me smaller, I suppose.'"
-"English", "«C'est fâcheux, continua-t-il, quelle trouvaille pour Sa Majesté, qui cherche des braves de tous côtés pour recruter ses mousquetaires!»"
-"French", "-- Des bons sur la trésorerie particulière de Sa Majesté», répondit d'Artagnan, qui, comptant entrer au service du roi grâce à cette recommandation, croyait pouvoir faire sans mentir cette réponse quelque peu hasardée."
-"French", "-- Pas avant de t'avoir tué, lâche!» criait d'Artagnan tout en faisant face du mieux qu'il pouvait et sans reculer d'un pas à ses trois ennemis, qui le moulaient de coups."
-"French", "En sortant de la chambre paternelle, le jeune homme trouva sa mère qui l'attendait avec la fameuse recette dont les conseils que nous venons de rapporter devaient nécessiter un assez fréquent emploi. Les adieux furent de ce côté plus longs et plus tendres qu'ils ne l'avaient été de l'autre, non pas que M. d'Artagnan n'aimât son fils, qui était sa seule progéniture, mais M. d'Artagnan était un homme, et il eût regardé comme indigne d'un homme de se laisser aller à son émotion, tandis que Mme d'Artagnan était femme et, de plus, était mère. -- Elle pleura abondamment, et, disons-le à la louange de M. d'Artagnan fils, quelques efforts qu'il tentât pour rester ferme comme le devait être un futur mousquetaire, la nature l'emporta et il versa force larmes, dont il parvint à grand-peine à cacher la moitié."
-"Spanish", "Y luego, en el margen, citar a Horacio, o a quien lo dijo. Si tratáredes del poder de la muerte, acudir luego con:"
-"Spanish", "Primera parte del ingenioso hidalgo don Quijote de la Mancha"
diff --git a/samples/prediction/prediction.py b/samples/prediction/prediction.py
deleted file mode 100644
index 9f33dfb..0000000
--- a/samples/prediction/prediction.py
+++ /dev/null
@@ -1,137 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample for the Google Prediction API
-
-Command-line application that trains on your input data. This sample does
-the same thing as the Hello Prediction! example. You might want to run
-the setup.sh script to load the sample data to Google Storage.
-
-Usage:
- $ python prediction.py --object_name="bucket/object" --id="model_id"
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python prediction.py --help
-
-To get detailed log output run:
-
- $ python prediction.py --logging_level=DEBUG
-"""
-
-__author__ = ('jcgregorio@google.com (Joe Gregorio), '
- 'marccohen@google.com (Marc Cohen)')
-
-import argparse
-import os
-import pprint
-import sys
-import time
-
-from apiclient import discovery
-from apiclient import sample_tools
-from oauth2client import client
-
-
-# Time to wait (in seconds) between successive checks of training status.
-SLEEP_TIME = 10
-
-
-# Declare command-line flags.
-argparser = argparse.ArgumentParser(add_help=False)
-argparser.add_argument('object_name',
- help='Full Google Storage path of csv data (ex bucket/object)')
-argparser.add_argument('id',
- help='Model Id of your choosing to name trained model')
-
-
-def print_header(line):
- '''Format and print header block sized to length of line'''
- header_str = '='
- header_line = header_str * len(line)
- print '\n' + header_line
- print line
- print header_line
-
-
-def main(argv):
- service, flags = sample_tools.init(
- argv, 'prediction', 'v1.5', __doc__, __file__, parents=[argparser],
- scope='https://www.googleapis.com/auth/prediction')
-
- try:
- # Get access to the Prediction API.
- papi = service.trainedmodels()
-
- # List models.
- print_header('Fetching list of first ten models')
- result = papi.list(maxResults=10).execute()
- print 'List results:'
- pprint.pprint(result)
-
- # Start training request on a data set.
- print_header('Submitting model training request')
- body = {'id': flags.id, 'storageDataLocation': flags.object_name}
- start = papi.insert(body=body).execute()
- print 'Training results:'
- pprint.pprint(start)
-
- # Wait for the training to complete.
- print_header('Waiting for training to complete')
- while True:
- status = papi.get(id=flags.id).execute()
- state = status['trainingStatus']
- print 'Training state: ' + state
- if state == 'DONE':
- break
- elif state == 'RUNNING':
- time.sleep(SLEEP_TIME)
- continue
- else:
- raise Exception('Training Error: ' + state)
-
- # Job has completed.
- print 'Training completed:'
- pprint.pprint(status)
- break
-
- # Describe model.
- print_header('Fetching model description')
- result = papi.analyze(id=flags.id).execute()
- print 'Analyze results:'
- pprint.pprint(result)
-
- # Make a prediction using the newly trained model.
- print_header('Making a prediction')
- body = {'input': {'csvInstance': ["mucho bueno"]}}
- result = papi.predict(body=body, id=flags.id).execute()
- print 'Prediction results...'
- pprint.pprint(result)
-
- # Delete model.
- print_header('Deleting model')
- result = papi.delete(id=flags.id).execute()
- print 'Model deleted.'
-
- except client.AccessTokenRefreshError:
- print ("The credentials have been revoked or expired, please re-run"
- "the application to re-authorize")
-
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/prediction/setup.sh b/samples/prediction/setup.sh
deleted file mode 100755
index 54bc4e6..0000000
--- a/samples/prediction/setup.sh
+++ /dev/null
@@ -1,17 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2011 Google Inc. All Rights Reserved.
-# Author: jcgregorio@google.com (Joe Gregorio)
-#
-# Uploads a training data set to Google Storage to be used by this sample
-# application.
-#
-# Usage:
-# setup.sh file_name bucket/object
-#
-# Requirements:
-# gsutil - a client application for interacting with Google Storage. It
-# can be downloaded from https://code.google.com/apis/storage/docs/gsutil.html
-FILE_NAME=$1
-OBJECT_NAME=$2
-gsutil cp $FILE_NAME gs://$OBJECT_NAME
diff --git a/samples/searchforshopping/README b/samples/searchforshopping/README
deleted file mode 100644
index aaa1dd0..0000000
--- a/samples/searchforshopping/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Samples demonstrating the query capabilities for the Search API for Shopping.
-
-api: shopping
-keywords: cmdline
diff --git a/samples/searchforshopping/basic.py b/samples/searchforshopping/basic.py
deleted file mode 100644
index 96feeb6..0000000
--- a/samples/searchforshopping/basic.py
+++ /dev/null
@@ -1,32 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Basic query against the public shopping search API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a feed of all public products available in the
- United States.
-
- Note: The source and country arguments are required to pass to the list
- method.
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- request = resource.list(source='public', country='US')
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/crowding.py b/samples/searchforshopping/crowding.py
deleted file mode 100644
index 2eea38f..0000000
--- a/samples/searchforshopping/crowding.py
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Query with grouping against the shopping search API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a feed of public products in the United States mathing a
- text search query for 'digital camera' and grouped by the 8 top brands.
-
- The list method of the resource should be called with the "crowdBy"
- parameter. Each parameter should be designed as :,
- where is the number of that that will be used. For
- example, to crowd by the 5 top brands, the parameter would be "brand:5". The
- possible rules for crowding are currently:
-
- account_id: (eg account_id:5)
- brand: (eg brand:5)
- condition: (eg condition:3)
- gtin: (eg gtin:10)
- price: (eg price:10)
-
- Multiple crowding rules should be specified by separating them with a comma,
- for example to crowd by the top 5 brands and then condition of those items,
- the parameter should be crowdBy="brand:5,condition:3"
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- # The crowdBy parameter to the list method causes the results to be grouped,
- # in this case by the top 8 brands.
- request = resource.list(source='public', country='US', q=u'digital camera',
- crowdBy='brand:8')
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/fulltextsearch.py b/samples/searchforshopping/fulltextsearch.py
deleted file mode 100644
index f838223..0000000
--- a/samples/searchforshopping/fulltextsearch.py
+++ /dev/null
@@ -1,40 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Full text search query against the shopping search API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a feed of all public products matching the search query
- "digital camera".
-
- This is achieved by using the q query parameter to the list method.
-
- The "|" operator can be used to search for alternative search terms, for
- example: q = 'banana|apple' will search for bananas or apples.
-
- Search phrases such as those containing spaces can be specified by
- surrounding them with double quotes, for example q='"mp3 player"'. This can
- be useful when combining with the "|" operator such as q = '"mp3
- player"|ipod'.
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- # Note the 'q' parameter, which will contain the value of the search query
- request = resource.list(source='public', country='US', q=u'digital camera')
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/histograms.py b/samples/searchforshopping/histograms.py
deleted file mode 100644
index 6bd3a2f..0000000
--- a/samples/searchforshopping/histograms.py
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Query with ranked results against the shopping search API"""
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a histogram of the top 15 brand distribution for a search
- query.
-
- Histograms are created by using the "Facets" functionality of the API. A
- Facet is a view of a certain property of products, containing a number of
- buckets, one for each value of that property. Or concretely, for a parameter
- such as "brand" of a product, the facets would include a facet for brand,
- which would contain a number of buckets, one for each brand returned in the
- result.
-
- A bucket contains either a value and a count, or a value and a range. In the
- simple case of a value and a count for our example of the "brand" property,
- the value would be the brand name, eg "sony" and the count would be the
- number of results in the search.
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- request = resource.list(source='public', country='US', q=u'digital camera',
- facets_include='brand:15', facets_enabled=True)
- response = request.execute()
-
- # Pick the first and only facet for this query
- facet = response['facets'][0]
-
- print '\n\tHistogram for "%s":\n' % facet['property']
-
- labels = []
- values = []
-
- for bucket in facet['buckets']:
- labels.append(bucket['value'].rjust(20))
- values.append(bucket['count'])
-
- weighting = 50.0 / max(values)
-
- for label, value in zip(labels, values):
- print label, '#' * int(weighting * value), '(%s)' % value
-
- print
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/main.py b/samples/searchforshopping/main.py
deleted file mode 100644
index 9b73cb1..0000000
--- a/samples/searchforshopping/main.py
+++ /dev/null
@@ -1,73 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-'''Simple command-line example for The Google Search
-API for Shopping.
-
-Command-line application that does a search for products.
-'''
-
-__author__ = 'aherrman@google.com (Andy Herrman)'
-
-from apiclient.discovery import build
-
-# Uncomment the next line to get very detailed logging
-# httplib2.debuglevel = 4
-
-
-def main():
- p = build('shopping', 'v1',
- developerKey='AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0')
-
- # Search over all public offers:
- print 'Searching all public offers.'
- res = p.products().list(
- country='US',
- source='public',
- q='android t-shirt'
- ).execute()
- print_items(res['items'])
-
- # Search over a specific merchant's offers:
- print
- print 'Searching Google Store.'
- res = p.products().list(
- country='US',
- source='public',
- q='android t-shirt',
- restrictBy='accountId:5968952',
- ).execute()
- print_items(res['items'])
-
- # Remember the Google Id of the last product
- googleId = res['items'][0]['product']['googleId']
-
- # Get data for the single public offer:
- print
- print 'Getting data for offer %s' % googleId
- res = p.products().get(
- source='public',
- accountId='5968952',
- productIdType='gid',
- productId=googleId
- ).execute()
- print_item(res)
-
-
-def print_item(item):
- """Displays a single item: title, merchant, link."""
- product = item['product']
- print '- %s [%s] (%s)' % (product['title'],
- product['author']['name'],
- product['link'])
-
-
-def print_items(items):
- """Displays a number of items."""
- for item in items:
- print_item(item)
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/pagination.py b/samples/searchforshopping/pagination.py
deleted file mode 100644
index c938247..0000000
--- a/samples/searchforshopping/pagination.py
+++ /dev/null
@@ -1,47 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Queries with paginated results against the shopping search API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a the entire paginated feed of public products in the United
- States.
-
- Pagination is controlled with the "startIndex" parameter passed to the list
- method of the resource.
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- # The first request contains the information we need for the total items, and
- # page size, as well as returning the first page of results.
- request = resource.list(source='public', country='US', q=u'digital camera')
- response = request.execute()
- itemsPerPage = response['itemsPerPage']
- totalItems = response['totalItems']
- for i in range(1, totalItems, itemsPerPage):
- answer = raw_input('About to display results from %s to %s, y/(n)? ' %
- (i, i + itemsPerPage))
- if answer.strip().lower().startswith('n'):
- # Stop if the user has had enough
- break
- else:
- # Fetch this series of results
- request = resource.list(source='public', country='US',
- q=u'digital camera', startIndex=i)
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/ranking.py b/samples/searchforshopping/ranking.py
deleted file mode 100644
index 86ad2ee..0000000
--- a/samples/searchforshopping/ranking.py
+++ /dev/null
@@ -1,46 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Query with ranked results against the shopping search API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a feed of public products in the United States mathing a
- text search query for 'digital camera' ranked by ascending price.
-
- The list method for the resource should be called with the "rankBy"
- parameter. 5 parameters to rankBy are currently supported by the API. They
- are:
-
- "relevancy"
- "modificationTime:ascending"
- "modificationTime:descending"
- "price:ascending"
- "price:descending"
-
- These parameters can be combined
-
- The default ranking is "relevancy" if the rankBy parameter is omitted.
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- # The rankBy parameter to the list method causes results to be ranked, in
- # this case by ascending price.
- request = resource.list(source='public', country='US', q=u'digital camera',
- rankBy='price:ascending')
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/searchforshopping/restricting.py b/samples/searchforshopping/restricting.py
deleted file mode 100644
index 1d21c69..0000000
--- a/samples/searchforshopping/restricting.py
+++ /dev/null
@@ -1,44 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright 2010 Google Inc. All Rights Reserved.
-
-"""Query that is restricted by a parameter against the public shopping search
-API"""
-
-import pprint
-
-from apiclient.discovery import build
-
-
-SHOPPING_API_VERSION = 'v1'
-DEVELOPER_KEY = 'AIzaSyACZJW4JwcWwz5taR2gjIMNQrtgDLfILPc'
-
-
-def main():
- """Get and print a feed of all public products matching the search query
- "digital camera", that are created by "Canon" available in the
- United States.
-
- The "restrictBy" parameter controls which types of results are returned.
-
- Multiple values for a single restrictBy can be separated by the "|" operator,
- so to look for all products created by Canon, Sony, or Apple:
-
- restrictBy = 'brand:canon|sony|apple'
-
- Multiple restricting parameters should be separated by a comma, so for
- products created by Sony with the word "32GB" in the title:
-
- restrictBy = 'brand:sony,title:32GB'
- """
- client = build('shopping', SHOPPING_API_VERSION, developerKey=DEVELOPER_KEY)
- resource = client.products()
- request = resource.list(source='public', country='US',
- restrictBy='brand:canon', q='Digital Camera')
- response = request.execute()
- pprint.pprint(response)
-
-
-if __name__ == '__main__':
- main()
diff --git a/samples/service_account/README b/samples/service_account/README
deleted file mode 100644
index 7662df5..0000000
--- a/samples/service_account/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Sample that demonstrates working with Service Accounts.
-
-api: tasks
-keywords: oauth2
diff --git a/samples/service_account/tasks.py b/samples/service_account/tasks.py
deleted file mode 100644
index 54f4936..0000000
--- a/samples/service_account/tasks.py
+++ /dev/null
@@ -1,65 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2012 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line sample that demonstrates service accounts.
-
-Lists all the Google Task Lists associated with the given service account.
-Service accounts are created in the Google API Console. See the documentation
-for more information:
-
- https://developers.google.com/console/help/#WhatIsKey
-
-Usage:
- $ python tasks.py
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import httplib2
-import pprint
-import sys
-
-from apiclient.discovery import build
-from oauth2client.client import SignedJwtAssertionCredentials
-
-def main(argv):
- # Load the key in PKCS 12 format that you downloaded from the Google API
- # Console when you created your Service account.
- f = file('key.p12', 'rb')
- key = f.read()
- f.close()
-
- # Create an httplib2.Http object to handle our HTTP requests and authorize it
- # with the Credentials. Note that the first parameter, service_account_name,
- # is the Email address created for the Service account. It must be the email
- # address associated with the key that was created.
- credentials = SignedJwtAssertionCredentials(
- '141491975384@developer.gserviceaccount.com',
- key,
- scope='https://www.googleapis.com/auth/tasks')
- http = httplib2.Http()
- http = credentials.authorize(http)
-
- service = build("tasks", "v1", http=http)
-
- # List all the tasklists for the account.
- lists = service.tasklists().list().execute(http=http)
- pprint.pprint(lists)
-
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/storage/README b/samples/storage/README
deleted file mode 100644
index ff61bee..0000000
--- a/samples/storage/README
+++ /dev/null
@@ -1,7 +0,0 @@
-Uploads and downloads files between Google Cloud Storage and the local
-filesystem using the Google APIs Python Client Library.
-
-api: storage
-keywords: cmdline media
-uri: http://code.google.com/p/google-cloud-platform-samples/source/browse?repo=storage#git%252Ffile-transfer-json
-
diff --git a/samples/storage_serviceaccount_appengine/app.yaml b/samples/storage_serviceaccount_appengine/app.yaml
deleted file mode 100644
index 88d00d5..0000000
--- a/samples/storage_serviceaccount_appengine/app.yaml
+++ /dev/null
@@ -1,13 +0,0 @@
-application: bucket-list-python
-version: 1
-runtime: python27
-threadsafe: no
-api_version: 1
-
-handlers:
-- url: /listing.xsl
- static_files: listing.xsl
- upload: listing.xsl
-
-- url: .*
- script: main.py
diff --git a/samples/storage_serviceaccount_appengine/listing.xsl b/samples/storage_serviceaccount_appengine/listing.xsl
deleted file mode 100755
index ba12ba4..0000000
--- a/samples/storage_serviceaccount_appengine/listing.xsl
+++ /dev/null
@@ -1,32 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/storage_serviceaccount_appengine/main.py b/samples/storage_serviceaccount_appengine/main.py
deleted file mode 100644
index 1734e4f..0000000
--- a/samples/storage_serviceaccount_appengine/main.py
+++ /dev/null
@@ -1,97 +0,0 @@
-#!/usr/bin/env python
-#
-# Copyright 2007 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-#
-"""This application produces formatted listings for Google Cloud
- Storage buckets.
-
-It takes a bucket name in the URL path and does an HTTP GET on the
-corresponding Google Cloud Storage URL to obtain a listing of the bucket
-contents. For example, if this app is invoked with the URI
-http://bucket-list.appspot.com/foo, it would remove the bucket name 'foo',
-append it to the Google Cloud Storage service URI and send a GET request to
-the resulting URI. The bucket listing is returned in an XML document, which is
-prepended with a reference to an XSLT style sheet for human readable
-presentation.
-
-More information about using Google App Engine apps and service accounts to
-call Google APIs can be found here:
-
-
-
-"""
-
-__author__ = 'marccohen@google.com (Marc Cohen)'
-
-import httplib2
-import logging
-import os
-import pickle
-import re
-
-from google.appengine.api import memcache
-from google.appengine.ext import webapp
-from google.appengine.ext.webapp import template
-from google.appengine.ext.webapp.util import run_wsgi_app
-from oauth2client.appengine import AppAssertionCredentials
-
-# Constants for the XSL stylesheet and the Google Cloud Storage URI.
-XSL = '\n\n';
-URI = 'http://commondatastorage.googleapis.com'
-
-# Obtain service account credentials and authorize HTTP connection.
-credentials = AppAssertionCredentials(
- scope='https://www.googleapis.com/auth/devstorage.read_write')
-http = credentials.authorize(httplib2.Http(memcache))
-
-
-class MainHandler(webapp.RequestHandler):
-
- def get(self):
- try:
- # Derive desired bucket name from path after domain name.
- bucket = self.request.path
- if bucket[-1] == '/':
- # Trim final slash, if necessary.
- bucket = bucket[:-1]
- # Send HTTP request to Google Cloud Storage to obtain bucket listing.
- resp, content = http.request(URI + bucket, "GET")
- if resp.status != 200:
- # If error getting bucket listing, raise exception.
- err = 'Error: ' + str(resp.status) + ', bucket: ' + bucket + \
- ', response: ' + str(content)
- raise Exception(err)
- # Edit returned bucket listing XML to insert a reference to our style
- # sheet for nice formatting and send results to client.
- content = re.sub('( l else s
-
-
-application = webapp2.WSGIApplication([
- ('/', MainHandler),
- (decorator.callback_path, decorator.callback_handler()),
- ], debug=True)
diff --git a/samples/tasks_appengine/settings.py.sample b/samples/tasks_appengine/settings.py.sample
deleted file mode 100644
index ee76355..0000000
--- a/samples/tasks_appengine/settings.py.sample
+++ /dev/null
@@ -1,3 +0,0 @@
-CLIENT_ID='PASTE_YOUR_GENERATED_CLIENT_ID_HERE'
-CLIENT_SECRET='PASTE_YOUR GENERATED_CLIENT_SECRET_HERE'
-SCOPE='https://www.googleapis.com/auth/tasks.readonly'
diff --git a/samples/tasks_appengine/templates/index.html b/samples/tasks_appengine/templates/index.html
deleted file mode 100644
index 7160f0c..0000000
--- a/samples/tasks_appengine/templates/index.html
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
-
-
-
-
-
diff --git a/samples/translate/README b/samples/translate/README
deleted file mode 100644
index 6bde24c..0000000
--- a/samples/translate/README
+++ /dev/null
@@ -1,5 +0,0 @@
-Simple sample for the translate API.
-
-api: translate
-keywords: cmdline
-
diff --git a/samples/translate/main.py b/samples/translate/main.py
deleted file mode 100644
index 04db09a..0000000
--- a/samples/translate/main.py
+++ /dev/null
@@ -1,42 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Simple command-line example for Translate.
-
-Command-line application that translates some text.
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-from apiclient.discovery import build
-
-
-def main():
-
- # Build a service object for interacting with the API. Visit
- # the Google APIs Console
- # to get an API key for your own application.
- service = build('translate', 'v2',
- developerKey='AIzaSyDRRpR3GS1F1_jKNNM9HCNd2wJQyPG3oN0')
- print service.translations().list(
- source='en',
- target='fr',
- q=['flower', 'car']
- ).execute()
-
-if __name__ == '__main__':
- main()
diff --git a/samples/urlshortener/README b/samples/urlshortener/README
deleted file mode 100644
index a33e8a8..0000000
--- a/samples/urlshortener/README
+++ /dev/null
@@ -1,4 +0,0 @@
-Shortens and URL with the URL Shortener API.
-
-api: urlshortener
-keywords: cmdline
diff --git a/samples/urlshortener/client_secrets.json b/samples/urlshortener/client_secrets.json
deleted file mode 100644
index a232f37..0000000
--- a/samples/urlshortener/client_secrets.json
+++ /dev/null
@@ -1,9 +0,0 @@
-{
- "web": {
- "client_id": "[[INSERT CLIENT ID HERE]]",
- "client_secret": "[[INSERT CLIENT SECRET HERE]]",
- "redirect_uris": [],
- "auth_uri": "https://accounts.google.com/o/oauth2/auth",
- "token_uri": "https://accounts.google.com/o/oauth2/token"
- }
-}
diff --git a/samples/urlshortener/urlshortener.py b/samples/urlshortener/urlshortener.py
deleted file mode 100644
index b3dbbcd..0000000
--- a/samples/urlshortener/urlshortener.py
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/usr/bin/python2.4
-# -*- coding: utf-8 -*-
-#
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Command-line sample for the Google URL Shortener API.
-
-Simple command-line example for Google URL Shortener API that shortens
-a URI then expands it.
-
-Usage:
- $ python urlshortener.py
-
-You can also get help on all the command-line flags the program understands
-by running:
-
- $ python urlshortener.py --help
-
-To get detailed log output run:
-
- $ python urlshortener.py --logging_level=DEBUG
-"""
-
-__author__ = 'jcgregorio@google.com (Joe Gregorio)'
-
-import pprint
-import sys
-
-from oauth2client import client
-from apiclient import sample_tools
-
-def main(argv):
- service, flags = sample_tools.init(
- argv, 'urlshortener', 'v1', __doc__, __file__,
- scope='https://www.googleapis.com/auth/urlshortener')
-
- try:
- url = service.url()
-
- # Create a shortened URL by inserting the URL into the url collection.
- body = {'longUrl': 'http://code.google.com/apis/urlshortener/' }
- resp = url.insert(body=body).execute()
- pprint.pprint(resp)
-
- short_url = resp['id']
-
- # Convert the shortened URL back into a long URL
- resp = url.get(shortUrl=short_url).execute()
- pprint.pprint(resp)
-
- except client.AccessTokenRefreshError:
- print ('The credentials have been revoked or expired, please re-run'
- 'the application to re-authorize')
-
-if __name__ == '__main__':
- main(sys.argv)
diff --git a/samples/youtube/README b/samples/youtube/README
deleted file mode 100644
index b67d3ba..0000000
--- a/samples/youtube/README
+++ /dev/null
@@ -1,5 +0,0 @@
-YouTube samples using the Google APIs Python Client Library.
-
-api: youtube
-keywords: cmdline media
-uri: https://code.google.com/p/youtube-api-samples/source/browse/#git%2Fsamples%2Fpython
diff --git a/setpath.sh b/setpath.sh
deleted file mode 100644
index 8fb8f1b..0000000
--- a/setpath.sh
+++ /dev/null
@@ -1 +0,0 @@
-export PYTHONPATH=`pwd`:${PYTHONPATH}
diff --git a/setup.py b/setup.py
index b2a011b..c33e150 100644
--- a/setup.py
+++ b/setup.py
@@ -1,4 +1,4 @@
-# Copyright (C) 2010 Google Inc.
+# Copyright (C) 2014 Google Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-"""Setup script for Google API Python client.
+"""Setup script for oauth2client.
Also installs included versions of third party libraries, if those libraries
are not already installed.
@@ -20,14 +20,13 @@ are not already installed.
from setuptools import setup
packages = [
- 'apiclient',
- 'oauth2client',
- 'uritemplate',
- ]
+ 'oauth2client',
+ 'uritemplate',
+]
install_requires = [
'httplib2>=0.8',
- ]
+]
needs_json = False
try:
@@ -41,26 +40,28 @@ except ImportError:
if needs_json:
install_requires.append('simplejson')
-long_desc = """The Google API Client for Python is a client library for
-accessing the Plus, Moderator, and many other Google APIs."""
+long_desc = """The oauth2client is a client library for OAuth 2.0."""
-import apiclient
-version = apiclient.__version__
+import oauth2client
+version = oauth2client.__version__
-setup(name="google-api-python-client",
- version=version,
- description="Google API Client Library for Python",
- long_description=long_desc,
- author="Joe Gregorio",
- author_email="jcgregorio@google.com",
- url="http://code.google.com/p/google-api-python-client/",
- install_requires=install_requires,
- packages=packages,
- package_data={},
- license="Apache 2.0",
- keywords="google api client",
- classifiers=['Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Apache Software License',
- 'Operating System :: POSIX',
- 'Topic :: Internet :: WWW/HTTP'])
+setup(
+ name="oauth2client",
+ version=version,
+ description="OAuth 2.0 client library",
+ long_description=long_desc,
+ author="Joe Gregorio",
+ author_email="jcgregorio@google.com",
+ url="http://github.com/google/oauth2client/",
+ install_requires=install_requires,
+ packages=packages,
+ license="Apache 2.0",
+ keywords="google oauth 2.0 http client",
+ classifiers=[
+ 'Development Status :: 5 - Production/Stable',
+ 'Intended Audience :: Developers',
+ 'License :: OSI Approved :: Apache Software License',
+ 'Operating System :: POSIX',
+ 'Topic :: Internet :: WWW/HTTP',
+ ],
+)
diff --git a/setup_oauth2client.py b/setup_oauth2client.py
deleted file mode 100644
index 581ed61..0000000
--- a/setup_oauth2client.py
+++ /dev/null
@@ -1,63 +0,0 @@
-# Copyright (C) 2010 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Setup script for oauth2client.
-
-Also installs included versions of third party libraries, if those libraries
-are not already installed.
-"""
-from setuptools import setup
-
-packages = [
- 'oauth2client',
- 'uritemplate',
-]
-
-install_requires = [
- 'httplib2>=0.8',
- ]
-
-needs_json = False
-try:
- import json
-except ImportError:
- try:
- import simplejson
- except ImportError:
- needs_json = True
-
-if needs_json:
- install_requires.append('simplejson')
-
-long_desc = """The oauth2client is a client library for OAuth 2.0."""
-
-import oauth2client
-version = oauth2client.__version__
-
-setup(name="oauth2client",
- version=version,
- description="OAuth 2.0 client library",
- long_description=long_desc,
- author="Joe Gregorio",
- author_email="jcgregorio@google.com",
- url="http://code.google.com/p/google-api-python-client/",
- install_requires=install_requires,
- packages=packages,
- license="Apache 2.0",
- keywords="google oauth 2.0 http client",
- classifiers=['Development Status :: 5 - Production/Stable',
- 'Intended Audience :: Developers',
- 'License :: OSI Approved :: Apache Software License',
- 'Operating System :: POSIX',
- 'Topic :: Internet :: WWW/HTTP'])
diff --git a/sitecustomize.py b/sitecustomize.py
deleted file mode 100644
index 7483951..0000000
--- a/sitecustomize.py
+++ /dev/null
@@ -1,12 +0,0 @@
-# Set up the system so that this development
-# version of google-api-python-client is run, even if
-# an older version is installed on the system.
-#
-# To make this totally automatic add the following to
-# your ~/.bash_profile:
-#
-# export PYTHONPATH=/path/to/where/you/checked/out/apiclient
-import sys
-import os
-
-sys.path.insert(0, os.path.dirname(__file__))
diff --git a/static/Credentials.png b/static/Credentials.png
deleted file mode 100644
index a5be2c5..0000000
Binary files a/static/Credentials.png and /dev/null differ
diff --git a/tests/test_channel.py b/tests/test_channel.py
index f6a6d55..0e348a5 100644
--- a/tests/test_channel.py
+++ b/tests/test_channel.py
@@ -5,8 +5,8 @@ __author__ = 'jcgregorio@google.com (Joe Gregorio)'
import unittest
import datetime
-from apiclient import channel
-from apiclient import errors
+from googleapiclient import channel
+from googleapiclient import errors
class TestChannel(unittest.TestCase):
diff --git a/tests/test_discovery.py b/tests/test_discovery.py
index 499edda..3d30d8c 100644
--- a/tests/test_discovery.py
+++ b/tests/test_discovery.py
@@ -40,29 +40,29 @@ except ImportError:
from cgi import parse_qs
-from apiclient.discovery import _fix_up_media_upload
-from apiclient.discovery import _fix_up_method_description
-from apiclient.discovery import _fix_up_parameters
-from apiclient.discovery import build
-from apiclient.discovery import build_from_document
-from apiclient.discovery import DISCOVERY_URI
-from apiclient.discovery import key2param
-from apiclient.discovery import MEDIA_BODY_PARAMETER_DEFAULT_VALUE
-from apiclient.discovery import ResourceMethodParameters
-from apiclient.discovery import STACK_QUERY_PARAMETERS
-from apiclient.discovery import STACK_QUERY_PARAMETER_DEFAULT_VALUE
-from apiclient.errors import HttpError
-from apiclient.errors import InvalidJsonError
-from apiclient.errors import MediaUploadSizeError
-from apiclient.errors import ResumableUploadError
-from apiclient.errors import UnacceptableMimeTypeError
-from apiclient.http import HttpMock
-from apiclient.http import HttpMockSequence
-from apiclient.http import MediaFileUpload
-from apiclient.http import MediaIoBaseUpload
-from apiclient.http import MediaUpload
-from apiclient.http import MediaUploadProgress
-from apiclient.http import tunnel_patch
+from googleapiclient.discovery import _fix_up_media_upload
+from googleapiclient.discovery import _fix_up_method_description
+from googleapiclient.discovery import _fix_up_parameters
+from googleapiclient.discovery import build
+from googleapiclient.discovery import build_from_document
+from googleapiclient.discovery import DISCOVERY_URI
+from googleapiclient.discovery import key2param
+from googleapiclient.discovery import MEDIA_BODY_PARAMETER_DEFAULT_VALUE
+from googleapiclient.discovery import ResourceMethodParameters
+from googleapiclient.discovery import STACK_QUERY_PARAMETERS
+from googleapiclient.discovery import STACK_QUERY_PARAMETER_DEFAULT_VALUE
+from googleapiclient.errors import HttpError
+from googleapiclient.errors import InvalidJsonError
+from googleapiclient.errors import MediaUploadSizeError
+from googleapiclient.errors import ResumableUploadError
+from googleapiclient.errors import UnacceptableMimeTypeError
+from googleapiclient.http import HttpMock
+from googleapiclient.http import HttpMockSequence
+from googleapiclient.http import MediaFileUpload
+from googleapiclient.http import MediaIoBaseUpload
+from googleapiclient.http import MediaUpload
+from googleapiclient.http import MediaUploadProgress
+from googleapiclient.http import tunnel_patch
from oauth2client import GOOGLE_TOKEN_URI
from oauth2client import util
from oauth2client.anyjson import simplejson
@@ -100,7 +100,7 @@ def datafile(filename):
class SetupHttplib2(unittest.TestCase):
def test_retries(self):
- # Merely loading apiclient.discovery should set the RETRIES to 1.
+ # Merely loading googleapiclient.discovery should set the RETRIES to 1.
self.assertEqual(1, httplib2.RETRIES)
diff --git a/tests/test_errors.py b/tests/test_errors.py
index bd6c6d5..f3d26d3 100644
--- a/tests/test_errors.py
+++ b/tests/test_errors.py
@@ -24,7 +24,7 @@ import unittest
import httplib2
-from apiclient.errors import HttpError
+from googleapiclient.errors import HttpError
JSON_ERROR_CONTENT = """
diff --git a/tests/test_http.py b/tests/test_http.py
index 4ef0dfb..0aab456 100644
--- a/tests/test_http.py
+++ b/tests/test_http.py
@@ -16,7 +16,7 @@
"""Http tests
-Unit tests for the apiclient.http.
+Unit tests for the googleapiclient.http.
"""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
@@ -31,23 +31,23 @@ import random
import StringIO
import time
-from apiclient.discovery import build
-from apiclient.errors import BatchError
-from apiclient.errors import HttpError
-from apiclient.errors import InvalidChunkSizeError
-from apiclient.http import BatchHttpRequest
-from apiclient.http import HttpMock
-from apiclient.http import HttpMockSequence
-from apiclient.http import HttpRequest
-from apiclient.http import MAX_URI_LENGTH
-from apiclient.http import MediaFileUpload
-from apiclient.http import MediaInMemoryUpload
-from apiclient.http import MediaIoBaseDownload
-from apiclient.http import MediaIoBaseUpload
-from apiclient.http import MediaUpload
-from apiclient.http import _StreamSlice
-from apiclient.http import set_user_agent
-from apiclient.model import JsonModel
+from googleapiclient.discovery import build
+from googleapiclient.errors import BatchError
+from googleapiclient.errors import HttpError
+from googleapiclient.errors import InvalidChunkSizeError
+from googleapiclient.http import BatchHttpRequest
+from googleapiclient.http import HttpMock
+from googleapiclient.http import HttpMockSequence
+from googleapiclient.http import HttpRequest
+from googleapiclient.http import MAX_URI_LENGTH
+from googleapiclient.http import MediaFileUpload
+from googleapiclient.http import MediaInMemoryUpload
+from googleapiclient.http import MediaIoBaseDownload
+from googleapiclient.http import MediaIoBaseUpload
+from googleapiclient.http import MediaUpload
+from googleapiclient.http import _StreamSlice
+from googleapiclient.http import set_user_agent
+from googleapiclient.model import JsonModel
from oauth2client.client import Credentials
diff --git a/tests/test_json_model.py b/tests/test_json_model.py
index b7d8e7f..468db28 100644
--- a/tests/test_json_model.py
+++ b/tests/test_json_model.py
@@ -25,11 +25,11 @@ import copy
import os
import unittest
import httplib2
-import apiclient.model
+import googleapiclient.model
-from apiclient import __version__
-from apiclient.errors import HttpError
-from apiclient.model import JsonModel
+from googleapiclient import __version__
+from googleapiclient.errors import HttpError
+from googleapiclient.model import JsonModel
from oauth2client.anyjson import simplejson
# Python 2.5 requires different modules
@@ -216,9 +216,9 @@ class Model(unittest.TestCase):
self.status = items['status']
for key, value in items.iteritems():
self[key] = value
- old_logging = apiclient.model.logging
- apiclient.model.logging = MockLogging()
- apiclient.model.dump_request_response = True
+ old_logging = googleapiclient.model.logging
+ googleapiclient.model.logging = MockLogging()
+ googleapiclient.model.dump_request_response = True
model = JsonModel()
request_body = {
'field1': 'value1',
@@ -233,18 +233,18 @@ class Model(unittest.TestCase):
'response_field_2': 'response_value_2'}
response_body = model.response(MockResponse(response), body_string)
self.assertEqual(request_body, response_body)
- self.assertEqual(apiclient.model.logging.info_record[:2],
+ self.assertEqual(googleapiclient.model.logging.info_record[:2],
['--request-start--',
'-headers-start-'])
self.assertTrue('response_field_1: response_value_1' in
- apiclient.model.logging.info_record)
+ googleapiclient.model.logging.info_record)
self.assertTrue('response_field_2: response_value_2' in
- apiclient.model.logging.info_record)
- self.assertEqual(simplejson.loads(apiclient.model.logging.info_record[-2]),
+ googleapiclient.model.logging.info_record)
+ self.assertEqual(simplejson.loads(googleapiclient.model.logging.info_record[-2]),
request_body)
- self.assertEqual(apiclient.model.logging.info_record[-1],
+ self.assertEqual(googleapiclient.model.logging.info_record[-1],
'--response-end--')
- apiclient.model.logging = old_logging
+ googleapiclient.model.logging = old_logging
def test_no_data_wrapper_deserialize(self):
model = JsonModel(data_wrapper=False)
diff --git a/tests/test_mocks.py b/tests/test_mocks.py
index 5c51f1a..6b2360b 100644
--- a/tests/test_mocks.py
+++ b/tests/test_mocks.py
@@ -25,12 +25,12 @@ import httplib2
import os
import unittest
-from apiclient.errors import HttpError
-from apiclient.errors import UnexpectedBodyError
-from apiclient.errors import UnexpectedMethodError
-from apiclient.discovery import build
-from apiclient.http import RequestMockBuilder
-from apiclient.http import HttpMock
+from googleapiclient.errors import HttpError
+from googleapiclient.errors import UnexpectedBodyError
+from googleapiclient.errors import UnexpectedMethodError
+from googleapiclient.discovery import build
+from googleapiclient.http import RequestMockBuilder
+from googleapiclient.http import HttpMock
DATA_DIR = os.path.join(os.path.dirname(__file__), 'data')
diff --git a/tests/test_model.py b/tests/test_model.py
index 5b9b2be..776c7fd 100644
--- a/tests/test_model.py
+++ b/tests/test_model.py
@@ -24,7 +24,7 @@ __author__ = 'jcgregorio@google.com (Joe Gregorio)'
import httplib2
import unittest
-from apiclient.model import makepatch
+from googleapiclient.model import makepatch
TEST_CASES = [
diff --git a/tests/test_oauth2client.py b/tests/test_oauth2client.py
index a075e1f..738bfbe 100644
--- a/tests/test_oauth2client.py
+++ b/tests/test_oauth2client.py
@@ -29,8 +29,8 @@ import os
import unittest
import urlparse
-from apiclient.http import HttpMock
-from apiclient.http import HttpMockSequence
+from googleapiclient.http import HttpMock
+from googleapiclient.http import HttpMockSequence
from oauth2client import GOOGLE_REVOKE_URI
from oauth2client import GOOGLE_TOKEN_URI
from oauth2client.anyjson import simplejson
diff --git a/tests/test_oauth2client_appengine.py b/tests/test_oauth2client_appengine.py
index d55518b..2c3ce75 100644
--- a/tests/test_oauth2client_appengine.py
+++ b/tests/test_oauth2client_appengine.py
@@ -40,7 +40,7 @@ import dev_appserver
dev_appserver.fix_sys_path()
import webapp2
-from apiclient.http import HttpMockSequence
+from googleapiclient.http import HttpMockSequence
from google.appengine.api import apiproxy_stub
from google.appengine.api import apiproxy_stub_map
from google.appengine.api import app_identity
diff --git a/tests/test_oauth2client_file.py b/tests/test_oauth2client_file.py
index 786d708..910466a 100644
--- a/tests/test_oauth2client_file.py
+++ b/tests/test_oauth2client_file.py
@@ -31,7 +31,7 @@ import stat
import tempfile
import unittest
-from apiclient.http import HttpMockSequence
+from googleapiclient.http import HttpMockSequence
from oauth2client import GOOGLE_TOKEN_URI
from oauth2client import file
from oauth2client import locked_file
diff --git a/tests/test_oauth2client_jwt.py b/tests/test_oauth2client_jwt.py
index 8038520..f8cf00b 100644
--- a/tests/test_oauth2client_jwt.py
+++ b/tests/test_oauth2client_jwt.py
@@ -35,7 +35,7 @@ try:
except ImportError:
from cgi import parse_qs
-from apiclient.http import HttpMockSequence
+from googleapiclient.http import HttpMockSequence
from oauth2client import crypt
from oauth2client.anyjson import simplejson
from oauth2client.client import Credentials
diff --git a/tests/test_protobuf_model.py b/tests/test_protobuf_model.py
index b9c92b0..b4cde55 100644
--- a/tests/test_protobuf_model.py
+++ b/tests/test_protobuf_model.py
@@ -23,10 +23,10 @@ __author__ = 'mmcdonald@google.com (Matt McDonald)'
import unittest
import httplib2
-import apiclient.model
+import googleapiclient.model
-from apiclient.errors import HttpError
-from apiclient.model import ProtocolBufferModel
+from googleapiclient.errors import HttpError
+from googleapiclient.model import ProtocolBufferModel
# Python 2.5 requires different modules
try:
diff --git a/tests/test_schema.py b/tests/test_schema.py
index 64c7be5..48f123d 100644
--- a/tests/test_schema.py
+++ b/tests/test_schema.py
@@ -12,7 +12,7 @@
# See the License for the specific language governing permissions and
# limitations under the License.
-"""Unit tests for apiclient.schema."""
+"""Unit tests for googleapiclient.schema."""
__author__ = 'jcgregorio@google.com (Joe Gregorio)'
@@ -20,7 +20,7 @@ import os
import unittest
import StringIO
-from apiclient.schema import Schemas
+from googleapiclient.schema import Schemas
from oauth2client.anyjson import simplejson
diff --git a/tools/gae-zip-creator.sh b/tools/gae-zip-creator.sh
deleted file mode 100755
index 1f225b1..0000000
--- a/tools/gae-zip-creator.sh
+++ /dev/null
@@ -1,68 +0,0 @@
-#!/bin/bash
-#
-# Copyright 2012, Google Inc
-#
-# Generates a zip of the google api python client and dependencies.
-#
-# Author: afshar@google.com (Ali Afshar)
-
-# Exit on failure.
-set -e
-
-# Where to build the zip.
-ROOT_PATH=$(pwd)/build/gae
-BUILD_PATH=${ROOT_PATH}/build
-LIB_PATH=${ROOT_PATH}/lib
-ENV_PATH=${ROOT_PATH}/ve
-LOG_PATH=${ROOT_PATH}/gae_zip_build.log
-
-# The api client version
-APICLIENT_VERSION=$(python -c "import apiclient; print apiclient.__version__")
-
-# Where to create the zip.
-DIST_PATH=$(pwd)/dist/gae
-ZIP_NAME=google-api-python-client-gae-${APICLIENT_VERSION}.zip
-ZIP_PATH=${DIST_PATH}/${ZIP_NAME}
-
-# Make sure we are all clean.
-echo "Cleaning build env"
-rm -rf ${ROOT_PATH}
-mkdir -p ${ROOT_PATH}
-
-# We must not use the system pip, since that exposes a bug uninstalling httplib2
-# instead, install the dev version of pip.
-echo "Creating virtualenv and installing pip==dev"
-virtualenv --no-site-packages ${ENV_PATH} >> ${LOG_PATH}
-${ENV_PATH}/bin/pip install --upgrade pip==dev >> ${LOG_PATH}
-
-# Install the library with dependencies.
-echo "Building google-api-python client"
-${ENV_PATH}/bin/pip install -b ${BUILD_PATH} -t ${LIB_PATH} . >> ${LOG_PATH}
-
-# Prune the things we don't want.
-echo "Pruning target library"
-find ${LIB_PATH} -name "*.pyc" -exec rm {} \; >> ${LOG_PATH}
-rm -rf ${LIB_PATH}/*.egg-info >> ${LOG_PATH}
-
-# Create the zip.
-echo "Creating zip"
-mkdir -p ${DIST_PATH}
-pushd ${LIB_PATH} >> ${LOG_PATH}
-zip -r ${ZIP_PATH} * >> ${LOG_PATH}
-popd >> ${LOG_PATH}
-
-# We are done.
-echo "Built zip in ${ZIP_PATH}"
-
-# Sanity test the zip.
-# TODO (afshar): Run the complete test suite.
-echo "Sanity testing the zip:"
-export SANITY_MODS="httplib2 apiclient uritemplate oauth2client"
-export SANITY_ZIP=${ZIP_PATH}
-export PYTHONPATH=${ZIP_PATH}
-${ENV_PATH}/bin/python -c "import sys, os
-sys.path.pop(0) # remove the pwd
-for name in os.getenv('SANITY_MODS').split():
- mod = __import__(name)
- assert os.getenv('SANITY_ZIP') in mod.__file__
- print ' ', os.path.relpath(mod.__file__)"
diff --git a/upload-diffs.py b/upload-diffs.py
deleted file mode 100755
index 7b5cc80..0000000
--- a/upload-diffs.py
+++ /dev/null
@@ -1,2395 +0,0 @@
-#!/usr/bin/env python
-# coding: utf-8
-#
-# Copyright 2007 Google Inc.
-#
-# Licensed under the Apache License, Version 2.0 (the "License");
-# you may not use this file except in compliance with the License.
-# You may obtain a copy of the License at
-#
-# http://www.apache.org/licenses/LICENSE-2.0
-#
-# Unless required by applicable law or agreed to in writing, software
-# distributed under the License is distributed on an "AS IS" BASIS,
-# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-# See the License for the specific language governing permissions and
-# limitations under the License.
-
-"""Tool for uploading diffs from a version control system to the codereview app.
-
-Usage summary: upload.py [options] [-- diff_options] [path...]
-
-Diff options are passed to the diff command of the underlying system.
-
-Supported version control systems:
- Git
- Mercurial
- Subversion
- Perforce
- CVS
-
-It is important for Git/Mercurial users to specify a tree/node/branch to diff
-against by using the '--rev' option.
-"""
-# This code is derived from appcfg.py in the App Engine SDK (open source),
-# and from ASPN recipe #146306.
-
-import ConfigParser
-import cookielib
-import errno
-import fnmatch
-import getpass
-import logging
-import marshal
-import mimetypes
-import optparse
-import os
-import re
-import socket
-import subprocess
-import sys
-import urllib
-import urllib2
-import urlparse
-
-# The md5 module was deprecated in Python 2.5.
-try:
- from hashlib import md5
-except ImportError:
- from md5 import md5
-
-try:
- import readline
-except ImportError:
- pass
-
-try:
- import keyring
-except ImportError:
- keyring = None
-
-# The logging verbosity:
-# 0: Errors only.
-# 1: Status messages.
-# 2: Info logs.
-# 3: Debug logs.
-verbosity = 1
-
-# The account type used for authentication.
-# This line could be changed by the review server (see handler for
-# upload.py).
-AUTH_ACCOUNT_TYPE = "GOOGLE"
-
-# URL of the default review server. As for AUTH_ACCOUNT_TYPE, this line could be
-# changed by the review server (see handler for upload.py).
-DEFAULT_REVIEW_SERVER = "codereview.appspot.com"
-
-# Max size of patch or base file.
-MAX_UPLOAD_SIZE = 900 * 1024
-
-# Constants for version control names. Used by GuessVCSName.
-VCS_GIT = "Git"
-VCS_MERCURIAL = "Mercurial"
-VCS_SUBVERSION = "Subversion"
-VCS_PERFORCE = "Perforce"
-VCS_CVS = "CVS"
-VCS_UNKNOWN = "Unknown"
-
-VCS_ABBREVIATIONS = {
- VCS_MERCURIAL.lower(): VCS_MERCURIAL,
- "hg": VCS_MERCURIAL,
- VCS_SUBVERSION.lower(): VCS_SUBVERSION,
- "svn": VCS_SUBVERSION,
- VCS_PERFORCE.lower(): VCS_PERFORCE,
- "p4": VCS_PERFORCE,
- VCS_GIT.lower(): VCS_GIT,
- VCS_CVS.lower(): VCS_CVS,
-}
-
-# The result of parsing Subversion's [auto-props] setting.
-svn_auto_props_map = None
-
-def GetEmail(prompt):
- """Prompts the user for their email address and returns it.
-
- The last used email address is saved to a file and offered up as a suggestion
- to the user. If the user presses enter without typing in anything the last
- used email address is used. If the user enters a new address, it is saved
- for next time we prompt.
-
- """
- last_email_file_name = os.path.expanduser("~/.last_codereview_email_address")
- last_email = ""
- if os.path.exists(last_email_file_name):
- try:
- last_email_file = open(last_email_file_name, "r")
- last_email = last_email_file.readline().strip("\n")
- last_email_file.close()
- prompt += " [%s]" % last_email
- except IOError, e:
- pass
- email = raw_input(prompt + ": ").strip()
- if email:
- try:
- last_email_file = open(last_email_file_name, "w")
- last_email_file.write(email)
- last_email_file.close()
- except IOError, e:
- pass
- else:
- email = last_email
- return email
-
-
-def StatusUpdate(msg):
- """Print a status message to stdout.
-
- If 'verbosity' is greater than 0, print the message.
-
- Args:
- msg: The string to print.
- """
- if verbosity > 0:
- print msg
-
-
-def ErrorExit(msg):
- """Print an error message to stderr and exit."""
- print >>sys.stderr, msg
- sys.exit(1)
-
-
-class ClientLoginError(urllib2.HTTPError):
- """Raised to indicate there was an error authenticating with ClientLogin."""
-
- def __init__(self, url, code, msg, headers, args):
- urllib2.HTTPError.__init__(self, url, code, msg, headers, None)
- self.args = args
- self._reason = args["Error"]
- self.info = args.get("Info", None)
-
- @property
- def reason(self):
- # reason is a property on python 2.7 but a member variable on <=2.6.
- # self.args is modified so it cannot be used as-is so save the value in
- # self._reason.
- return self._reason
-
-
-class AbstractRpcServer(object):
- """Provides a common interface for a simple RPC server."""
-
- def __init__(self, host, auth_function, host_override=None, extra_headers={},
- save_cookies=False, account_type=AUTH_ACCOUNT_TYPE):
- """Creates a new AbstractRpcServer.
-
- Args:
- host: The host to send requests to.
- auth_function: A function that takes no arguments and returns an
- (email, password) tuple when called. Will be called if authentication
- is required.
- host_override: The host header to send to the server (defaults to host).
- extra_headers: A dict of extra headers to append to every request.
- save_cookies: If True, save the authentication cookies to local disk.
- If False, use an in-memory cookiejar instead. Subclasses must
- implement this functionality. Defaults to False.
- account_type: Account type used for authentication. Defaults to
- AUTH_ACCOUNT_TYPE.
- """
- self.host = host
- if (not self.host.startswith("http://") and
- not self.host.startswith("https://")):
- self.host = "http://" + self.host
- self.host_override = host_override
- self.auth_function = auth_function
- self.authenticated = False
- self.extra_headers = extra_headers
- self.save_cookies = save_cookies
- self.account_type = account_type
- self.opener = self._GetOpener()
- if self.host_override:
- logging.info("Server: %s; Host: %s", self.host, self.host_override)
- else:
- logging.info("Server: %s", self.host)
-
- def _GetOpener(self):
- """Returns an OpenerDirector for making HTTP requests.
-
- Returns:
- A urllib2.OpenerDirector object.
- """
- raise NotImplementedError()
-
- def _CreateRequest(self, url, data=None):
- """Creates a new urllib request."""
- logging.debug("Creating request for: '%s' with payload:\n%s", url, data)
- req = urllib2.Request(url, data=data, headers={"Accept": "text/plain"})
- if self.host_override:
- req.add_header("Host", self.host_override)
- for key, value in self.extra_headers.iteritems():
- req.add_header(key, value)
- return req
-
- def _GetAuthToken(self, email, password):
- """Uses ClientLogin to authenticate the user, returning an auth token.
-
- Args:
- email: The user's email address
- password: The user's password
-
- Raises:
- ClientLoginError: If there was an error authenticating with ClientLogin.
- HTTPError: If there was some other form of HTTP error.
-
- Returns:
- The authentication token returned by ClientLogin.
- """
- account_type = self.account_type
- if self.host.endswith(".google.com"):
- # Needed for use inside Google.
- account_type = "HOSTED"
- req = self._CreateRequest(
- url="https://www.google.com/accounts/ClientLogin",
- data=urllib.urlencode({
- "Email": email,
- "Passwd": password,
- "service": "ah",
- "source": "rietveld-codereview-upload",
- "accountType": account_type,
- }),
- )
- try:
- response = self.opener.open(req)
- response_body = response.read()
- response_dict = dict(x.split("=")
- for x in response_body.split("\n") if x)
- return response_dict["Auth"]
- except urllib2.HTTPError, e:
- if e.code == 403:
- body = e.read()
- response_dict = dict(x.split("=", 1) for x in body.split("\n") if x)
- raise ClientLoginError(req.get_full_url(), e.code, e.msg,
- e.headers, response_dict)
- else:
- raise
-
- def _GetAuthCookie(self, auth_token):
- """Fetches authentication cookies for an authentication token.
-
- Args:
- auth_token: The authentication token returned by ClientLogin.
-
- Raises:
- HTTPError: If there was an error fetching the authentication cookies.
- """
- # This is a dummy value to allow us to identify when we're successful.
- continue_location = "http://localhost/"
- args = {"continue": continue_location, "auth": auth_token}
- req = self._CreateRequest("%s/_ah/login?%s" %
- (self.host, urllib.urlencode(args)))
- try:
- response = self.opener.open(req)
- except urllib2.HTTPError, e:
- response = e
- if (response.code != 302 or
- response.info()["location"] != continue_location):
- raise urllib2.HTTPError(req.get_full_url(), response.code, response.msg,
- response.headers, response.fp)
- self.authenticated = True
-
- def _Authenticate(self):
- """Authenticates the user.
-
- The authentication process works as follows:
- 1) We get a username and password from the user
- 2) We use ClientLogin to obtain an AUTH token for the user
- (see http://code.google.com/apis/accounts/AuthForInstalledApps.html).
- 3) We pass the auth token to /_ah/login on the server to obtain an
- authentication cookie. If login was successful, it tries to redirect
- us to the URL we provided.
-
- If we attempt to access the upload API without first obtaining an
- authentication cookie, it returns a 401 response (or a 302) and
- directs us to authenticate ourselves with ClientLogin.
- """
- for i in range(3):
- credentials = self.auth_function()
- try:
- auth_token = self._GetAuthToken(credentials[0], credentials[1])
- except ClientLoginError, e:
- print >>sys.stderr, ''
- if e.reason == "BadAuthentication":
- if e.info == "InvalidSecondFactor":
- print >>sys.stderr, (
- "Use an application-specific password instead "
- "of your regular account password.\n"
- "See http://www.google.com/"
- "support/accounts/bin/answer.py?answer=185833")
- else:
- print >>sys.stderr, "Invalid username or password."
- elif e.reason == "CaptchaRequired":
- print >>sys.stderr, (
- "Please go to\n"
- "https://www.google.com/accounts/DisplayUnlockCaptcha\n"
- "and verify you are a human. Then try again.\n"
- "If you are using a Google Apps account the URL is:\n"
- "https://www.google.com/a/yourdomain.com/UnlockCaptcha")
- elif e.reason == "NotVerified":
- print >>sys.stderr, "Account not verified."
- elif e.reason == "TermsNotAgreed":
- print >>sys.stderr, "User has not agreed to TOS."
- elif e.reason == "AccountDeleted":
- print >>sys.stderr, "The user account has been deleted."
- elif e.reason == "AccountDisabled":
- print >>sys.stderr, "The user account has been disabled."
- break
- elif e.reason == "ServiceDisabled":
- print >>sys.stderr, ("The user's access to the service has been "
- "disabled.")
- elif e.reason == "ServiceUnavailable":
- print >>sys.stderr, "The service is not available; try again later."
- else:
- # Unknown error.
- raise
- print >>sys.stderr, ''
- continue
- self._GetAuthCookie(auth_token)
- return
-
- def Send(self, request_path, payload=None,
- content_type="application/octet-stream",
- timeout=None,
- extra_headers=None,
- **kwargs):
- """Sends an RPC and returns the response.
-
- Args:
- request_path: The path to send the request to, eg /api/appversion/create.
- payload: The body of the request, or None to send an empty request.
- content_type: The Content-Type header to use.
- timeout: timeout in seconds; default None i.e. no timeout.
- (Note: for large requests on OS X, the timeout doesn't work right.)
- extra_headers: Dict containing additional HTTP headers that should be
- included in the request (string header names mapped to their values),
- or None to not include any additional headers.
- kwargs: Any keyword arguments are converted into query string parameters.
-
- Returns:
- The response body, as a string.
- """
- # TODO: Don't require authentication. Let the server say
- # whether it is necessary.
- if not self.authenticated:
- self._Authenticate()
-
- old_timeout = socket.getdefaulttimeout()
- socket.setdefaulttimeout(timeout)
- try:
- tries = 0
- while True:
- tries += 1
- args = dict(kwargs)
- url = "%s%s" % (self.host, request_path)
- if args:
- url += "?" + urllib.urlencode(args)
- req = self._CreateRequest(url=url, data=payload)
- req.add_header("Content-Type", content_type)
- if extra_headers:
- for header, value in extra_headers.items():
- req.add_header(header, value)
- try:
- f = self.opener.open(req)
- response = f.read()
- f.close()
- return response
- except urllib2.HTTPError, e:
- if tries > 3:
- raise
- elif e.code == 401 or e.code == 302:
- self._Authenticate()
- elif e.code == 301:
- # Handle permanent redirect manually.
- url = e.info()["location"]
- url_loc = urlparse.urlparse(url)
- self.host = '%s://%s' % (url_loc[0], url_loc[1])
- elif e.code >= 500:
- ErrorExit(e.read())
- else:
- raise
- finally:
- socket.setdefaulttimeout(old_timeout)
-
-
-class HttpRpcServer(AbstractRpcServer):
- """Provides a simplified RPC-style interface for HTTP requests."""
-
- def _Authenticate(self):
- """Save the cookie jar after authentication."""
- super(HttpRpcServer, self)._Authenticate()
- if self.save_cookies:
- StatusUpdate("Saving authentication cookies to %s" % self.cookie_file)
- self.cookie_jar.save()
-
- def _GetOpener(self):
- """Returns an OpenerDirector that supports cookies and ignores redirects.
-
- Returns:
- A urllib2.OpenerDirector object.
- """
- opener = urllib2.OpenerDirector()
- opener.add_handler(urllib2.ProxyHandler())
- opener.add_handler(urllib2.UnknownHandler())
- opener.add_handler(urllib2.HTTPHandler())
- opener.add_handler(urllib2.HTTPDefaultErrorHandler())
- opener.add_handler(urllib2.HTTPSHandler())
- opener.add_handler(urllib2.HTTPErrorProcessor())
- if self.save_cookies:
- self.cookie_file = os.path.expanduser("~/.codereview_upload_cookies")
- self.cookie_jar = cookielib.MozillaCookieJar(self.cookie_file)
- if os.path.exists(self.cookie_file):
- try:
- self.cookie_jar.load()
- self.authenticated = True
- StatusUpdate("Loaded authentication cookies from %s" %
- self.cookie_file)
- except (cookielib.LoadError, IOError):
- # Failed to load cookies - just ignore them.
- pass
- else:
- # Create an empty cookie file with mode 600
- fd = os.open(self.cookie_file, os.O_CREAT, 0600)
- os.close(fd)
- # Always chmod the cookie file
- os.chmod(self.cookie_file, 0600)
- else:
- # Don't save cookies across runs of update.py.
- self.cookie_jar = cookielib.CookieJar()
- opener.add_handler(urllib2.HTTPCookieProcessor(self.cookie_jar))
- return opener
-
-
-class CondensedHelpFormatter(optparse.IndentedHelpFormatter):
- """Frees more horizontal space by removing indentation from group
- options and collapsing arguments between short and long, e.g.
- '-o ARG, --opt=ARG' to -o --opt ARG"""
-
- def format_heading(self, heading):
- return "%s:\n" % heading
-
- def format_option(self, option):
- self.dedent()
- res = optparse.HelpFormatter.format_option(self, option)
- self.indent()
- return res
-
- def format_option_strings(self, option):
- self.set_long_opt_delimiter(" ")
- optstr = optparse.HelpFormatter.format_option_strings(self, option)
- optlist = optstr.split(", ")
- if len(optlist) > 1:
- if option.takes_value():
- # strip METAVAR from all but the last option
- optlist = [x.split()[0] for x in optlist[:-1]] + optlist[-1:]
- optstr = " ".join(optlist)
- return optstr
-
-
-parser = optparse.OptionParser(
- usage="%prog [options] [-- diff_options] [path...]",
- add_help_option=False,
- formatter=CondensedHelpFormatter()
-)
-parser.add_option("-h", "--help", action="store_true",
- help="Show this help message and exit.")
-parser.add_option("-y", "--assume_yes", action="store_true",
- dest="assume_yes", default=False,
- help="Assume that the answer to yes/no questions is 'yes'.")
-# Logging
-group = parser.add_option_group("Logging options")
-group.add_option("-q", "--quiet", action="store_const", const=0,
- dest="verbose", help="Print errors only.")
-group.add_option("-v", "--verbose", action="store_const", const=2,
- dest="verbose", default=1,
- help="Print info level logs.")
-group.add_option("--noisy", action="store_const", const=3,
- dest="verbose", help="Print all logs.")
-group.add_option("--print_diffs", dest="print_diffs", action="store_true",
- help="Print full diffs.")
-# Review server
-group = parser.add_option_group("Review server options")
-group.add_option("-s", "--server", action="store", dest="server",
- default=DEFAULT_REVIEW_SERVER,
- metavar="SERVER",
- help=("The server to upload to. The format is host[:port]. "
- "Defaults to '%default'."))
-group.add_option("-e", "--email", action="store", dest="email",
- metavar="EMAIL", default=None,
- help="The username to use. Will prompt if omitted.")
-group.add_option("-H", "--host", action="store", dest="host",
- metavar="HOST", default=None,
- help="Overrides the Host header sent with all RPCs.")
-group.add_option("--no_cookies", action="store_false",
- dest="save_cookies", default=True,
- help="Do not save authentication cookies to local disk.")
-group.add_option("--account_type", action="store", dest="account_type",
- metavar="TYPE", default=AUTH_ACCOUNT_TYPE,
- choices=["GOOGLE", "HOSTED"],
- help=("Override the default account type "
- "(defaults to '%default', "
- "valid choices are 'GOOGLE' and 'HOSTED')."))
-# Issue
-group = parser.add_option_group("Issue options")
-group.add_option("-t", "--title", action="store", dest="title",
- help="New issue subject or new patch set title")
-group.add_option("-m", "--message", action="store", dest="message",
- default=None,
- help="New issue description or new patch set message")
-group.add_option("-F", "--file", action="store", dest="file",
- default=None, help="Read the message above from file.")
-group.add_option("-r", "--reviewers", action="store", dest="reviewers",
- metavar="REVIEWERS", default="jcgregorio@google.com",
- help="Add reviewers (comma separated email addresses).")
-group.add_option("--cc", action="store", dest="cc",
- metavar="CC",
- default="google-api-python-client@googlegroups.com",
- help="Add CC (comma separated email addresses).")
-group.add_option("--private", action="store_true", dest="private",
- default=False,
- help="Make the issue restricted to reviewers and those CCed")
-# Upload options
-group = parser.add_option_group("Patch options")
-group.add_option("-i", "--issue", type="int", action="store",
- metavar="ISSUE", default=None,
- help="Issue number to which to add. Defaults to new issue.")
-group.add_option("--base_url", action="store", dest="base_url", default=None,
- help="Base URL path for files (listed as \"Base URL\" when "
- "viewing issue). If omitted, will be guessed automatically "
- "for SVN repos and left blank for others.")
-group.add_option("--download_base", action="store_true",
- dest="download_base", default=False,
- help="Base files will be downloaded by the server "
- "(side-by-side diffs may not work on files with CRs).")
-group.add_option("--rev", action="store", dest="revision",
- metavar="REV", default=None,
- help="Base revision/branch/tree to diff against. Use "
- "rev1:rev2 range to review already committed changeset.")
-group.add_option("--send_mail", action="store_true",
- dest="send_mail", default=False,
- help="Send notification email to reviewers.")
-group.add_option("-p", "--send_patch", action="store_true",
- dest="send_patch", default=False,
- help="Same as --send_mail, but include diff as an "
- "attachment, and prepend email subject with 'PATCH:'.")
-group.add_option("--vcs", action="store", dest="vcs",
- metavar="VCS", default=None,
- help=("Version control system (optional, usually upload.py "
- "already guesses the right VCS)."))
-group.add_option("--emulate_svn_auto_props", action="store_true",
- dest="emulate_svn_auto_props", default=False,
- help=("Emulate Subversion's auto properties feature."))
-# Git-specific
-group = parser.add_option_group("Git-specific options")
-group.add_option("--git_similarity", action="store", dest="git_similarity",
- metavar="SIM", type="int", default=50,
- help=("Set the minimum similarity index for detecting renames "
- "and copies. See `git diff -C`. (default 50)."))
-group.add_option("--git_no_find_copies", action="store_false", default=True,
- dest="git_find_copies",
- help=("Prevents git from looking for copies (default off)."))
-# Perforce-specific
-group = parser.add_option_group("Perforce-specific options "
- "(overrides P4 environment variables)")
-group.add_option("--p4_port", action="store", dest="p4_port",
- metavar="P4_PORT", default=None,
- help=("Perforce server and port (optional)"))
-group.add_option("--p4_changelist", action="store", dest="p4_changelist",
- metavar="P4_CHANGELIST", default=None,
- help=("Perforce changelist id"))
-group.add_option("--p4_client", action="store", dest="p4_client",
- metavar="P4_CLIENT", default=None,
- help=("Perforce client/workspace"))
-group.add_option("--p4_user", action="store", dest="p4_user",
- metavar="P4_USER", default=None,
- help=("Perforce user"))
-
-
-class KeyringCreds(object):
- def __init__(self, server, host, email):
- self.server = server
- self.host = host
- self.email = email
- self.accounts_seen = set()
-
- def GetUserCredentials(self):
- """Prompts the user for a username and password.
-
- Only use keyring on the initial call. If the keyring contains the wrong
- password, we want to give the user a chance to enter another one.
- """
- # Create a local alias to the email variable to avoid Python's crazy
- # scoping rules.
- global keyring
- email = self.email
- if email is None:
- email = GetEmail("Email (login for uploading to %s)" % self.server)
- password = None
- if keyring and not email in self.accounts_seen:
- try:
- password = keyring.get_password(self.host, email)
- except:
- # Sadly, we have to trap all errors here as
- # gnomekeyring.IOError inherits from object. :/
- print "Failed to get password from keyring"
- keyring = None
- if password is not None:
- print "Using password from system keyring."
- self.accounts_seen.add(email)
- else:
- password = getpass.getpass("Password for %s: " % email)
- if keyring:
- answer = raw_input("Store password in system keyring?(y/N) ").strip()
- if answer == "y":
- keyring.set_password(self.host, email, password)
- self.accounts_seen.add(email)
- return (email, password)
-
-
-def GetRpcServer(server, email=None, host_override=None, save_cookies=True,
- account_type=AUTH_ACCOUNT_TYPE):
- """Returns an instance of an AbstractRpcServer.
-
- Args:
- server: String containing the review server URL.
- email: String containing user's email address.
- host_override: If not None, string containing an alternate hostname to use
- in the host header.
- save_cookies: Whether authentication cookies should be saved to disk.
- account_type: Account type for authentication, either 'GOOGLE'
- or 'HOSTED'. Defaults to AUTH_ACCOUNT_TYPE.
-
- Returns:
- A new HttpRpcServer, on which RPC calls can be made.
- """
-
- # If this is the dev_appserver, use fake authentication.
- host = (host_override or server).lower()
- if re.match(r'(http://)?localhost([:/]|$)', host):
- if email is None:
- email = "test@example.com"
- logging.info("Using debug user %s. Override with --email" % email)
- server = HttpRpcServer(
- server,
- lambda: (email, "password"),
- host_override=host_override,
- extra_headers={"Cookie":
- 'dev_appserver_login="%s:False"' % email},
- save_cookies=save_cookies,
- account_type=account_type)
- # Don't try to talk to ClientLogin.
- server.authenticated = True
- return server
-
- return HttpRpcServer(server,
- KeyringCreds(server, host, email).GetUserCredentials,
- host_override=host_override,
- save_cookies=save_cookies,
- account_type=account_type)
-
-
-def EncodeMultipartFormData(fields, files):
- """Encode form fields for multipart/form-data.
-
- Args:
- fields: A sequence of (name, value) elements for regular form fields.
- files: A sequence of (name, filename, value) elements for data to be
- uploaded as files.
- Returns:
- (content_type, body) ready for httplib.HTTP instance.
-
- Source:
- http://aspn.activestate.com/ASPN/Cookbook/Python/Recipe/146306
- """
- BOUNDARY = '-M-A-G-I-C---B-O-U-N-D-A-R-Y-'
- CRLF = '\r\n'
- lines = []
- for (key, value) in fields:
- lines.append('--' + BOUNDARY)
- lines.append('Content-Disposition: form-data; name="%s"' % key)
- lines.append('')
- if isinstance(value, unicode):
- value = value.encode('utf-8')
- lines.append(value)
- for (key, filename, value) in files:
- lines.append('--' + BOUNDARY)
- lines.append('Content-Disposition: form-data; name="%s"; filename="%s"' %
- (key, filename))
- lines.append('Content-Type: %s' % GetContentType(filename))
- lines.append('')
- if isinstance(value, unicode):
- value = value.encode('utf-8')
- lines.append(value)
- lines.append('--' + BOUNDARY + '--')
- lines.append('')
- body = CRLF.join(lines)
- content_type = 'multipart/form-data; boundary=%s' % BOUNDARY
- return content_type, body
-
-
-def GetContentType(filename):
- """Helper to guess the content-type from the filename."""
- return mimetypes.guess_type(filename)[0] or 'application/octet-stream'
-
-
-# Use a shell for subcommands on Windows to get a PATH search.
-use_shell = sys.platform.startswith("win")
-
-def RunShellWithReturnCodeAndStderr(command, print_output=False,
- universal_newlines=True,
- env=os.environ):
- """Executes a command and returns the output from stdout, stderr and the return code.
-
- Args:
- command: Command to execute.
- print_output: If True, the output is printed to stdout.
- If False, both stdout and stderr are ignored.
- universal_newlines: Use universal_newlines flag (default: True).
-
- Returns:
- Tuple (stdout, stderr, return code)
- """
- logging.info("Running %s", command)
- env = env.copy()
- env['LC_MESSAGES'] = 'C'
- p = subprocess.Popen(command, stdout=subprocess.PIPE, stderr=subprocess.PIPE,
- shell=use_shell, universal_newlines=universal_newlines,
- env=env)
- if print_output:
- output_array = []
- while True:
- line = p.stdout.readline()
- if not line:
- break
- print line.strip("\n")
- output_array.append(line)
- output = "".join(output_array)
- else:
- output = p.stdout.read()
- p.wait()
- errout = p.stderr.read()
- if print_output and errout:
- print >>sys.stderr, errout
- p.stdout.close()
- p.stderr.close()
- return output, errout, p.returncode
-
-def RunShellWithReturnCode(command, print_output=False,
- universal_newlines=True,
- env=os.environ):
- """Executes a command and returns the output from stdout and the return code."""
- out, err, retcode = RunShellWithReturnCodeAndStderr(command, print_output,
- universal_newlines, env)
- return out, retcode
-
-def RunShell(command, silent_ok=False, universal_newlines=True,
- print_output=False, env=os.environ):
- data, retcode = RunShellWithReturnCode(command, print_output,
- universal_newlines, env)
- if retcode:
- ErrorExit("Got error status from %s:\n%s" % (command, data))
- if not silent_ok and not data:
- ErrorExit("No output from %s" % command)
- return data
-
-
-class VersionControlSystem(object):
- """Abstract base class providing an interface to the VCS."""
-
- def __init__(self, options):
- """Constructor.
-
- Args:
- options: Command line options.
- """
- self.options = options
-
- def GetGUID(self):
- """Return string to distinguish the repository from others, for example to
- query all opened review issues for it"""
- raise NotImplementedError(
- "abstract method -- subclass %s must override" % self.__class__)
-
- def PostProcessDiff(self, diff):
- """Return the diff with any special post processing this VCS needs, e.g.
- to include an svn-style "Index:"."""
- return diff
-
- def GenerateDiff(self, args):
- """Return the current diff as a string.
-
- Args:
- args: Extra arguments to pass to the diff command.
- """
- raise NotImplementedError(
- "abstract method -- subclass %s must override" % self.__class__)
-
- def GetUnknownFiles(self):
- """Return a list of files unknown to the VCS."""
- raise NotImplementedError(
- "abstract method -- subclass %s must override" % self.__class__)
-
- def CheckForUnknownFiles(self):
- """Show an "are you sure?" prompt if there are unknown files."""
- unknown_files = self.GetUnknownFiles()
- if unknown_files:
- print "The following files are not added to version control:"
- for line in unknown_files:
- print line
- prompt = "Are you sure to continue?(y/N) "
- answer = raw_input(prompt).strip()
- if answer != "y":
- ErrorExit("User aborted")
-
- def GetBaseFile(self, filename):
- """Get the content of the upstream version of a file.
-
- Returns:
- A tuple (base_content, new_content, is_binary, status)
- base_content: The contents of the base file.
- new_content: For text files, this is empty. For binary files, this is
- the contents of the new file, since the diff output won't contain
- information to reconstruct the current file.
- is_binary: True iff the file is binary.
- status: The status of the file.
- """
-
- raise NotImplementedError(
- "abstract method -- subclass %s must override" % self.__class__)
-
-
- def GetBaseFiles(self, diff):
- """Helper that calls GetBase file for each file in the patch.
-
- Returns:
- A dictionary that maps from filename to GetBaseFile's tuple. Filenames
- are retrieved based on lines that start with "Index:" or
- "Property changes on:".
- """
- files = {}
- for line in diff.splitlines(True):
- if line.startswith('Index:') or line.startswith('Property changes on:'):
- unused, filename = line.split(':', 1)
- # On Windows if a file has property changes its filename uses '\'
- # instead of '/'.
- filename = filename.strip().replace('\\', '/')
- files[filename] = self.GetBaseFile(filename)
- return files
-
-
- def UploadBaseFiles(self, issue, rpc_server, patch_list, patchset, options,
- files):
- """Uploads the base files (and if necessary, the current ones as well)."""
-
- def UploadFile(filename, file_id, content, is_binary, status, is_base):
- """Uploads a file to the server."""
- file_too_large = False
- if is_base:
- type = "base"
- else:
- type = "current"
- if len(content) > MAX_UPLOAD_SIZE:
- print ("Not uploading the %s file for %s because it's too large." %
- (type, filename))
- file_too_large = True
- content = ""
- checksum = md5(content).hexdigest()
- if options.verbose > 0 and not file_too_large:
- print "Uploading %s file for %s" % (type, filename)
- url = "/%d/upload_content/%d/%d" % (int(issue), int(patchset), file_id)
- form_fields = [("filename", filename),
- ("status", status),
- ("checksum", checksum),
- ("is_binary", str(is_binary)),
- ("is_current", str(not is_base)),
- ]
- if file_too_large:
- form_fields.append(("file_too_large", "1"))
- if options.email:
- form_fields.append(("user", options.email))
- ctype, body = EncodeMultipartFormData(form_fields,
- [("data", filename, content)])
- response_body = rpc_server.Send(url, body,
- content_type=ctype)
- if not response_body.startswith("OK"):
- StatusUpdate(" --> %s" % response_body)
- sys.exit(1)
-
- patches = dict()
- [patches.setdefault(v, k) for k, v in patch_list]
- for filename in patches.keys():
- base_content, new_content, is_binary, status = files[filename]
- file_id_str = patches.get(filename)
- if file_id_str.find("nobase") != -1:
- base_content = None
- file_id_str = file_id_str[file_id_str.rfind("_") + 1:]
- file_id = int(file_id_str)
- if base_content != None:
- UploadFile(filename, file_id, base_content, is_binary, status, True)
- if new_content != None:
- UploadFile(filename, file_id, new_content, is_binary, status, False)
-
- def IsImage(self, filename):
- """Returns true if the filename has an image extension."""
- mimetype = mimetypes.guess_type(filename)[0]
- if not mimetype:
- return False
- return mimetype.startswith("image/")
-
- def IsBinaryData(self, data):
- """Returns true if data contains a null byte."""
- # Derived from how Mercurial's heuristic, see
- # http://selenic.com/hg/file/848a6658069e/mercurial/util.py#l229
- return bool(data and "\0" in data)
-
-
-class SubversionVCS(VersionControlSystem):
- """Implementation of the VersionControlSystem interface for Subversion."""
-
- def __init__(self, options):
- super(SubversionVCS, self).__init__(options)
- if self.options.revision:
- match = re.match(r"(\d+)(:(\d+))?", self.options.revision)
- if not match:
- ErrorExit("Invalid Subversion revision %s." % self.options.revision)
- self.rev_start = match.group(1)
- self.rev_end = match.group(3)
- else:
- self.rev_start = self.rev_end = None
- # Cache output from "svn list -r REVNO dirname".
- # Keys: dirname, Values: 2-tuple (ouput for start rev and end rev).
- self.svnls_cache = {}
- # Base URL is required to fetch files deleted in an older revision.
- # Result is cached to not guess it over and over again in GetBaseFile().
- required = self.options.download_base or self.options.revision is not None
- self.svn_base = self._GuessBase(required)
-
- def GetGUID(self):
- return self._GetInfo("Repository UUID")
-
- def GuessBase(self, required):
- """Wrapper for _GuessBase."""
- return self.svn_base
-
- def _GuessBase(self, required):
- """Returns base URL for current diff.
-
- Args:
- required: If true, exits if the url can't be guessed, otherwise None is
- returned.
- """
- url = self._GetInfo("URL")
- if url:
- scheme, netloc, path, params, query, fragment = urlparse.urlparse(url)
- guess = ""
- # TODO(anatoli) - repository specific hacks should be handled by server
- if netloc == "svn.python.org" and scheme == "svn+ssh":
- path = "projects" + path
- scheme = "http"
- guess = "Python "
- elif netloc.endswith(".googlecode.com"):
- scheme = "http"
- guess = "Google Code "
- path = path + "/"
- base = urlparse.urlunparse((scheme, netloc, path, params,
- query, fragment))
- logging.info("Guessed %sbase = %s", guess, base)
- return base
- if required:
- ErrorExit("Can't find URL in output from svn info")
- return None
-
- def _GetInfo(self, key):
- """Parses 'svn info' for current dir. Returns value for key or None"""
- for line in RunShell(["svn", "info"]).splitlines():
- if line.startswith(key + ": "):
- return line.split(":", 1)[1].strip()
-
- def _EscapeFilename(self, filename):
- """Escapes filename for SVN commands."""
- if "@" in filename and not filename.endswith("@"):
- filename = "%s@" % filename
- return filename
-
- def GenerateDiff(self, args):
- cmd = ["svn", "diff"]
- if self.options.revision:
- cmd += ["-r", self.options.revision]
- cmd.extend(args)
- data = RunShell(cmd)
- count = 0
- for line in data.splitlines():
- if line.startswith("Index:") or line.startswith("Property changes on:"):
- count += 1
- logging.info(line)
- if not count:
- ErrorExit("No valid patches found in output from svn diff")
- return data
-
- def _CollapseKeywords(self, content, keyword_str):
- """Collapses SVN keywords."""
- # svn cat translates keywords but svn diff doesn't. As a result of this
- # behavior patching.PatchChunks() fails with a chunk mismatch error.
- # This part was originally written by the Review Board development team
- # who had the same problem (http://reviews.review-board.org/r/276/).
- # Mapping of keywords to known aliases
- svn_keywords = {
- # Standard keywords
- 'Date': ['Date', 'LastChangedDate'],
- 'Revision': ['Revision', 'LastChangedRevision', 'Rev'],
- 'Author': ['Author', 'LastChangedBy'],
- 'HeadURL': ['HeadURL', 'URL'],
- 'Id': ['Id'],
-
- # Aliases
- 'LastChangedDate': ['LastChangedDate', 'Date'],
- 'LastChangedRevision': ['LastChangedRevision', 'Rev', 'Revision'],
- 'LastChangedBy': ['LastChangedBy', 'Author'],
- 'URL': ['URL', 'HeadURL'],
- }
-
- def repl(m):
- if m.group(2):
- return "$%s::%s$" % (m.group(1), " " * len(m.group(3)))
- return "$%s$" % m.group(1)
- keywords = [keyword
- for name in keyword_str.split(" ")
- for keyword in svn_keywords.get(name, [])]
- return re.sub(r"\$(%s):(:?)([^\$]+)\$" % '|'.join(keywords), repl, content)
-
- def GetUnknownFiles(self):
- status = RunShell(["svn", "status", "--ignore-externals"], silent_ok=True)
- unknown_files = []
- for line in status.split("\n"):
- if line and line[0] == "?":
- unknown_files.append(line)
- return unknown_files
-
- def ReadFile(self, filename):
- """Returns the contents of a file."""
- file = open(filename, 'rb')
- result = ""
- try:
- result = file.read()
- finally:
- file.close()
- return result
-
- def GetStatus(self, filename):
- """Returns the status of a file."""
- if not self.options.revision:
- status = RunShell(["svn", "status", "--ignore-externals",
- self._EscapeFilename(filename)])
- if not status:
- ErrorExit("svn status returned no output for %s" % filename)
- status_lines = status.splitlines()
- # If file is in a cl, the output will begin with
- # "\n--- Changelist 'cl_name':\n". See
- # http://svn.collab.net/repos/svn/trunk/notes/changelist-design.txt
- if (len(status_lines) == 3 and
- not status_lines[0] and
- status_lines[1].startswith("--- Changelist")):
- status = status_lines[2]
- else:
- status = status_lines[0]
- # If we have a revision to diff against we need to run "svn list"
- # for the old and the new revision and compare the results to get
- # the correct status for a file.
- else:
- dirname, relfilename = os.path.split(filename)
- if dirname not in self.svnls_cache:
- cmd = ["svn", "list", "-r", self.rev_start,
- self._EscapeFilename(dirname) or "."]
- out, err, returncode = RunShellWithReturnCodeAndStderr(cmd)
- if returncode:
- # Directory might not yet exist at start revison
- # svn: Unable to find repository location for 'abc' in revision nnn
- if re.match('^svn: Unable to find repository location for .+ in revision \d+', err):
- old_files = ()
- else:
- ErrorExit("Failed to get status for %s:\n%s" % (filename, err))
- else:
- old_files = out.splitlines()
- args = ["svn", "list"]
- if self.rev_end:
- args += ["-r", self.rev_end]
- cmd = args + [self._EscapeFilename(dirname) or "."]
- out, returncode = RunShellWithReturnCode(cmd)
- if returncode:
- ErrorExit("Failed to run command %s" % cmd)
- self.svnls_cache[dirname] = (old_files, out.splitlines())
- old_files, new_files = self.svnls_cache[dirname]
- if relfilename in old_files and relfilename not in new_files:
- status = "D "
- elif relfilename in old_files and relfilename in new_files:
- status = "M "
- else:
- status = "A "
- return status
-
- def GetBaseFile(self, filename):
- status = self.GetStatus(filename)
- base_content = None
- new_content = None
-
- # If a file is copied its status will be "A +", which signifies
- # "addition-with-history". See "svn st" for more information. We need to
- # upload the original file or else diff parsing will fail if the file was
- # edited.
- if status[0] == "A" and status[3] != "+":
- # We'll need to upload the new content if we're adding a binary file
- # since diff's output won't contain it.
- mimetype = RunShell(["svn", "propget", "svn:mime-type",
- self._EscapeFilename(filename)], silent_ok=True)
- base_content = ""
- is_binary = bool(mimetype) and not mimetype.startswith("text/")
- if is_binary:
- new_content = self.ReadFile(filename)
- elif (status[0] in ("M", "D", "R") or
- (status[0] == "A" and status[3] == "+") or # Copied file.
- (status[0] == " " and status[1] == "M")): # Property change.
- args = []
- if self.options.revision:
- # filename must not be escaped. We already add an ampersand here.
- url = "%s/%s@%s" % (self.svn_base, filename, self.rev_start)
- else:
- # Don't change filename, it's needed later.
- url = filename
- args += ["-r", "BASE"]
- cmd = ["svn"] + args + ["propget", "svn:mime-type", url]
- mimetype, returncode = RunShellWithReturnCode(cmd)
- if returncode:
- # File does not exist in the requested revision.
- # Reset mimetype, it contains an error message.
- mimetype = ""
- else:
- mimetype = mimetype.strip()
- get_base = False
- # this test for binary is exactly the test prescribed by the
- # official SVN docs at
- # http://subversion.apache.org/faq.html#binary-files
- is_binary = (bool(mimetype) and
- not mimetype.startswith("text/") and
- mimetype not in ("image/x-xbitmap", "image/x-xpixmap"))
- if status[0] == " ":
- # Empty base content just to force an upload.
- base_content = ""
- elif is_binary:
- get_base = True
- if status[0] == "M":
- if not self.rev_end:
- new_content = self.ReadFile(filename)
- else:
- url = "%s/%s@%s" % (self.svn_base, filename, self.rev_end)
- new_content = RunShell(["svn", "cat", url],
- universal_newlines=True, silent_ok=True)
- else:
- get_base = True
-
- if get_base:
- if is_binary:
- universal_newlines = False
- else:
- universal_newlines = True
- if self.rev_start:
- # "svn cat -r REV delete_file.txt" doesn't work. cat requires
- # the full URL with "@REV" appended instead of using "-r" option.
- url = "%s/%s@%s" % (self.svn_base, filename, self.rev_start)
- base_content = RunShell(["svn", "cat", url],
- universal_newlines=universal_newlines,
- silent_ok=True)
- else:
- base_content, ret_code = RunShellWithReturnCode(
- ["svn", "cat", self._EscapeFilename(filename)],
- universal_newlines=universal_newlines)
- if ret_code and status[0] == "R":
- # It's a replaced file without local history (see issue208).
- # The base file needs to be fetched from the server.
- url = "%s/%s" % (self.svn_base, filename)
- base_content = RunShell(["svn", "cat", url],
- universal_newlines=universal_newlines,
- silent_ok=True)
- elif ret_code:
- ErrorExit("Got error status from 'svn cat %s'" % filename)
- if not is_binary:
- args = []
- if self.rev_start:
- url = "%s/%s@%s" % (self.svn_base, filename, self.rev_start)
- else:
- url = filename
- args += ["-r", "BASE"]
- cmd = ["svn"] + args + ["propget", "svn:keywords", url]
- keywords, returncode = RunShellWithReturnCode(cmd)
- if keywords and not returncode:
- base_content = self._CollapseKeywords(base_content, keywords)
- else:
- StatusUpdate("svn status returned unexpected output: %s" % status)
- sys.exit(1)
- return base_content, new_content, is_binary, status[0:5]
-
-
-class GitVCS(VersionControlSystem):
- """Implementation of the VersionControlSystem interface for Git."""
-
- def __init__(self, options):
- super(GitVCS, self).__init__(options)
- # Map of filename -> (hash before, hash after) of base file.
- # Hashes for "no such file" are represented as None.
- self.hashes = {}
- # Map of new filename -> old filename for renames.
- self.renames = {}
-
- def GetGUID(self):
- revlist = RunShell("git rev-list --parents HEAD".split()).splitlines()
- # M-A: Return the 1st root hash, there could be multiple when a
- # subtree is merged. In that case, more analysis would need to
- # be done to figure out which HEAD is the 'most representative'.
- for r in revlist:
- if ' ' not in r:
- return r
-
- def PostProcessDiff(self, gitdiff):
- """Converts the diff output to include an svn-style "Index:" line as well
- as record the hashes of the files, so we can upload them along with our
- diff."""
- # Special used by git to indicate "no such content".
- NULL_HASH = "0"*40
-
- def IsFileNew(filename):
- return filename in self.hashes and self.hashes[filename][0] is None
-
- def AddSubversionPropertyChange(filename):
- """Add svn's property change information into the patch if given file is
- new file.
-
- We use Subversion's auto-props setting to retrieve its property.
- See http://svnbook.red-bean.com/en/1.1/ch07.html#svn-ch-7-sect-1.3.2 for
- Subversion's [auto-props] setting.
- """
- if self.options.emulate_svn_auto_props and IsFileNew(filename):
- svnprops = GetSubversionPropertyChanges(filename)
- if svnprops:
- svndiff.append("\n" + svnprops + "\n")
-
- svndiff = []
- filecount = 0
- filename = None
- for line in gitdiff.splitlines():
- match = re.match(r"diff --git a/(.*) b/(.*)$", line)
- if match:
- # Add auto property here for previously seen file.
- if filename is not None:
- AddSubversionPropertyChange(filename)
- filecount += 1
- # Intentionally use the "after" filename so we can show renames.
- filename = match.group(2)
- svndiff.append("Index: %s\n" % filename)
- if match.group(1) != match.group(2):
- self.renames[match.group(2)] = match.group(1)
- else:
- # The "index" line in a git diff looks like this (long hashes elided):
- # index 82c0d44..b2cee3f 100755
- # We want to save the left hash, as that identifies the base file.
- match = re.match(r"index (\w+)\.\.(\w+)", line)
- if match:
- before, after = (match.group(1), match.group(2))
- if before == NULL_HASH:
- before = None
- if after == NULL_HASH:
- after = None
- self.hashes[filename] = (before, after)
- svndiff.append(line + "\n")
- if not filecount:
- ErrorExit("No valid patches found in output from git diff")
- # Add auto property for the last seen file.
- assert filename is not None
- AddSubversionPropertyChange(filename)
- return "".join(svndiff)
-
- def GenerateDiff(self, extra_args):
- extra_args = extra_args[:]
- if self.options.revision:
- if ":" in self.options.revision:
- extra_args = self.options.revision.split(":", 1) + extra_args
- else:
- extra_args = [self.options.revision] + extra_args
-
- # --no-ext-diff is broken in some versions of Git, so try to work around
- # this by overriding the environment (but there is still a problem if the
- # git config key "diff.external" is used).
- env = os.environ.copy()
- if "GIT_EXTERNAL_DIFF" in env:
- del env["GIT_EXTERNAL_DIFF"]
- # -M/-C will not print the diff for the deleted file when a file is renamed.
- # This is confusing because the original file will not be shown on the
- # review when a file is renamed. So, get a diff with ONLY deletes, then
- # append a diff (with rename detection), without deletes.
- cmd = [
- "git", "diff", "--no-color", "--no-ext-diff", "--full-index",
- "--ignore-submodules",
- ]
- diff = RunShell(
- cmd + ["--no-renames", "--diff-filter=D"] + extra_args,
- env=env, silent_ok=True)
- if self.options.git_find_copies:
- similarity_options = ["--find-copies-harder", "-l100000",
- "-C%s" % self.options.git_similarity ]
- else:
- similarity_options = ["-M%s" % self.options.git_similarity ]
- diff += RunShell(
- cmd + ["--diff-filter=AMCRT"] + similarity_options + extra_args,
- env=env, silent_ok=True)
-
- # The CL could be only file deletion or not. So accept silent diff for both
- # commands then check for an empty diff manually.
- if not diff:
- ErrorExit("No output from %s" % (cmd + extra_args))
- return diff
-
- def GetUnknownFiles(self):
- status = RunShell(["git", "ls-files", "--exclude-standard", "--others"],
- silent_ok=True)
- return status.splitlines()
-
- def GetFileContent(self, file_hash, is_binary):
- """Returns the content of a file identified by its git hash."""
- data, retcode = RunShellWithReturnCode(["git", "show", file_hash],
- universal_newlines=not is_binary)
- if retcode:
- ErrorExit("Got error status from 'git show %s'" % file_hash)
- return data
-
- def GetBaseFile(self, filename):
- hash_before, hash_after = self.hashes.get(filename, (None,None))
- base_content = None
- new_content = None
- status = None
-
- if filename in self.renames:
- status = "A +" # Match svn attribute name for renames.
- if filename not in self.hashes:
- # If a rename doesn't change the content, we never get a hash.
- base_content = RunShell(
- ["git", "show", "HEAD:" + filename], silent_ok=True)
- elif not hash_before:
- status = "A"
- base_content = ""
- elif not hash_after:
- status = "D"
- else:
- status = "M"
-
- is_binary = self.IsBinaryData(base_content)
- is_image = self.IsImage(filename)
-
- # Grab the before/after content if we need it.
- # Grab the base content if we don't have it already.
- if base_content is None and hash_before:
- base_content = self.GetFileContent(hash_before, is_binary)
- # Only include the "after" file if it's an image; otherwise it
- # it is reconstructed from the diff.
- if is_image and hash_after:
- new_content = self.GetFileContent(hash_after, is_binary)
-
- return (base_content, new_content, is_binary, status)
-
-
-class CVSVCS(VersionControlSystem):
- """Implementation of the VersionControlSystem interface for CVS."""
-
- def __init__(self, options):
- super(CVSVCS, self).__init__(options)
-
- def GetGUID(self):
- """For now we don't know how to get repository ID for CVS"""
- return
-
- def GetOriginalContent_(self, filename):
- RunShell(["cvs", "up", filename], silent_ok=True)
- # TODO need detect file content encoding
- content = open(filename).read()
- return content.replace("\r\n", "\n")
-
- def GetBaseFile(self, filename):
- base_content = None
- new_content = None
- status = "A"
-
- output, retcode = RunShellWithReturnCode(["cvs", "status", filename])
- if retcode:
- ErrorExit("Got error status from 'cvs status %s'" % filename)
-
- if output.find("Status: Locally Modified") != -1:
- status = "M"
- temp_filename = "%s.tmp123" % filename
- os.rename(filename, temp_filename)
- base_content = self.GetOriginalContent_(filename)
- os.rename(temp_filename, filename)
- elif output.find("Status: Locally Added"):
- status = "A"
- base_content = ""
- elif output.find("Status: Needs Checkout"):
- status = "D"
- base_content = self.GetOriginalContent_(filename)
-
- return (base_content, new_content, self.IsBinaryData(base_content), status)
-
- def GenerateDiff(self, extra_args):
- cmd = ["cvs", "diff", "-u", "-N"]
- if self.options.revision:
- cmd += ["-r", self.options.revision]
-
- cmd.extend(extra_args)
- data, retcode = RunShellWithReturnCode(cmd)
- count = 0
- if retcode in [0, 1]:
- for line in data.splitlines():
- if line.startswith("Index:"):
- count += 1
- logging.info(line)
-
- if not count:
- ErrorExit("No valid patches found in output from cvs diff")
-
- return data
-
- def GetUnknownFiles(self):
- data, retcode = RunShellWithReturnCode(["cvs", "diff"])
- if retcode not in [0, 1]:
- ErrorExit("Got error status from 'cvs diff':\n%s" % (data,))
- unknown_files = []
- for line in data.split("\n"):
- if line and line[0] == "?":
- unknown_files.append(line)
- return unknown_files
-
-class MercurialVCS(VersionControlSystem):
- """Implementation of the VersionControlSystem interface for Mercurial."""
-
- def __init__(self, options, repo_dir):
- super(MercurialVCS, self).__init__(options)
- # Absolute path to repository (we can be in a subdir)
- self.repo_dir = os.path.normpath(repo_dir)
- # Compute the subdir
- cwd = os.path.normpath(os.getcwd())
- assert cwd.startswith(self.repo_dir)
- self.subdir = cwd[len(self.repo_dir):].lstrip(r"\/")
- if self.options.revision:
- self.base_rev = self.options.revision
- else:
- self.base_rev = RunShell(["hg", "parent", "-q"]).split(':')[1].strip()
-
- def GetGUID(self):
- # See chapter "Uniquely identifying a repository"
- # http://hgbook.red-bean.com/read/customizing-the-output-of-mercurial.html
- info = RunShell("hg log -r0 --template {node}".split())
- return info.strip()
-
- def _GetRelPath(self, filename):
- """Get relative path of a file according to the current directory,
- given its logical path in the repo."""
- absname = os.path.join(self.repo_dir, filename)
- return os.path.relpath(absname)
-
- def GenerateDiff(self, extra_args):
- cmd = ["hg", "diff", "--git", "-r", self.base_rev] + extra_args
- data = RunShell(cmd, silent_ok=True)
- svndiff = []
- filecount = 0
- for line in data.splitlines():
- m = re.match("diff --git a/(\S+) b/(\S+)", line)
- if m:
- # Modify line to make it look like as it comes from svn diff.
- # With this modification no changes on the server side are required
- # to make upload.py work with Mercurial repos.
- # NOTE: for proper handling of moved/copied files, we have to use
- # the second filename.
- filename = m.group(2)
- svndiff.append("Index: %s" % filename)
- svndiff.append("=" * 67)
- filecount += 1
- logging.info(line)
- else:
- svndiff.append(line)
- if not filecount:
- ErrorExit("No valid patches found in output from hg diff")
- return "\n".join(svndiff) + "\n"
-
- def GetUnknownFiles(self):
- """Return a list of files unknown to the VCS."""
- args = []
- status = RunShell(["hg", "status", "--rev", self.base_rev, "-u", "."],
- silent_ok=True)
- unknown_files = []
- for line in status.splitlines():
- st, fn = line.split(" ", 1)
- if st == "?":
- unknown_files.append(fn)
- return unknown_files
-
- def GetBaseFile(self, filename):
- # "hg status" and "hg cat" both take a path relative to the current subdir,
- # but "hg diff" has given us the path relative to the repo root.
- base_content = ""
- new_content = None
- is_binary = False
- oldrelpath = relpath = self._GetRelPath(filename)
- # "hg status -C" returns two lines for moved/copied files, one otherwise
- out = RunShell(["hg", "status", "-C", "--rev", self.base_rev, relpath])
- out = out.splitlines()
- # HACK: strip error message about missing file/directory if it isn't in
- # the working copy
- if out[0].startswith('%s: ' % relpath):
- out = out[1:]
- status, _ = out[0].split(' ', 1)
- if len(out) > 1 and status == "A":
- # Moved/copied => considered as modified, use old filename to
- # retrieve base contents
- oldrelpath = out[1].strip()
- status = "M"
- if ":" in self.base_rev:
- base_rev = self.base_rev.split(":", 1)[0]
- else:
- base_rev = self.base_rev
- if status != "A":
- base_content = RunShell(["hg", "cat", "-r", base_rev, oldrelpath],
- silent_ok=True)
- is_binary = self.IsBinaryData(base_content)
- if status != "R":
- new_content = open(relpath, "rb").read()
- is_binary = is_binary or self.IsBinaryData(new_content)
- if is_binary and base_content:
- # Fetch again without converting newlines
- base_content = RunShell(["hg", "cat", "-r", base_rev, oldrelpath],
- silent_ok=True, universal_newlines=False)
- if not is_binary:
- new_content = None
- return base_content, new_content, is_binary, status
-
-
-class PerforceVCS(VersionControlSystem):
- """Implementation of the VersionControlSystem interface for Perforce."""
-
- def __init__(self, options):
-
- def ConfirmLogin():
- # Make sure we have a valid perforce session
- while True:
- data, retcode = self.RunPerforceCommandWithReturnCode(
- ["login", "-s"], marshal_output=True)
- if not data:
- ErrorExit("Error checking perforce login")
- if not retcode and (not "code" in data or data["code"] != "error"):
- break
- print "Enter perforce password: "
- self.RunPerforceCommandWithReturnCode(["login"])
-
- super(PerforceVCS, self).__init__(options)
-
- self.p4_changelist = options.p4_changelist
- if not self.p4_changelist:
- ErrorExit("A changelist id is required")
- if (options.revision):
- ErrorExit("--rev is not supported for perforce")
-
- self.p4_port = options.p4_port
- self.p4_client = options.p4_client
- self.p4_user = options.p4_user
-
- ConfirmLogin()
-
- if not options.title:
- description = self.RunPerforceCommand(["describe", self.p4_changelist],
- marshal_output=True)
- if description and "desc" in description:
- # Rietveld doesn't support multi-line descriptions
- raw_title = description["desc"].strip()
- lines = raw_title.splitlines()
- if len(lines):
- options.title = lines[0]
-
- def GetGUID(self):
- """For now we don't know how to get repository ID for Perforce"""
- return
-
- def RunPerforceCommandWithReturnCode(self, extra_args, marshal_output=False,
- universal_newlines=True):
- args = ["p4"]
- if marshal_output:
- # -G makes perforce format its output as marshalled python objects
- args.extend(["-G"])
- if self.p4_port:
- args.extend(["-p", self.p4_port])
- if self.p4_client:
- args.extend(["-c", self.p4_client])
- if self.p4_user:
- args.extend(["-u", self.p4_user])
- args.extend(extra_args)
-
- data, retcode = RunShellWithReturnCode(
- args, print_output=False, universal_newlines=universal_newlines)
- if marshal_output and data:
- data = marshal.loads(data)
- return data, retcode
-
- def RunPerforceCommand(self, extra_args, marshal_output=False,
- universal_newlines=True):
- # This might be a good place to cache call results, since things like
- # describe or fstat might get called repeatedly.
- data, retcode = self.RunPerforceCommandWithReturnCode(
- extra_args, marshal_output, universal_newlines)
- if retcode:
- ErrorExit("Got error status from %s:\n%s" % (extra_args, data))
- return data
-
- def GetFileProperties(self, property_key_prefix = "", command = "describe"):
- description = self.RunPerforceCommand(["describe", self.p4_changelist],
- marshal_output=True)
-
- changed_files = {}
- file_index = 0
- # Try depotFile0, depotFile1, ... until we don't find a match
- while True:
- file_key = "depotFile%d" % file_index
- if file_key in description:
- filename = description[file_key]
- change_type = description[property_key_prefix + str(file_index)]
- changed_files[filename] = change_type
- file_index += 1
- else:
- break
- return changed_files
-
- def GetChangedFiles(self):
- return self.GetFileProperties("action")
-
- def GetUnknownFiles(self):
- # Perforce doesn't detect new files, they have to be explicitly added
- return []
-
- def IsBaseBinary(self, filename):
- base_filename = self.GetBaseFilename(filename)
- return self.IsBinaryHelper(base_filename, "files")
-
- def IsPendingBinary(self, filename):
- return self.IsBinaryHelper(filename, "describe")
-
- def IsBinaryHelper(self, filename, command):
- file_types = self.GetFileProperties("type", command)
- if not filename in file_types:
- ErrorExit("Trying to check binary status of unknown file %s." % filename)
- # This treats symlinks, macintosh resource files, temporary objects, and
- # unicode as binary. See the Perforce docs for more details:
- # http://www.perforce.com/perforce/doc.current/manuals/cmdref/o.ftypes.html
- return not file_types[filename].endswith("text")
-
- def GetFileContent(self, filename, revision, is_binary):
- file_arg = filename
- if revision:
- file_arg += "#" + revision
- # -q suppresses the initial line that displays the filename and revision
- return self.RunPerforceCommand(["print", "-q", file_arg],
- universal_newlines=not is_binary)
-
- def GetBaseFilename(self, filename):
- actionsWithDifferentBases = [
- "move/add", # p4 move
- "branch", # p4 integrate (to a new file), similar to hg "add"
- "add", # p4 integrate (to a new file), after modifying the new file
- ]
-
- # We only see a different base for "add" if this is a downgraded branch
- # after a file was branched (integrated), then edited.
- if self.GetAction(filename) in actionsWithDifferentBases:
- # -Or shows information about pending integrations/moves
- fstat_result = self.RunPerforceCommand(["fstat", "-Or", filename],
- marshal_output=True)
-
- baseFileKey = "resolveFromFile0" # I think it's safe to use only file0
- if baseFileKey in fstat_result:
- return fstat_result[baseFileKey]
-
- return filename
-
- def GetBaseRevision(self, filename):
- base_filename = self.GetBaseFilename(filename)
-
- have_result = self.RunPerforceCommand(["have", base_filename],
- marshal_output=True)
- if "haveRev" in have_result:
- return have_result["haveRev"]
-
- def GetLocalFilename(self, filename):
- where = self.RunPerforceCommand(["where", filename], marshal_output=True)
- if "path" in where:
- return where["path"]
-
- def GenerateDiff(self, args):
- class DiffData:
- def __init__(self, perforceVCS, filename, action):
- self.perforceVCS = perforceVCS
- self.filename = filename
- self.action = action
- self.base_filename = perforceVCS.GetBaseFilename(filename)
-
- self.file_body = None
- self.base_rev = None
- self.prefix = None
- self.working_copy = True
- self.change_summary = None
-
- def GenerateDiffHeader(diffData):
- header = []
- header.append("Index: %s" % diffData.filename)
- header.append("=" * 67)
-
- if diffData.base_filename != diffData.filename:
- if diffData.action.startswith("move"):
- verb = "rename"
- else:
- verb = "copy"
- header.append("%s from %s" % (verb, diffData.base_filename))
- header.append("%s to %s" % (verb, diffData.filename))
-
- suffix = "\t(revision %s)" % diffData.base_rev
- header.append("--- " + diffData.base_filename + suffix)
- if diffData.working_copy:
- suffix = "\t(working copy)"
- header.append("+++ " + diffData.filename + suffix)
- if diffData.change_summary:
- header.append(diffData.change_summary)
- return header
-
- def GenerateMergeDiff(diffData, args):
- # -du generates a unified diff, which is nearly svn format
- diffData.file_body = self.RunPerforceCommand(
- ["diff", "-du", diffData.filename] + args)
- diffData.base_rev = self.GetBaseRevision(diffData.filename)
- diffData.prefix = ""
-
- # We have to replace p4's file status output (the lines starting
- # with +++ or ---) to match svn's diff format
- lines = diffData.file_body.splitlines()
- first_good_line = 0
- while (first_good_line < len(lines) and
- not lines[first_good_line].startswith("@@")):
- first_good_line += 1
- diffData.file_body = "\n".join(lines[first_good_line:])
- return diffData
-
- def GenerateAddDiff(diffData):
- fstat = self.RunPerforceCommand(["fstat", diffData.filename],
- marshal_output=True)
- if "headRev" in fstat:
- diffData.base_rev = fstat["headRev"] # Re-adding a deleted file
- else:
- diffData.base_rev = "0" # Brand new file
- diffData.working_copy = False
- rel_path = self.GetLocalFilename(diffData.filename)
- diffData.file_body = open(rel_path, 'r').read()
- # Replicate svn's list of changed lines
- line_count = len(diffData.file_body.splitlines())
- diffData.change_summary = "@@ -0,0 +1"
- if line_count > 1:
- diffData.change_summary += ",%d" % line_count
- diffData.change_summary += " @@"
- diffData.prefix = "+"
- return diffData
-
- def GenerateDeleteDiff(diffData):
- diffData.base_rev = self.GetBaseRevision(diffData.filename)
- is_base_binary = self.IsBaseBinary(diffData.filename)
- # For deletes, base_filename == filename
- diffData.file_body = self.GetFileContent(diffData.base_filename,
- None,
- is_base_binary)
- # Replicate svn's list of changed lines
- line_count = len(diffData.file_body.splitlines())
- diffData.change_summary = "@@ -1"
- if line_count > 1:
- diffData.change_summary += ",%d" % line_count
- diffData.change_summary += " +0,0 @@"
- diffData.prefix = "-"
- return diffData
-
- changed_files = self.GetChangedFiles()
-
- svndiff = []
- filecount = 0
- for (filename, action) in changed_files.items():
- svn_status = self.PerforceActionToSvnStatus(action)
- if svn_status == "SKIP":
- continue
-
- diffData = DiffData(self, filename, action)
- # Is it possible to diff a branched file? Stackoverflow says no:
- # http://stackoverflow.com/questions/1771314/in-perforce-command-line-how-to-diff-a-file-reopened-for-add
- if svn_status == "M":
- diffData = GenerateMergeDiff(diffData, args)
- elif svn_status == "A":
- diffData = GenerateAddDiff(diffData)
- elif svn_status == "D":
- diffData = GenerateDeleteDiff(diffData)
- else:
- ErrorExit("Unknown file action %s (svn action %s)." % \
- (action, svn_status))
-
- svndiff += GenerateDiffHeader(diffData)
-
- for line in diffData.file_body.splitlines():
- svndiff.append(diffData.prefix + line)
- filecount += 1
- if not filecount:
- ErrorExit("No valid patches found in output from p4 diff")
- return "\n".join(svndiff) + "\n"
-
- def PerforceActionToSvnStatus(self, status):
- # Mirroring the list at http://permalink.gmane.org/gmane.comp.version-control.mercurial.devel/28717
- # Is there something more official?
- return {
- "add" : "A",
- "branch" : "A",
- "delete" : "D",
- "edit" : "M", # Also includes changing file types.
- "integrate" : "M",
- "move/add" : "M",
- "move/delete": "SKIP",
- "purge" : "D", # How does a file's status become "purge"?
- }[status]
-
- def GetAction(self, filename):
- changed_files = self.GetChangedFiles()
- if not filename in changed_files:
- ErrorExit("Trying to get base version of unknown file %s." % filename)
-
- return changed_files[filename]
-
- def GetBaseFile(self, filename):
- base_filename = self.GetBaseFilename(filename)
- base_content = ""
- new_content = None
-
- status = self.PerforceActionToSvnStatus(self.GetAction(filename))
-
- if status != "A":
- revision = self.GetBaseRevision(base_filename)
- if not revision:
- ErrorExit("Couldn't find base revision for file %s" % filename)
- is_base_binary = self.IsBaseBinary(base_filename)
- base_content = self.GetFileContent(base_filename,
- revision,
- is_base_binary)
-
- is_binary = self.IsPendingBinary(filename)
- if status != "D" and status != "SKIP":
- relpath = self.GetLocalFilename(filename)
- if is_binary:
- new_content = open(relpath, "rb").read()
-
- return base_content, new_content, is_binary, status
-
-# NOTE: The SplitPatch function is duplicated in engine.py, keep them in sync.
-def SplitPatch(data):
- """Splits a patch into separate pieces for each file.
-
- Args:
- data: A string containing the output of svn diff.
-
- Returns:
- A list of 2-tuple (filename, text) where text is the svn diff output
- pertaining to filename.
- """
- patches = []
- filename = None
- diff = []
- for line in data.splitlines(True):
- new_filename = None
- if line.startswith('Index:'):
- unused, new_filename = line.split(':', 1)
- new_filename = new_filename.strip()
- elif line.startswith('Property changes on:'):
- unused, temp_filename = line.split(':', 1)
- # When a file is modified, paths use '/' between directories, however
- # when a property is modified '\' is used on Windows. Make them the same
- # otherwise the file shows up twice.
- temp_filename = temp_filename.strip().replace('\\', '/')
- if temp_filename != filename:
- # File has property changes but no modifications, create a new diff.
- new_filename = temp_filename
- if new_filename:
- if filename and diff:
- patches.append((filename, ''.join(diff)))
- filename = new_filename
- diff = [line]
- continue
- if diff is not None:
- diff.append(line)
- if filename and diff:
- patches.append((filename, ''.join(diff)))
- return patches
-
-
-def UploadSeparatePatches(issue, rpc_server, patchset, data, options):
- """Uploads a separate patch for each file in the diff output.
-
- Returns a list of [patch_key, filename] for each file.
- """
- patches = SplitPatch(data)
- rv = []
- for patch in patches:
- if len(patch[1]) > MAX_UPLOAD_SIZE:
- print ("Not uploading the patch for " + patch[0] +
- " because the file is too large.")
- continue
- form_fields = [("filename", patch[0])]
- if not options.download_base:
- form_fields.append(("content_upload", "1"))
- files = [("data", "data.diff", patch[1])]
- ctype, body = EncodeMultipartFormData(form_fields, files)
- url = "/%d/upload_patch/%d" % (int(issue), int(patchset))
- print "Uploading patch for " + patch[0]
- response_body = rpc_server.Send(url, body, content_type=ctype)
- lines = response_body.splitlines()
- if not lines or lines[0] != "OK":
- StatusUpdate(" --> %s" % response_body)
- sys.exit(1)
- rv.append([lines[1], patch[0]])
- return rv
-
-
-def GuessVCSName(options):
- """Helper to guess the version control system.
-
- This examines the current directory, guesses which VersionControlSystem
- we're using, and returns an string indicating which VCS is detected.
-
- Returns:
- A pair (vcs, output). vcs is a string indicating which VCS was detected
- and is one of VCS_GIT, VCS_MERCURIAL, VCS_SUBVERSION, VCS_PERFORCE,
- VCS_CVS, or VCS_UNKNOWN.
- Since local perforce repositories can't be easily detected, this method
- will only guess VCS_PERFORCE if any perforce options have been specified.
- output is a string containing any interesting output from the vcs
- detection routine, or None if there is nothing interesting.
- """
- for attribute, value in options.__dict__.iteritems():
- if attribute.startswith("p4") and value != None:
- return (VCS_PERFORCE, None)
-
- def RunDetectCommand(vcs_type, command):
- """Helper to detect VCS by executing command.
-
- Returns:
- A pair (vcs, output) or None. Throws exception on error.
- """
- try:
- out, returncode = RunShellWithReturnCode(command)
- if returncode == 0:
- return (vcs_type, out.strip())
- except OSError, (errcode, message):
- if errcode != errno.ENOENT: # command not found code
- raise
-
- # Mercurial has a command to get the base directory of a repository
- # Try running it, but don't die if we don't have hg installed.
- # NOTE: we try Mercurial first as it can sit on top of an SVN working copy.
- res = RunDetectCommand(VCS_MERCURIAL, ["hg", "root"])
- if res != None:
- return res
-
- # Subversion from 1.7 has a single centralized .svn folder
- # ( see http://subversion.apache.org/docs/release-notes/1.7.html#wc-ng )
- # That's why we use 'svn info' instead of checking for .svn dir
- res = RunDetectCommand(VCS_SUBVERSION, ["svn", "info"])
- if res != None:
- return res
-
- # Git has a command to test if you're in a git tree.
- # Try running it, but don't die if we don't have git installed.
- res = RunDetectCommand(VCS_GIT, ["git", "rev-parse",
- "--is-inside-work-tree"])
- if res != None:
- return res
-
- # detect CVS repos use `cvs status && $? == 0` rules
- res = RunDetectCommand(VCS_CVS, ["cvs", "status"])
- if res != None:
- return res
-
- return (VCS_UNKNOWN, None)
-
-
-def GuessVCS(options):
- """Helper to guess the version control system.
-
- This verifies any user-specified VersionControlSystem (by command line
- or environment variable). If the user didn't specify one, this examines
- the current directory, guesses which VersionControlSystem we're using,
- and returns an instance of the appropriate class. Exit with an error
- if we can't figure it out.
-
- Returns:
- A VersionControlSystem instance. Exits if the VCS can't be guessed.
- """
- vcs = options.vcs
- if not vcs:
- vcs = os.environ.get("CODEREVIEW_VCS")
- if vcs:
- v = VCS_ABBREVIATIONS.get(vcs.lower())
- if v is None:
- ErrorExit("Unknown version control system %r specified." % vcs)
- (vcs, extra_output) = (v, None)
- else:
- (vcs, extra_output) = GuessVCSName(options)
-
- if vcs == VCS_MERCURIAL:
- if extra_output is None:
- extra_output = RunShell(["hg", "root"]).strip()
- return MercurialVCS(options, extra_output)
- elif vcs == VCS_SUBVERSION:
- return SubversionVCS(options)
- elif vcs == VCS_PERFORCE:
- return PerforceVCS(options)
- elif vcs == VCS_GIT:
- return GitVCS(options)
- elif vcs == VCS_CVS:
- return CVSVCS(options)
-
- ErrorExit(("Could not guess version control system. "
- "Are you in a working copy directory?"))
-
-
-def CheckReviewer(reviewer):
- """Validate a reviewer -- either a nickname or an email addres.
-
- Args:
- reviewer: A nickname or an email address.
-
- Calls ErrorExit() if it is an invalid email address.
- """
- if "@" not in reviewer:
- return # Assume nickname
- parts = reviewer.split("@")
- if len(parts) > 2:
- ErrorExit("Invalid email address: %r" % reviewer)
- assert len(parts) == 2
- if "." not in parts[1]:
- ErrorExit("Invalid email address: %r" % reviewer)
-
-
-def LoadSubversionAutoProperties():
- """Returns the content of [auto-props] section of Subversion's config file as
- a dictionary.
-
- Returns:
- A dictionary whose key-value pair corresponds the [auto-props] section's
- key-value pair.
- In following cases, returns empty dictionary:
- - config file doesn't exist, or
- - 'enable-auto-props' is not set to 'true-like-value' in [miscellany].
- """
- if os.name == 'nt':
- subversion_config = os.environ.get("APPDATA") + "\\Subversion\\config"
- else:
- subversion_config = os.path.expanduser("~/.subversion/config")
- if not os.path.exists(subversion_config):
- return {}
- config = ConfigParser.ConfigParser()
- config.read(subversion_config)
- if (config.has_section("miscellany") and
- config.has_option("miscellany", "enable-auto-props") and
- config.getboolean("miscellany", "enable-auto-props") and
- config.has_section("auto-props")):
- props = {}
- for file_pattern in config.options("auto-props"):
- props[file_pattern] = ParseSubversionPropertyValues(
- config.get("auto-props", file_pattern))
- return props
- else:
- return {}
-
-def ParseSubversionPropertyValues(props):
- """Parse the given property value which comes from [auto-props] section and
- returns a list whose element is a (svn_prop_key, svn_prop_value) pair.
-
- See the following doctest for example.
-
- >>> ParseSubversionPropertyValues('svn:eol-style=LF')
- [('svn:eol-style', 'LF')]
- >>> ParseSubversionPropertyValues('svn:mime-type=image/jpeg')
- [('svn:mime-type', 'image/jpeg')]
- >>> ParseSubversionPropertyValues('svn:eol-style=LF;svn:executable')
- [('svn:eol-style', 'LF'), ('svn:executable', '*')]
- """
- key_value_pairs = []
- for prop in props.split(";"):
- key_value = prop.split("=")
- assert len(key_value) <= 2
- if len(key_value) == 1:
- # If value is not given, use '*' as a Subversion's convention.
- key_value_pairs.append((key_value[0], "*"))
- else:
- key_value_pairs.append((key_value[0], key_value[1]))
- return key_value_pairs
-
-
-def GetSubversionPropertyChanges(filename):
- """Return a Subversion's 'Property changes on ...' string, which is used in
- the patch file.
-
- Args:
- filename: filename whose property might be set by [auto-props] config.
-
- Returns:
- A string like 'Property changes on |filename| ...' if given |filename|
- matches any entries in [auto-props] section. None, otherwise.
- """
- global svn_auto_props_map
- if svn_auto_props_map is None:
- svn_auto_props_map = LoadSubversionAutoProperties()
-
- all_props = []
- for file_pattern, props in svn_auto_props_map.items():
- if fnmatch.fnmatch(filename, file_pattern):
- all_props.extend(props)
- if all_props:
- return FormatSubversionPropertyChanges(filename, all_props)
- return None
-
-
-def FormatSubversionPropertyChanges(filename, props):
- """Returns Subversion's 'Property changes on ...' strings using given filename
- and properties.
-
- Args:
- filename: filename
- props: A list whose element is a (svn_prop_key, svn_prop_value) pair.
-
- Returns:
- A string which can be used in the patch file for Subversion.
-
- See the following doctest for example.
-
- >>> print FormatSubversionPropertyChanges('foo.cc', [('svn:eol-style', 'LF')])
- Property changes on: foo.cc
- ___________________________________________________________________
- Added: svn:eol-style
- + LF
-
- """
- prop_changes_lines = [
- "Property changes on: %s" % filename,
- "___________________________________________________________________"]
- for key, value in props:
- prop_changes_lines.append("Added: " + key)
- prop_changes_lines.append(" + " + value)
- return "\n".join(prop_changes_lines) + "\n"
-
-
-def RealMain(argv, data=None):
- """The real main function.
-
- Args:
- argv: Command line arguments.
- data: Diff contents. If None (default) the diff is generated by
- the VersionControlSystem implementation returned by GuessVCS().
-
- Returns:
- A 2-tuple (issue id, patchset id).
- The patchset id is None if the base files are not uploaded by this
- script (applies only to SVN checkouts).
- """
- options, args = parser.parse_args(argv[1:])
- if options.help:
- if options.verbose < 2:
- # hide Perforce options
- parser.epilog = "Use '--help -v' to show additional Perforce options."
- parser.option_groups.remove(parser.get_option_group('--p4_port'))
- parser.print_help()
- sys.exit(0)
-
- global verbosity
- verbosity = options.verbose
- if verbosity >= 3:
- logging.getLogger().setLevel(logging.DEBUG)
- elif verbosity >= 2:
- logging.getLogger().setLevel(logging.INFO)
-
- vcs = GuessVCS(options)
-
- base = options.base_url
- if isinstance(vcs, SubversionVCS):
- # Guessing the base field is only supported for Subversion.
- # Note: Fetching base files may become deprecated in future releases.
- guessed_base = vcs.GuessBase(options.download_base)
- if base:
- if guessed_base and base != guessed_base:
- print "Using base URL \"%s\" from --base_url instead of \"%s\"" % \
- (base, guessed_base)
- else:
- base = guessed_base
-
- if not base and options.download_base:
- options.download_base = True
- logging.info("Enabled upload of base file")
- if not options.assume_yes:
- vcs.CheckForUnknownFiles()
- if data is None:
- data = vcs.GenerateDiff(args)
- data = vcs.PostProcessDiff(data)
- if options.print_diffs:
- print "Rietveld diff start:*****"
- print data
- print "Rietveld diff end:*****"
- files = vcs.GetBaseFiles(data)
- if verbosity >= 1:
- print "Upload server:", options.server, "(change with -s/--server)"
- rpc_server = GetRpcServer(options.server,
- options.email,
- options.host,
- options.save_cookies,
- options.account_type)
- form_fields = []
-
- repo_guid = vcs.GetGUID()
- if repo_guid:
- form_fields.append(("repo_guid", repo_guid))
- if base:
- b = urlparse.urlparse(base)
- username, netloc = urllib.splituser(b.netloc)
- if username:
- logging.info("Removed username from base URL")
- base = urlparse.urlunparse((b.scheme, netloc, b.path, b.params,
- b.query, b.fragment))
- form_fields.append(("base", base))
- if options.issue:
- form_fields.append(("issue", str(options.issue)))
- if options.email:
- form_fields.append(("user", options.email))
- if options.reviewers:
- for reviewer in options.reviewers.split(','):
- CheckReviewer(reviewer)
- form_fields.append(("reviewers", options.reviewers))
- if options.cc:
- for cc in options.cc.split(','):
- CheckReviewer(cc)
- form_fields.append(("cc", options.cc))
-
- # Process --message, --title and --file.
- message = options.message or ""
- title = options.title or ""
- if options.file:
- if options.message:
- ErrorExit("Can't specify both message and message file options")
- file = open(options.file, 'r')
- message = file.read()
- file.close()
- if options.issue:
- prompt = "Title describing this patch set: "
- else:
- prompt = "New issue subject: "
- title = (
- title or message.split('\n', 1)[0].strip() or raw_input(prompt).strip())
- if not title and not options.issue:
- ErrorExit("A non-empty title is required for a new issue")
- # For existing issues, it's fine to give a patchset an empty name. Rietveld
- # doesn't accept that so use a whitespace.
- title = title or " "
- if len(title) > 100:
- title = title[:99] + '…'
- if title and not options.issue:
- message = message or title
-
- form_fields.append(("subject", title))
- # If it's a new issue send message as description. Otherwise a new
- # message is created below on upload_complete.
- if message and not options.issue:
- form_fields.append(("description", message))
-
- # Send a hash of all the base file so the server can determine if a copy
- # already exists in an earlier patchset.
- base_hashes = ""
- for file, info in files.iteritems():
- if not info[0] is None:
- checksum = md5(info[0]).hexdigest()
- if base_hashes:
- base_hashes += "|"
- base_hashes += checksum + ":" + file
- form_fields.append(("base_hashes", base_hashes))
- if options.private:
- if options.issue:
- print "Warning: Private flag ignored when updating an existing issue."
- else:
- form_fields.append(("private", "1"))
- if options.send_patch:
- options.send_mail = True
- if not options.download_base:
- form_fields.append(("content_upload", "1"))
- if len(data) > MAX_UPLOAD_SIZE:
- print "Patch is large, so uploading file patches separately."
- uploaded_diff_file = []
- form_fields.append(("separate_patches", "1"))
- else:
- uploaded_diff_file = [("data", "data.diff", data)]
- ctype, body = EncodeMultipartFormData(form_fields, uploaded_diff_file)
- response_body = rpc_server.Send("/upload", body, content_type=ctype)
- patchset = None
- if not options.download_base or not uploaded_diff_file:
- lines = response_body.splitlines()
- if len(lines) >= 2:
- msg = lines[0]
- patchset = lines[1].strip()
- patches = [x.split(" ", 1) for x in lines[2:]]
- else:
- msg = response_body
- else:
- msg = response_body
- StatusUpdate(msg)
- if not response_body.startswith("Issue created.") and \
- not response_body.startswith("Issue updated."):
- sys.exit(0)
- issue = msg[msg.rfind("/")+1:]
-
- if not uploaded_diff_file:
- result = UploadSeparatePatches(issue, rpc_server, patchset, data, options)
- if not options.download_base:
- patches = result
-
- if not options.download_base:
- vcs.UploadBaseFiles(issue, rpc_server, patches, patchset, options, files)
-
- payload = {} # payload for final request
- if options.send_mail:
- payload["send_mail"] = "yes"
- if options.send_patch:
- payload["attach_patch"] = "yes"
- if options.issue and message:
- payload["message"] = message
- payload = urllib.urlencode(payload)
- rpc_server.Send("/" + issue + "/upload_complete/" + (patchset or ""),
- payload=payload)
- return issue, patchset
-
-
-def main():
- try:
- logging.basicConfig(format=("%(asctime).19s %(levelname)s %(filename)s:"
- "%(lineno)s %(message)s "))
- os.environ['LC_ALL'] = 'C'
- RealMain(sys.argv)
- except KeyboardInterrupt:
- print
- StatusUpdate("Interrupted.")
- sys.exit(1)
-
-
-if __name__ == "__main__":
- main()